OLD | NEW |
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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
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/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) { | 26 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) { |
27 __ sll(t9, a0, kPointerSizeLog2); | 27 __ sll(t9, a0, kPointerSizeLog2); |
28 __ Addu(t9, sp, t9); | 28 __ Addu(t9, sp, t9); |
29 __ sw(a1, MemOperand(t9, 0)); | 29 __ sw(a1, MemOperand(t9, 0)); |
30 __ Push(a1); | 30 __ Push(a1); |
31 __ Push(a2); | 31 __ Push(a2); |
32 __ Addu(a0, a0, Operand(3)); | 32 __ Addu(a0, a0, Operand(3)); |
33 __ TailCallRuntime(Runtime::kNewArray); | 33 __ TailCallRuntime(Runtime::kNewArray); |
34 } | 34 } |
35 | 35 |
36 void FastFunctionBindStub::InitializeDescriptor( | |
37 CodeStubDescriptor* descriptor) { | |
38 Address deopt_handler = Runtime::FunctionForId(Runtime::kFunctionBind)->entry; | |
39 descriptor->Initialize(a0, deopt_handler, -1, JS_FUNCTION_STUB_MODE); | |
40 } | |
41 | |
42 static void EmitIdenticalObjectComparison(MacroAssembler* masm, Label* slow, | 36 static void EmitIdenticalObjectComparison(MacroAssembler* masm, Label* slow, |
43 Condition cc); | 37 Condition cc); |
44 static void EmitSmiNonsmiComparison(MacroAssembler* masm, | 38 static void EmitSmiNonsmiComparison(MacroAssembler* masm, |
45 Register lhs, | 39 Register lhs, |
46 Register rhs, | 40 Register rhs, |
47 Label* rhs_not_nan, | 41 Label* rhs_not_nan, |
48 Label* slow, | 42 Label* slow, |
49 bool strict); | 43 bool strict); |
50 static void EmitStrictTwoHeapObjectCompare(MacroAssembler* masm, | 44 static void EmitStrictTwoHeapObjectCompare(MacroAssembler* masm, |
51 Register lhs, | 45 Register lhs, |
(...skipping 4482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4534 kStackUnwindSpace, kInvalidStackOffset, | 4528 kStackUnwindSpace, kInvalidStackOffset, |
4535 return_value_operand, NULL); | 4529 return_value_operand, NULL); |
4536 } | 4530 } |
4537 | 4531 |
4538 #undef __ | 4532 #undef __ |
4539 | 4533 |
4540 } // namespace internal | 4534 } // namespace internal |
4541 } // namespace v8 | 4535 } // namespace v8 |
4542 | 4536 |
4543 #endif // V8_TARGET_ARCH_MIPS | 4537 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |