Fix bogus varval assert.
authorBrendan Eich <brendan@mozilla.org>
Wed, 13 Aug 2008 16:14:22 -0700
changeset 18137 ad0aef3a1a4256a4a1e58bfd03b811c127a45544
parent 18136 b7199324e019798953cd243e7c5c73677eddcf1d
child 18141 f603e7555aefded72dbfd1842476e20bcdeec8c7
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.1a2pre
Fix bogus varval assert.
js/src/jstracer.cpp
--- a/js/src/jstracer.cpp
+++ b/js/src/jstracer.cpp
@@ -1912,17 +1912,17 @@ TraceRecorder::argval(unsigned n) const
 {
     JS_ASSERT(n < cx->fp->fun->nargs);
     return cx->fp->argv[n];
 }
 
 jsval&
 TraceRecorder::varval(unsigned n) const
 {
-    JS_ASSERT(n < cx->fp->script->nfixed);
+    JS_ASSERT(n < cx->fp->script->nslots);
     return cx->fp->slots[n];
 }
 
 jsval&
 TraceRecorder::stackval(int n) const
 {
     jsval* sp = cx->fp->regs->sp;
     JS_ASSERT(size_t((sp + n) - StackBase(cx->fp)) < StackDepth(cx->fp->script));