[JAEGER] Don't optimize escaping variables (bug 566022).

This commit is contained in:
David Anderson
2010-06-18 11:07:15 -07:00
parent a6c16872fa
commit 45a5c167c1
13 changed files with 101 additions and 8 deletions

View File

@@ -1299,6 +1299,10 @@ mjit::Compiler::generateMethod()
break;
END_CASE(JSOP_GLOBALINC)
BEGIN_CASE(JSOP_DEFUPVAR)
frame.addEscaping(GET_SLOTNO(PC));
END_CASE(JSOP_DEFUPVAR)
default:
/* Sorry, this opcode isn't implemented yet. */
#ifdef JS_METHODJIT_SPEW
@@ -1560,7 +1564,7 @@ mjit::Compiler::inlineCallHelper(uint32 argc, bool callingNew)
* We rely on the fact that syncAndKill() is not allowed to touch the
* registers we've preserved.
*/
frame.forgetEverything();
frame.syncForCall(argc + 2);
Label invoke;
if (!typeKnown) {