Lines Matching refs:ctx

86     public Vset checkValue(Environment env, Context ctx, Vset vset, Hashtable exp) {
94 vset = outerArg.checkValue(env, ctx, vset, exp);
126 env.resolve(right.where, ctx.field.getClassDefinition(),
134 right = new TypeExpression(right.where, right.toType(env, ctx));
142 env.error(where, "class.not.found", ee.name, ctx.field);
167 insertOuterLink(env, ctx, where, def, outerArg, args);
180 vset = args[i].checkValue(env, ctx, vset, exp);
195 ClassDefinition sourceClass = ctx.field.getClassDefinition();
234 vset = body.checkLocalClass(env, ctx, vset,
279 implMethod = cdef.getAccessMember(env, ctx, field, false);
316 args[i] = convert(env, ctx, argTypes[i], args[i]);
346 public static Expression[] insertOuterLink(Environment env, Context ctx,
355 outerArg = ctx.findOuterLink(env, where,
369 public Vset check(Environment env, Context ctx, Vset vset, Hashtable exp) {
370 return checkValue(env, ctx, vset, exp);
378 public Expression copyInline(Context ctx) {
379 NewInstanceExpression e = (NewInstanceExpression)super.copyInline(ctx);
381 e.outerArg = outerArg.copyInline(ctx);
386 Expression inlineNewInstance(Environment env, Context ctx, Statement s) {
388 System.out.println("INLINE NEW INSTANCE " + field + " in " + ctx.field);
390 LocalMember v[] = LocalMember.copyArguments(ctx, field);
404 body[body.length - 1] = (s != null) ? s.copyInline(ctx, false) : null;
407 LocalMember.doneWithArguments(ctx, v);
409 return new InlineNewInstanceExpression(where, type, field, new CompoundStatement(where, body)).inline(env, ctx);
412 public Expression inline(Environment env, Context ctx) {
413 return inlineValue(env, ctx);
415 public Expression inlineValue(Environment env, Context ctx) {
422 r.willCodeArguments(env, ctx);
424 //right = right.inlineValue(env, ctx);
429 outerArg = outerArg.inline(env, ctx);
431 outerArg = outerArg.inlineValue(env, ctx);
434 args[i] = args[i].inlineValue(env, ctx);
440 (!ctx.field.isInitializer()) && ctx.field.isMethod() &&
441 (ctx.getInlineMemberContext(field) == null)) {
444 || (s.costInline(MAXINLINECOST, env, ctx) < MAXINLINECOST)) {
445 return inlineNewInstance(env, ctx, s);
459 public int costInline(int thresh, Environment env, Context ctx) {
463 if (ctx == null) {
464 return 2 + super.costInline(thresh, env, ctx);
467 ClassDefinition sourceClass = ctx.field.getClassDefinition();
473 return 2 + super.costInline(thresh, env, ctx);
484 public void code(Environment env, Context ctx, Assembler asm) {
485 codeCommon(env, ctx, asm, false);
487 public void codeValue(Environment env, Context ctx, Assembler asm) {
488 codeCommon(env, ctx, asm, true);
490 private void codeCommon(Environment env, Context ctx, Assembler asm,
501 r.codeArguments(env, ctx, asm, where, field);
505 outerArg.codeValue(env, ctx, asm);
540 args[i].codeValue(env, ctx, asm);