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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 // frames.h for its layout. | 980 // frames.h for its layout. |
981 void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { | 981 void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { |
982 // Open a frame scope to indicate that there is a frame on the stack. The | 982 // Open a frame scope to indicate that there is a frame on the stack. The |
983 // MANUAL indicates that the scope shouldn't actually generate code to set up | 983 // MANUAL indicates that the scope shouldn't actually generate code to set up |
984 // the frame (that is done below). | 984 // the frame (that is done below). |
985 FrameScope frame_scope(masm, StackFrame::MANUAL); | 985 FrameScope frame_scope(masm, StackFrame::MANUAL); |
986 __ PushFixedFrame(r1); | 986 __ PushFixedFrame(r1); |
987 __ add(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); | 987 __ add(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
988 __ push(r3); | 988 __ push(r3); |
989 | 989 |
| 990 // Push dispatch table pointer. |
| 991 __ mov(r0, Operand(ExternalReference::interpreter_dispatch_table_address( |
| 992 masm->isolate()))); |
| 993 __ push(r0); |
990 // Push zero for bytecode array offset. | 994 // Push zero for bytecode array offset. |
991 __ mov(r0, Operand(0)); | 995 __ mov(r0, Operand(0)); |
992 __ push(r0); | 996 __ push(r0); |
993 | 997 |
994 // Get the bytecode array from the function object and load the pointer to the | 998 // Get the bytecode array from the function object and load the pointer to the |
995 // first entry into kInterpreterBytecodeRegister. | 999 // first entry into kInterpreterBytecodeRegister. |
996 __ ldr(r0, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset)); | 1000 __ ldr(r0, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset)); |
997 __ ldr(kInterpreterBytecodeArrayRegister, | 1001 __ ldr(kInterpreterBytecodeArrayRegister, |
998 FieldMemOperand(r0, SharedFunctionInfo::kFunctionDataOffset)); | 1002 FieldMemOperand(r0, SharedFunctionInfo::kFunctionDataOffset)); |
999 | 1003 |
(...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2682 } | 2686 } |
2683 } | 2687 } |
2684 | 2688 |
2685 | 2689 |
2686 #undef __ | 2690 #undef __ |
2687 | 2691 |
2688 } // namespace internal | 2692 } // namespace internal |
2689 } // namespace v8 | 2693 } // namespace v8 |
2690 | 2694 |
2691 #endif // V8_TARGET_ARCH_ARM | 2695 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |