Examples of JVMType


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

    }
  }

  @Override
  public JVMInstruction effectStack_(final JVMStack _aJVMStack) {
    final JVMType _elemType;
    _elemType = _aJVMStack.pop();
    if (_elemType.isObjectType() || _elemType.isArrayType()) {
      return AStore.factory.index_type_(_index, _type);
    }
    if (_elemType.isIntType()) {
      return IStore.factory.index_type_(_index, _type);
    }
    st.gravel.support.jvm.ObjectExtensions.halt(this);
    return this;
  }
View Full Code Here

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

    }
  }

  @Override
  public JVMInstruction effectStack_(final JVMStack _aJVMStack) {
    final JVMType _aReceiverType;
    final JVMType[] _anArray;
    _anArray = st.gravel.support.jvm.ArrayExtensions.reverse(new st.gravel.core.Interval(1, _numArgs).collect_(new st.gravel.support.jvm.Block1<JVMType, Integer>() {

      @Override
      public JVMType value_(final Integer _i) {
        return (JVMType) _aJVMStack.pop();
      }
    }));
    _aReceiverType = _aJVMStack.pop();
    st.gravel.support.jvm.ObjectExtensions.assert_(this, _aReceiverType.isObjectType());
    _aJVMStack.push_(this.type());
    return this.withReceiverType_argumentTypes_(_aReceiverType, _anArray);
  }
View Full Code Here

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

      throw new RuntimeException(e);
    }
  }

  public IfBooleanValueThenElse effectBooleanTestStack_(final JVMStack _aJVMStack) {
    final JVMType _commonType;
    _commonType = _trueFrame.type().commonSuperTypeWith_(_falseFrame.type());
    return IfBooleanValueThenElse.factory.trueFrame_falseFrame_(_trueFrame.withReturnType_(_commonType), _falseFrame.withReturnType_(_commonType));
  }
View Full Code Here

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

    _commonType = _trueFrame.type().commonSuperTypeWith_(_falseFrame.type());
    return IfBooleanValueThenElse.factory.trueFrame_falseFrame_(_trueFrame.withReturnType_(_commonType), _falseFrame.withReturnType_(_commonType));
  }

  public IfBooleanObjectThenElse effectObjectTestStack_(final JVMStack _aJVMStack) {
    final JVMType _commonType;
    _commonType = _trueFrame.type().commonSuperTypeWith_(_falseFrame.type());
    return IfBooleanObjectThenElse.factory.trueFrame_falseFrame_(_trueFrame.withReturnType_(_commonType), _falseFrame.withReturnType_(_commonType));
  }
View Full Code Here

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

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

    }
  }

  @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

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

    _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

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

  }

  @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

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

    }
  }

  @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

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

  }

  @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
TOP
Copyright © 2018 www.massapi.com. 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.