Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(730)

Unified Diff: src/mips/code-stubs-mips.cc

Issue 2028633002: Provide a tagged allocation top pointer. Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/mips/code-stubs-mips.cc
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
index 726c077d678905d4c73946c339dcb7fb6334bf5e..01bc06c3e0fe4cec02ca8d27cfef45ace063772a 100644
--- a/src/mips/code-stubs-mips.cc
+++ b/src/mips/code-stubs-mips.cc
@@ -4610,6 +4610,7 @@ void FastNewObjectStub::Generate(MacroAssembler* masm) {
Label allocate, done_allocate;
__ lbu(t0, FieldMemOperand(a2, Map::kInstanceSizeOffset));
__ Allocate(t0, v0, t1, a0, &allocate, SIZE_IN_WORDS);
+ __ Subu(t1, t1, Operand(kHeapObjectTag)); // Untag result end.
__ bind(&done_allocate);
// Initialize the JSObject fields.
@@ -4753,6 +4754,7 @@ void FastNewRestParameterStub::Generate(MacroAssembler* masm) {
// Allocate an empty rest parameter array.
Label allocate, done_allocate;
__ Allocate(JSArray::kSize, v0, a0, a1, &allocate, NO_ALLOCATION_FLAGS);
+ __ Subu(a0, a0, Operand(kHeapObjectTag)); // Untag result end.
__ bind(&done_allocate);
// Setup the rest parameter array in v0.

Powered by Google App Engine
This is Rietveld 408576698