Package st.gravel.support.compiler.ast

Examples of st.gravel.support.compiler.ast.MethodMapping


    this.copiedArgumentNames = copiedArgumentNames;
  }

  @Override
  protected MethodHandle findMethodForNil() {
    MethodMapping methodMapping = ImageBootstrapper.systemMapping
        .methodMappingForNil_(selector);
    if (methodMapping == null) {
      return createDNUHandleForNil();
    }
    MethodNode methodNode = methodMapping.methodNode();
    return inlineBlocks(methodNode, ImageBootstrapper.systemMapping
        .nilClassMapping().reference(), JVMDefinedObjectType.factory.object());
  }
View Full Code Here


        .nilClassMapping().reference(), JVMDefinedObjectType.factory.object());
  }

  @Override
  protected MethodHandle findMethod(Class receiverClass) {
    MethodMapping methodMapping = ImageBootstrapper.systemMapping
        .methodMappingFor_methodName_(receiverClass, selector);
    if (methodMapping == null) {
      return createDNUHandle(receiverClass).asType(type);
    }
    MethodNode methodNode = methodMapping
        .methodNode();
    return inlineBlocks(methodNode, ImageBootstrapper.systemMapping
        .classMappingForJavaClass_(receiverClass).reference(), (JVMNonPrimitiveType) ImageBootstrapper.systemMapping.compilerTools().jvmTypeForClass_(receiverClass));
  }
View Full Code Here

TOP

Related Classes of st.gravel.support.compiler.ast.MethodMapping

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.