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

Unified Diff: src/mips64/builtins-mips64.cc

Issue 1129323007: MIPS64: Improve '[strong] Check arity of functions' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« 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/builtins-mips64.cc
diff --git a/src/mips64/builtins-mips64.cc b/src/mips64/builtins-mips64.cc
index a20e868d154ab1ec09ad228bf243e88a1e01855c..2c2233256b17059fb0829f596977b1ee29c09147 100644
--- a/src/mips64/builtins-mips64.cc
+++ b/src/mips64/builtins-mips64.cc
@@ -1754,10 +1754,10 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
// If the function is strong we need to throw an error.
Label weak_function;
- __ ld(t1, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset));
- __ lbu(t1, FieldMemOperand(t1, SharedFunctionInfo::kCompilerHintsOffset));
- __ And(t2, t1, Operand(1 << SharedFunctionInfo::kStrongModeBitWithinByte));
- __ Branch(&weak_function, eq, t2, Operand(zero_reg));
+ __ ld(a4, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset));
+ __ lbu(a4, FieldMemOperand(a4, SharedFunctionInfo::kStrongModeByteOffset));
+ __ And(a4, a4, Operand(1 << SharedFunctionInfo::kStrongModeBitWithinByte));
+ __ Branch(&weak_function, eq, a4, Operand(zero_reg));
{
FrameScope frame(masm, StackFrame::MANUAL);
« 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