MIPS64: Fix port of Refactor Map::ConstructionCount.
authorpaul.lind <paul.lind@imgtec.com>
Fri, 5 Dec 2014 19:30:47 +0000 (11:30 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 5 Dec 2014 19:30:59 +0000 (19:30 +0000)
Port 35ff259b6344eed116936372f6861181c6afe922.

BUG=

Review URL: https://codereview.chromium.org/756383005

Cr-Commit-Position: refs/heads/master@{#25693}

src/mips64/builtins-mips64.cc

index 7259b18..c95ff30 100644 (file)
@@ -395,9 +395,9 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm,
         __ CallRuntime(Runtime::kFinalizeInstanceSize, 1);
 
         __ Pop(a1, a2);
-        // Slack tracking counter is kNoSlackTracking after runtime call.
-        DCHECK(JSFunction::kNoSlackTracking == 0);
-        __ mov(a6, zero_reg);
+        // Slack tracking counter is Map::kSlackTrackingCounterEnd after runtime
+        // call.
+        __ li(a6, Map::kSlackTrackingCounterEnd);
 
         __ bind(&allocate);
       }