| 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
| 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 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1136 } | 1136 } |
| 1137 | 1137 |
| 1138 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { | 1138 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { |
| 1139 // Initialize register file register and dispatch table register. | 1139 // Initialize register file register and dispatch table register. |
| 1140 __ AddP(kInterpreterRegisterFileRegister, fp, | 1140 __ AddP(kInterpreterRegisterFileRegister, fp, |
| 1141 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 1141 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
| 1142 __ mov(kInterpreterDispatchTableRegister, | 1142 __ mov(kInterpreterDispatchTableRegister, |
| 1143 Operand(ExternalReference::interpreter_dispatch_table_address( | 1143 Operand(ExternalReference::interpreter_dispatch_table_address( |
| 1144 masm->isolate()))); | 1144 masm->isolate()))); |
| 1145 | 1145 |
| 1146 // Get the context from the frame. | |
| 1147 __ LoadP(kContextRegister, | |
| 1148 MemOperand(kInterpreterRegisterFileRegister, | |
| 1149 InterpreterFrameConstants::kContextFromRegisterPointer)); | |
| 1150 | |
| 1151 // Get the bytecode array pointer from the frame. | 1146 // Get the bytecode array pointer from the frame. |
| 1152 __ LoadP( | 1147 __ LoadP( |
| 1153 kInterpreterBytecodeArrayRegister, | 1148 kInterpreterBytecodeArrayRegister, |
| 1154 MemOperand(kInterpreterRegisterFileRegister, | 1149 MemOperand(kInterpreterRegisterFileRegister, |
| 1155 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer)); | 1150 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer)); |
| 1156 | 1151 |
| 1157 if (FLAG_debug_code) { | 1152 if (FLAG_debug_code) { |
| 1158 // Check function data field is actually a BytecodeArray object. | 1153 // Check function data field is actually a BytecodeArray object. |
| 1159 __ TestIfSmi(kInterpreterBytecodeArrayRegister); | 1154 __ TestIfSmi(kInterpreterBytecodeArrayRegister); |
| 1160 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); | 1155 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); |
| (...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2671 __ bkpt(0); | 2666 __ bkpt(0); |
| 2672 } | 2667 } |
| 2673 } | 2668 } |
| 2674 | 2669 |
| 2675 #undef __ | 2670 #undef __ |
| 2676 | 2671 |
| 2677 } // namespace internal | 2672 } // namespace internal |
| 2678 } // namespace v8 | 2673 } // namespace v8 |
| 2679 | 2674 |
| 2680 #endif // V8_TARGET_ARCH_S390 | 2675 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |