Package org.objectweb.asm.commons

Examples of org.objectweb.asm.commons.GeneratorAdapter.loadArg()


  private Type _writeOutEmpty(BytecodeContext bc) throws BytecodeException {
    GeneratorAdapter adapter = bc.getAdapter();

    if(variable.scope==Scope.SCOPE_ARGUMENTS) {
      adapter.loadArg(0);
      TypeScope.invokeScope(adapter, Scope.SCOPE_ARGUMENTS);
      value.writeOut(bc, MODE_REF);
      adapter.invokeInterface(TypeScope.SCOPE_ARGUMENT,SET_ARGUMENT);
    }
    else {
View Full Code Here


      TypeScope.invokeScope(adapter, Scope.SCOPE_ARGUMENTS);
      value.writeOut(bc, MODE_REF);
      adapter.invokeInterface(TypeScope.SCOPE_ARGUMENT,SET_ARGUMENT);
    }
    else {
      adapter.loadArg(0);
      TypeScope.invokeScope(adapter, Scope.SCOPE_UNDEFINED);
      Variable.registerKey(bc,LitString.toExprString(ScopeFactory.toStringScope(variable.scope,"undefined")));
      value.writeOut(bc, MODE_REF);
      adapter.invokeInterface(TypeScope.SCOPES[Scope.SCOPE_UNDEFINED],METHOD_SCOPE_SET_KEY);
    }
View Full Code Here

   *
   * @see railo.transformer.bytecode.expression.ExpressionBase#_writeOut(org.objectweb.asm.commons.GeneratorAdapter, int)
   */
  public Type _writeOut(BytecodeContext bc, int mode) throws BytecodeException {
    GeneratorAdapter adapter = bc.getAdapter();
    adapter.loadArg(0);
    name.writeOut(bc, Expression.MODE_REF);
    value.writeOut(bc, Expression.MODE_REF);
    adapter.invokeVirtual(Types.PAGE_CONTEXT,METHOD_SET_VARIABLE);
    return Types.OBJECT;
  }
View Full Code Here

  public Type _writeOut(BytecodeContext bc, int mode) throws BytecodeException {
    GeneratorAdapter adapter = bc.getAdapter();
    int count=variable.countFM+variable.countDM;
   
    for(int i=0;i<=count;i++) {
        adapter.loadArg(0);
    }
    TypeScope.invokeScope(adapter, variable.scope);
   
    boolean isLast;
    for(int i=0;i<count;i++) {
View Full Code Here

      boolean doOnlyScope=scope==Scope.SCOPE_LOCAL;
     
     
      //boolean last;
      for(int i=doOnlyScope?0:1;i<count;i++) {
      adapter.loadArg(0);
      }
     
      Type rtn=_writeOutFirst(bc, (members.get(0)),mode,count==1,doOnlyScope,null,null);
   
    // pc.get(
View Full Code Here

      adapter.loadArg(0);
      }*/
     
        // pc
        //adapter.loadArg(0);
        adapter.loadArg(0);
       
        // collection
        RefInteger startIndex=new RefIntegerImpl();
      _writeOutFirst(bc, (members.get(0)),mode,count==1,true,defaultValue,startIndex);
   
View Full Code Here

    if(ignoredFirstMember && (scope==Scope.SCOPE_LOCAL || scope==ScopeSupport.SCOPE_VAR))
      return Types.VOID;
   
   
    GeneratorAdapter adapter = bc.getAdapter();
    adapter.loadArg(0);
    Method m;
    Type t=Types.PAGE_CONTEXT;
    if(scope==Scope.SCOPE_ARGUMENTS) {
      LitBoolean.TRUE.writeOut(bc, MODE_VALUE);
       m = TypeScope.METHOD_ARGUMENT_BIND;
View Full Code Here

        return _writeOutFirstBIF(bc,(BIF)member,mode,last,getStart());
  }
 
  static Type _writeOutFirstBIF(BytecodeContext bc, BIF bif, int mode,boolean last,Position line) throws BytecodeException {
      GeneratorAdapter adapter = bc.getAdapter();
    adapter.loadArg(0);
    // class
    Class bifClass = bif.getClazz();
    Type bifType = Type.getType(bifClass);//Types.toType(bif.getClassName());
    Type rtnType=Types.toType(bif.getReturnType());
    if(rtnType==Types.VOID)rtnType=Types.STRING;
View Full Code Here

  static Type _writeOutFirstUDF(BytecodeContext bc, UDF udf, int scope, boolean doOnlyScope) throws BytecodeException {

      GeneratorAdapter adapter = bc.getAdapter();
    // pc.getFunction (Object,String,Object[])
      // pc.getFunctionWithNamedValues (Object,String,Object[])
    adapter.loadArg(0);
   
    if(!doOnlyScope)adapter.loadArg(0);
    Type rtn = TypeScope.invokeScope(adapter, scope);
    if(doOnlyScope) return rtn;
   
View Full Code Here

      GeneratorAdapter adapter = bc.getAdapter();
    // pc.getFunction (Object,String,Object[])
      // pc.getFunctionWithNamedValues (Object,String,Object[])
    adapter.loadArg(0);
   
    if(!doOnlyScope)adapter.loadArg(0);
    Type rtn = TypeScope.invokeScope(adapter, scope);
    if(doOnlyScope) return rtn;
   
   
    return _writeOutUDF(bc,udf);
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.