Package st.gravel.support.compiler.jvm

Examples of st.gravel.support.compiler.jvm.JVMType


    return IfBooleanObjectThenElse.factory.trueFrame_falseFrame_(_trueFrame.withReturnType_(_commonType), _falseFrame.withReturnType_(_commonType));
  }

  @Override
  public JVMInstruction effectStack_(final JVMStack _aJVMStack) {
    final JVMType _testType;
    _testType = _aJVMStack.pop();
    if (_testType.isDynamicObjectType()) {
      return IfThenElse.this.effectObjectTestStack_(_aJVMStack).pushTypeOnStack_(_aJVMStack);
    }
    if (_testType.isBooleanType()) {
      return IfThenElse.this.effectBooleanTestStack_(_aJVMStack).pushTypeOnStack_(_aJVMStack);
    }
    st.gravel.support.jvm.ObjectExtensions.halt(this);
    return this;
  }
View Full Code Here


    }
  }

  @Override
  public JVMInstruction effectStack_(final JVMStack _aJVMStack) {
    final JVMType _top;
    final JVMType _next;
    _top = _aJVMStack.pop();
    _next = _aJVMStack.pop();
    _aJVMStack.push_(_top);
    _aJVMStack.push_(_next);
    _aJVMStack.push_(_top);
View Full Code Here

    _i = new int[1];
    _instructions = new List[1];
    _instructions[0] = new java.util.ArrayList();
    _i[0] = 0;
    for (final BlockSendArgument _each : _astConstants) {
      final JVMType _type;
      _type = JVMDynamicObjectType.factory.basicNew();
      _instructions[0].add(ALoad.factory.index_type_(_i[0], _type));
      _instructions[0].add(PutStatic.factory.ownerType_name_type_(_ownerType, _each.name(), _type));
      _i[0] = ((_i[0]) + 1);
      _fields.add(JVMField.factory.ownerType_varName_type_isStatic_(_ownerType, _each.name(), _type, true));
View Full Code Here

  }

  @Override
  public JVMInstruction effectStack_(final JVMStack _aJVMStack) {
    for (int _temp1 = 0; _temp1 < _signature.arguments().length; _temp1++) {
      final JVMType _each = _signature.arguments()[(_signature.arguments().length - _temp1) - 1];
      _aJVMStack.popType_(_each);
    }
    _aJVMStack.pop();
    if (!_signature.returnType().isVoidType()) {
      _aJVMStack.push_(_signature.returnType());
View Full Code Here

    }
  }

  @Override
  public JVMInstruction effectStack_(final JVMStack _aJVMStack) {
    final JVMType _arrayType;
    final JVMType _valType;
    _valType = _aJVMStack.pop();
    st.gravel.support.jvm.ObjectExtensions.assert_(this, _valType.isObjectType());
    st.gravel.support.jvm.ObjectExtensions.assert_(this, _aJVMStack.pop().isIntType());
    _arrayType = _aJVMStack.pop();
    st.gravel.support.jvm.ObjectExtensions.assert_(this, _arrayType.isArrayType());
    st.gravel.support.jvm.ObjectExtensions.assert_(this, ((JVMArrayType) _arrayType).elementType().isObjectType());
    return this;
View Full Code Here

  }

  @Override
  public JVMInstruction effectStack_(final JVMStack _aJVMStack) {
    for (int _temp1 = 0; _temp1 < _signature.arguments().length; _temp1++) {
      final JVMType _each = _signature.arguments()[(_signature.arguments().length - _temp1) - 1];
      _aJVMStack.popType_(_each);
    }
    _aJVMStack.pop();
    if (!_signature.returnType().isVoidType()) {
      _aJVMStack.push_(_signature.returnType());
View Full Code Here

  }

  @Override
  public JVMInstruction effectStack_(final JVMStack _aJVMStack) {
    for (int _temp1 = 0; _temp1 < _signature.arguments().length; _temp1++) {
      final JVMType _each = _signature.arguments()[(_signature.arguments().length - _temp1) - 1];
      _aJVMStack.popType_(_each);
    }
    _aJVMStack.pop();
    if (!_signature.returnType().isVoidType()) {
      _aJVMStack.push_(_signature.returnType());
View Full Code Here

  }

  @Override
  public JVMInstruction effectStack_(final JVMStack _aJVMStack) {
    for (int _temp1 = 0; _temp1 < _signature.arguments().length; _temp1++) {
      final JVMType _each = _signature.arguments()[(_signature.arguments().length - _temp1) - 1];
      _aJVMStack.popType_(_each);
    }
    if (!_signature.returnType().isVoidType()) {
      _aJVMStack.push_(_signature.returnType());
    }
View Full Code Here

TOP

Related Classes of st.gravel.support.compiler.jvm.JVMType

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.