[INFER] Fix orange.
authorBrian Hackett <bhackett1024@gmail.com>
Sat, 27 Aug 2011 20:28:24 -0700
changeset 76157 b7fb4912796d16336af4ee8d20393a973597240b
parent 76156 9a017236840241c0acd4367775a444db3bb7765e
child 76158 b8092cccaead83902d4a263b388894cc290bb1ca
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
milestone9.0a1
[INFER] Fix orange.
js/src/jit-test/tests/jaeger/bug682345.js
js/src/jsinterp.cpp
--- a/js/src/jit-test/tests/jaeger/bug682345.js
+++ b/js/src/jit-test/tests/jaeger/bug682345.js
@@ -1,8 +1,9 @@
+// |jit-test| error: TypeError
 
 for (var i = 0; i <= 0x017f; i++) {
     var U = new Unicode(i);
 }
 function Unicode(c) {
     u = GetUnicodeValues(c);
     this.upper = u[0];
 }
--- a/js/src/jsinterp.cpp
+++ b/js/src/jsinterp.cpp
@@ -2326,16 +2326,18 @@ check_backedge:
         JS_ASSERT_IF(cx->isExceptionPending(), r == MONITOR_ERROR);
         RESTORE_INTERP_VARS_CHECK_EXCEPTION();
         op = (JSOp) *regs.pc;
         DO_OP();
     }
 #endif /* JS_TRACER */
 
 #ifdef JS_METHODJIT
+    if (!useMethodJIT)
+        DO_OP();
     mjit::CompileStatus status =
         mjit::CanMethodJITAtBranch(cx, script, regs.fp(), regs.pc);
     if (status == mjit::Compile_Error)
         goto error;
     if (status == mjit::Compile_Okay) {
         void *ncode =
             script->nativeCodeForPC(regs.fp()->isConstructing(), regs.pc);
         mjit::JaegerStatus status =