Bug 863234 - Fix inlineDump handling for MParDump. r=nmatsakis
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 18 Apr 2013 15:38:13 +0200
changeset 140690 45228f2c64f9c7b6dcee381e852cb13e26b38193
parent 140689 143986e6bd90ee8f31ecf3d939fa891249f3ca34
child 140691 ea697909f4f29edec02e911294679b95d39529f7
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnmatsakis
bugs863234
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 863234 - Fix inlineDump handling for MParDump. r=nmatsakis
js/src/ion/MCallOptimize.cpp
--- a/js/src/ion/MCallOptimize.cpp
+++ b/js/src/ion/MCallOptimize.cpp
@@ -1375,18 +1375,18 @@ IonBuilder::inlineDump(CallInfo &callInf
     switch (executionMode) {
       case SequentialExecution:
         return InliningStatus_NotInlined;
       case ParallelExecution:
         break;
     }
 
     callInfo.unwrapArgs();
-
-    MParDump *dump = new MParDump(callInfo.getArg(1));
+    JS_ASSERT(1 == callInfo.argc());
+    MParDump *dump = new MParDump(callInfo.getArg(0));
     current->add(dump);
 
     MConstant *udef = MConstant::New(UndefinedValue());
     current->add(udef);
     current->push(udef);
 
     return InliningStatus_Inlined;
 }