Skip to content

Commit

Permalink
fixed or removed incorrect assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
dougxc committed Jan 30, 2014
1 parent ed5dbb5 commit 8706ec2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,11 @@ public void emitCodeSuffix(ResolvedJavaMethod installedCodeOwner, CompilationRes
} else {
// No need to emit the stubs for entries back into the method since
// it has no calls that can cause such "return" entries
assert !frameMap.accessesCallerFrame() : lirGen.getGraph();

if (frameContext.omitFrame) {
// Cannot access slots in caller's frame if my frame is omitted
assert !frameMap.accessesCallerFrame() : lirGen.getGraph();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ public void emitCode(CompilationResultBuilder crb, LIRGenerator lirGen, Resolved
} else {
// No need to emit the stubs for entries back into the method since
// it has no calls that can cause such "return" entries
assert !frameMap.accessesCallerFrame() : lirGen.getGraph();
}

if (unverifiedStub != null) {
Expand Down

0 comments on commit 8706ec2

Please sign in to comment.