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

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

Issue 1699183002: MIPS64: Fix2 '[runtime] Introduce FastNewStrictArgumentsStub to optimize strict arguments.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips64/code-stubs-mips64.cc
diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc
index d12ec6fcda6e5eb5a1d48c793d3e93a49705670a..58828acfa4e3b59e0cb15085330d1156da98a7c4 100644
--- a/src/mips64/code-stubs-mips64.cc
+++ b/src/mips64/code-stubs-mips64.cc
@@ -4869,7 +4869,7 @@ void FastNewRestParameterStub::Generate(MacroAssembler* masm) {
__ sd(at, FieldMemOperand(a3, 0 * kPointerSize));
__ Dsubu(a2, a2, Operand(1 * kPointerSize));
__ Daddu(a3, a3, Operand(1 * kPointerSize));
- __ b(&loop);
+ __ Branch(&loop);
__ bind(&done_loop);
}
@@ -5204,8 +5204,8 @@ void FastNewStrictArgumentsStub::Generate(MacroAssembler* masm) {
__ bind(&done_loop);
}
- // Setup the rest parameter array in a3.
- __ LoadNativeContextSlot(Context::JS_ARRAY_FAST_ELEMENTS_MAP_INDEX, at);
+ // Setup the strict arguments object in a3.
+ __ LoadNativeContextSlot(Context::STRICT_ARGUMENTS_MAP_INDEX, at);
__ sd(at, FieldMemOperand(a3, JSStrictArgumentsObject::kMapOffset));
__ LoadRoot(at, Heap::kEmptyFixedArrayRootIndex);
__ sd(at, FieldMemOperand(a3, JSStrictArgumentsObject::kPropertiesOffset));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698