| 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/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 971 // frames.h for its layout. | 971 // frames.h for its layout. |
| 972 void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { | 972 void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { |
| 973 // Open a frame scope to indicate that there is a frame on the stack. The | 973 // Open a frame scope to indicate that there is a frame on the stack. The |
| 974 // MANUAL indicates that the scope shouldn't actually generate code to set up | 974 // MANUAL indicates that the scope shouldn't actually generate code to set up |
| 975 // the frame (that is done below). | 975 // the frame (that is done below). |
| 976 FrameScope frame_scope(masm, StackFrame::MANUAL); | 976 FrameScope frame_scope(masm, StackFrame::MANUAL); |
| 977 __ PushFixedFrame(r4); | 977 __ PushFixedFrame(r4); |
| 978 __ addi(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); | 978 __ addi(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
| 979 __ push(r6); | 979 __ push(r6); |
| 980 | 980 |
| 981 // Push dispatch table pointer. |
| 982 __ mov(r3, Operand(ExternalReference::interpreter_dispatch_table_address( |
| 983 masm->isolate()))); |
| 984 __ push(r3); |
| 981 // Push zero for bytecode array offset. | 985 // Push zero for bytecode array offset. |
| 982 __ li(r3, Operand::Zero()); | 986 __ li(r3, Operand::Zero()); |
| 983 __ push(r3); | 987 __ push(r3); |
| 984 | 988 |
| 985 // Get the bytecode array from the function object and load the pointer to the | 989 // Get the bytecode array from the function object and load the pointer to the |
| 986 // first entry into kInterpreterBytecodeRegister. | 990 // first entry into kInterpreterBytecodeRegister. |
| 987 __ LoadP(r3, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); | 991 __ LoadP(r3, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); |
| 988 __ LoadP(kInterpreterBytecodeArrayRegister, | 992 __ LoadP(kInterpreterBytecodeArrayRegister, |
| 989 FieldMemOperand(r3, SharedFunctionInfo::kFunctionDataOffset)); | 993 FieldMemOperand(r3, SharedFunctionInfo::kFunctionDataOffset)); |
| 990 | 994 |
| (...skipping 1762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2753 __ bkpt(0); | 2757 __ bkpt(0); |
| 2754 } | 2758 } |
| 2755 } | 2759 } |
| 2756 | 2760 |
| 2757 | 2761 |
| 2758 #undef __ | 2762 #undef __ |
| 2759 } // namespace internal | 2763 } // namespace internal |
| 2760 } // namespace v8 | 2764 } // namespace v8 |
| 2761 | 2765 |
| 2762 #endif // V8_TARGET_ARCH_PPC | 2766 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |