| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_PPC | 7 #if V8_TARGET_ARCH_PPC |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 2708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2719 __ GetBuiltinFunction(r4, Builtins::CALL_NON_FUNCTION); | 2719 __ GetBuiltinFunction(r4, Builtins::CALL_NON_FUNCTION); |
| 2720 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), | 2720 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
| 2721 RelocInfo::CODE_TARGET); | 2721 RelocInfo::CODE_TARGET); |
| 2722 } | 2722 } |
| 2723 | 2723 |
| 2724 | 2724 |
| 2725 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { | 2725 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { |
| 2726 // Wrap the receiver and patch it back onto the stack. | 2726 // Wrap the receiver and patch it back onto the stack. |
| 2727 { | 2727 { |
| 2728 FrameAndConstantPoolScope frame_scope(masm, StackFrame::INTERNAL); | 2728 FrameAndConstantPoolScope frame_scope(masm, StackFrame::INTERNAL); |
| 2729 __ Push(r4, r6); | 2729 __ push(r4); |
| 2730 __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION); | 2730 __ mr(r3, r6); |
| 2731 ToObjectStub stub(masm->isolate()); |
| 2732 __ CallStub(&stub); |
| 2731 __ pop(r4); | 2733 __ pop(r4); |
| 2732 } | 2734 } |
| 2733 __ StoreP(r3, MemOperand(sp, argc * kPointerSize), r0); | 2735 __ StoreP(r3, MemOperand(sp, argc * kPointerSize), r0); |
| 2734 __ b(cont); | 2736 __ b(cont); |
| 2735 } | 2737 } |
| 2736 | 2738 |
| 2737 | 2739 |
| 2738 static void CallFunctionNoFeedback(MacroAssembler* masm, int argc, | 2740 static void CallFunctionNoFeedback(MacroAssembler* masm, int argc, |
| 2739 bool needs_checks, bool call_as_method) { | 2741 bool needs_checks, bool call_as_method) { |
| 2740 // r4 : the function to call | 2742 // r4 : the function to call |
| (...skipping 3085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5826 kStackUnwindSpace, NULL, | 5828 kStackUnwindSpace, NULL, |
| 5827 MemOperand(fp, 6 * kPointerSize), NULL); | 5829 MemOperand(fp, 6 * kPointerSize), NULL); |
| 5828 } | 5830 } |
| 5829 | 5831 |
| 5830 | 5832 |
| 5831 #undef __ | 5833 #undef __ |
| 5832 } // namespace internal | 5834 } // namespace internal |
| 5833 } // namespace v8 | 5835 } // namespace v8 |
| 5834 | 5836 |
| 5835 #endif // V8_TARGET_ARCH_PPC | 5837 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |