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 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1148 | 1148 |
1149 | 1149 |
1150 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { | 1150 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { |
1151 // Initialize register file register and dispatch table register. | 1151 // Initialize register file register and dispatch table register. |
1152 __ addi(kInterpreterRegisterFileRegister, fp, | 1152 __ addi(kInterpreterRegisterFileRegister, fp, |
1153 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 1153 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
1154 __ mov(kInterpreterDispatchTableRegister, | 1154 __ mov(kInterpreterDispatchTableRegister, |
1155 Operand(ExternalReference::interpreter_dispatch_table_address( | 1155 Operand(ExternalReference::interpreter_dispatch_table_address( |
1156 masm->isolate()))); | 1156 masm->isolate()))); |
1157 | 1157 |
1158 // Get the context from the frame. | |
1159 __ LoadP(kContextRegister, | |
1160 MemOperand(kInterpreterRegisterFileRegister, | |
1161 InterpreterFrameConstants::kContextFromRegisterPointer)); | |
1162 | |
1163 // Get the bytecode array pointer from the frame. | 1158 // Get the bytecode array pointer from the frame. |
1164 __ LoadP( | 1159 __ LoadP( |
1165 kInterpreterBytecodeArrayRegister, | 1160 kInterpreterBytecodeArrayRegister, |
1166 MemOperand(kInterpreterRegisterFileRegister, | 1161 MemOperand(kInterpreterRegisterFileRegister, |
1167 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer)); | 1162 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer)); |
1168 | 1163 |
1169 if (FLAG_debug_code) { | 1164 if (FLAG_debug_code) { |
1170 // Check function data field is actually a BytecodeArray object. | 1165 // Check function data field is actually a BytecodeArray object. |
1171 __ TestIfSmi(kInterpreterBytecodeArrayRegister, r0); | 1166 __ TestIfSmi(kInterpreterBytecodeArrayRegister, r0); |
1172 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); | 1167 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); |
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2717 __ bkpt(0); | 2712 __ bkpt(0); |
2718 } | 2713 } |
2719 } | 2714 } |
2720 | 2715 |
2721 | 2716 |
2722 #undef __ | 2717 #undef __ |
2723 } // namespace internal | 2718 } // namespace internal |
2724 } // namespace v8 | 2719 } // namespace v8 |
2725 | 2720 |
2726 #endif // V8_TARGET_ARCH_PPC | 2721 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |