| 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 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1071 Register debug_info = r4; | 1071 Register debug_info = r4; |
| 1072 DCHECK(!debug_info.is(r2)); | 1072 DCHECK(!debug_info.is(r2)); |
| 1073 __ LoadP(debug_info, | 1073 __ LoadP(debug_info, |
| 1074 FieldMemOperand(r2, SharedFunctionInfo::kDebugInfoOffset)); | 1074 FieldMemOperand(r2, SharedFunctionInfo::kDebugInfoOffset)); |
| 1075 // Load original bytecode array or the debug copy. | 1075 // Load original bytecode array or the debug copy. |
| 1076 __ LoadP(kInterpreterBytecodeArrayRegister, | 1076 __ LoadP(kInterpreterBytecodeArrayRegister, |
| 1077 FieldMemOperand(r2, SharedFunctionInfo::kFunctionDataOffset)); | 1077 FieldMemOperand(r2, SharedFunctionInfo::kFunctionDataOffset)); |
| 1078 __ CmpSmiLiteral(debug_info, DebugInfo::uninitialized(), r0); | 1078 __ CmpSmiLiteral(debug_info, DebugInfo::uninitialized(), r0); |
| 1079 __ beq(&array_done); | 1079 __ beq(&array_done); |
| 1080 __ LoadP(kInterpreterBytecodeArrayRegister, | 1080 __ LoadP(kInterpreterBytecodeArrayRegister, |
| 1081 FieldMemOperand(debug_info, DebugInfo::kAbstractCodeIndex)); | 1081 FieldMemOperand(debug_info, DebugInfo::kDebugBytecodeArrayIndex)); |
| 1082 __ bind(&array_done); | 1082 __ bind(&array_done); |
| 1083 | 1083 |
| 1084 // Check function data field is actually a BytecodeArray object. | 1084 // Check function data field is actually a BytecodeArray object. |
| 1085 Label bytecode_array_not_present; | 1085 Label bytecode_array_not_present; |
| 1086 __ CompareRoot(kInterpreterBytecodeArrayRegister, | 1086 __ CompareRoot(kInterpreterBytecodeArrayRegister, |
| 1087 Heap::kUndefinedValueRootIndex); | 1087 Heap::kUndefinedValueRootIndex); |
| 1088 __ beq(&bytecode_array_not_present); | 1088 __ beq(&bytecode_array_not_present); |
| 1089 | 1089 |
| 1090 if (FLAG_debug_code) { | 1090 if (FLAG_debug_code) { |
| 1091 __ TestIfSmi(kInterpreterBytecodeArrayRegister); | 1091 __ TestIfSmi(kInterpreterBytecodeArrayRegister); |
| (...skipping 1903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2995 __ bkpt(0); | 2995 __ bkpt(0); |
| 2996 } | 2996 } |
| 2997 } | 2997 } |
| 2998 | 2998 |
| 2999 #undef __ | 2999 #undef __ |
| 3000 | 3000 |
| 3001 } // namespace internal | 3001 } // namespace internal |
| 3002 } // namespace v8 | 3002 } // namespace v8 |
| 3003 | 3003 |
| 3004 #endif // V8_TARGET_ARCH_S390 | 3004 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |