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

Side by Side Diff: src/mips64/code-stubs-mips64.cc

Issue 2532483002: [stubs] Port FastFunctionBindStub to TF (Closed)
Patch Set: Review feedback Created 4 years 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 unified diff | Download patch
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 14 matching lines...) Expand all
25 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) { 25 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) {
26 __ dsll(t9, a0, kPointerSizeLog2); 26 __ dsll(t9, a0, kPointerSizeLog2);
27 __ Daddu(t9, sp, t9); 27 __ Daddu(t9, sp, t9);
28 __ sd(a1, MemOperand(t9, 0)); 28 __ sd(a1, MemOperand(t9, 0));
29 __ Push(a1); 29 __ Push(a1);
30 __ Push(a2); 30 __ Push(a2);
31 __ Daddu(a0, a0, 3); 31 __ Daddu(a0, a0, 3);
32 __ TailCallRuntime(Runtime::kNewArray); 32 __ TailCallRuntime(Runtime::kNewArray);
33 } 33 }
34 34
35 void FastFunctionBindStub::InitializeDescriptor(
36 CodeStubDescriptor* descriptor) {
37 Address deopt_handler = Runtime::FunctionForId(Runtime::kFunctionBind)->entry;
38 descriptor->Initialize(a0, deopt_handler, -1, JS_FUNCTION_STUB_MODE);
39 }
40
41 static void EmitIdenticalObjectComparison(MacroAssembler* masm, Label* slow, 35 static void EmitIdenticalObjectComparison(MacroAssembler* masm, Label* slow,
42 Condition cc); 36 Condition cc);
43 static void EmitSmiNonsmiComparison(MacroAssembler* masm, 37 static void EmitSmiNonsmiComparison(MacroAssembler* masm,
44 Register lhs, 38 Register lhs,
45 Register rhs, 39 Register rhs,
46 Label* rhs_not_nan, 40 Label* rhs_not_nan,
47 Label* slow, 41 Label* slow,
48 bool strict); 42 bool strict);
49 static void EmitStrictTwoHeapObjectCompare(MacroAssembler* masm, 43 static void EmitStrictTwoHeapObjectCompare(MacroAssembler* masm,
50 Register lhs, 44 Register lhs,
(...skipping 4508 matching lines...) Expand 10 before | Expand all | Expand 10 after
4559 kStackUnwindSpace, kInvalidStackOffset, 4553 kStackUnwindSpace, kInvalidStackOffset,
4560 return_value_operand, NULL); 4554 return_value_operand, NULL);
4561 } 4555 }
4562 4556
4563 #undef __ 4557 #undef __
4564 4558
4565 } // namespace internal 4559 } // namespace internal
4566 } // namespace v8 4560 } // namespace v8
4567 4561
4568 #endif // V8_TARGET_ARCH_MIPS64 4562 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698