Skip to content

Commit

Permalink
Redo the bad constant removal I failed on last night.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Jun 10, 2010
1 parent 43b8784 commit f5f9ce3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
8 changes: 0 additions & 8 deletions src/org/jruby/compiler/impl/BaseBodyCompiler.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -202,14 +202,6 @@ protected int getClosureIndex() {
return StandardASMCompiler.ARGS_INDEX + argParamCount + StandardASMCompiler.CLOSURE_OFFSET; return StandardASMCompiler.ARGS_INDEX + argParamCount + StandardASMCompiler.CLOSURE_OFFSET;
} }


protected int getRuntimeIndex() {
return StandardASMCompiler.ARGS_INDEX + argParamCount + StandardASMCompiler.RUNTIME_OFFSET;
}

protected int getNilIndex() {
return StandardASMCompiler.ARGS_INDEX + argParamCount + StandardASMCompiler.NIL_OFFSET;
}

protected int getPreviousExceptionIndex() { protected int getPreviousExceptionIndex() {
return StandardASMCompiler.ARGS_INDEX + argParamCount + StandardASMCompiler.PREVIOUS_EXCEPTION_OFFSET; return StandardASMCompiler.ARGS_INDEX + argParamCount + StandardASMCompiler.PREVIOUS_EXCEPTION_OFFSET;
} }
Expand Down
10 changes: 4 additions & 6 deletions src/org/jruby/compiler/impl/StandardASMCompiler.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -136,12 +136,10 @@ public static String getClosure19Signature() {


public static final int CLOSURE_OFFSET = 0; public static final int CLOSURE_OFFSET = 0;
public static final int DYNAMIC_SCOPE_OFFSET = 1; public static final int DYNAMIC_SCOPE_OFFSET = 1;
public static final int RUNTIME_OFFSET = 2; public static final int VARS_ARRAY_OFFSET = 2;
public static final int VARS_ARRAY_OFFSET = 3; public static final int EXCEPTION_OFFSET = 3;
public static final int NIL_OFFSET = 4; public static final int PREVIOUS_EXCEPTION_OFFSET = 4;
public static final int EXCEPTION_OFFSET = 5; public static final int FIRST_TEMP_OFFSET = 5;
public static final int PREVIOUS_EXCEPTION_OFFSET = 6;
public static final int FIRST_TEMP_OFFSET = 7;


public static final int STARTING_DSTR_SIZE = 20; public static final int STARTING_DSTR_SIZE = 20;


Expand Down

0 comments on commit f5f9ce3

Please sign in to comment.