コード例 #1
0
 NodeIntrinsificationPhase getIntrinsifier() {
   if (intrinsifier == null) {
     HotSpotProviders providers = runtime.getHostProviders();
     intrinsifier = new NodeIntrinsificationPhase(providers, providers.getSnippetReflection());
   }
   return intrinsifier;
 }
コード例 #2
0
  public Suites createSuites() {
    Suites ret = Suites.createDefaultSuites();

    if (ImmutableCode.getValue()) {
      // lowering introduces class constants, therefore it must be after lowering
      ret.getHighTier()
          .appendPhase(
              new LoadJavaMirrorWithKlassPhase(
                  runtime.getConfig().classMirrorOffset, runtime.getConfig().getOopEncoding()));
      if (VerifyPhases.getValue()) {
        ret.getHighTier().appendPhase(new AheadOfTimeVerificationPhase());
      }
    }

    ret.getMidTier().appendPhase(new WriteBarrierAdditionPhase(runtime.getConfig()));
    if (VerifyPhases.getValue()) {
      ret.getMidTier().appendPhase(new WriteBarrierVerificationPhase());
    }

    return ret;
  }
コード例 #3
0
 MetaAccessProvider getMetaAccess() {
   return runtime.getHostProviders().getMetaAccess();
 }