OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) { | 26 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) { |
27 __ ShiftLeftImm(r0, r3, Operand(kPointerSizeLog2)); | 27 __ ShiftLeftImm(r0, r3, Operand(kPointerSizeLog2)); |
28 __ StorePX(r4, MemOperand(sp, r0)); | 28 __ StorePX(r4, MemOperand(sp, r0)); |
29 __ push(r4); | 29 __ push(r4); |
30 __ push(r5); | 30 __ push(r5); |
31 __ addi(r3, r3, Operand(3)); | 31 __ addi(r3, r3, Operand(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(r3, 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 cond); | 36 Condition cond); |
43 static void EmitSmiNonsmiComparison(MacroAssembler* masm, Register lhs, | 37 static void EmitSmiNonsmiComparison(MacroAssembler* masm, Register lhs, |
44 Register rhs, Label* lhs_not_nan, | 38 Register rhs, Label* lhs_not_nan, |
45 Label* slow, bool strict); | 39 Label* slow, bool strict); |
46 static void EmitStrictTwoHeapObjectCompare(MacroAssembler* masm, Register lhs, | 40 static void EmitStrictTwoHeapObjectCompare(MacroAssembler* masm, Register lhs, |
47 Register rhs); | 41 Register rhs); |
48 | 42 |
49 | 43 |
50 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, | 44 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, |
(...skipping 4529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4580 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); | 4574 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); |
4581 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 4575 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
4582 kStackUnwindSpace, NULL, return_value_operand, NULL); | 4576 kStackUnwindSpace, NULL, return_value_operand, NULL); |
4583 } | 4577 } |
4584 | 4578 |
4585 #undef __ | 4579 #undef __ |
4586 } // namespace internal | 4580 } // namespace internal |
4587 } // namespace v8 | 4581 } // namespace v8 |
4588 | 4582 |
4589 #endif // V8_TARGET_ARCH_PPC | 4583 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |