MIPS: Fix in-object memory slack tracking bug.

TEST=
BUG=

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

Cr-Commit-Position: refs/heads/master@{#27678}
This commit is contained in:
dusan.milosavljevic 2015-04-08 12:03:39 -07:00 committed by Commit bot
parent ab7d5f9620
commit b881bf9ca8
2 changed files with 2 additions and 6 deletions

View File

@ -433,9 +433,7 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm,
__ CallRuntime(Runtime::kFinalizeInstanceSize, 1);
__ Pop(a1, a2);
// Slack tracking counter is Map::kSlackTrackingCounterEnd after runtime
// call.
__ li(t2, Map::kSlackTrackingCounterEnd);
__ li(t2, Operand(Map::kSlackTrackingCounterEnd - 1));
__ bind(&allocate);
}

View File

@ -434,9 +434,7 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm,
__ CallRuntime(Runtime::kFinalizeInstanceSize, 1);
__ Pop(a1, a2);
// Slack tracking counter is Map::kSlackTrackingCounterEnd after runtime
// call.
__ li(a6, Map::kSlackTrackingCounterEnd);
__ li(a6, Operand(Map::kSlackTrackingCounterEnd - 1));
__ bind(&allocate);
}