| 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 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1067 Register debug_info = r5; | 1067 Register debug_info = r5; |
| 1068 DCHECK(!debug_info.is(r3)); | 1068 DCHECK(!debug_info.is(r3)); |
| 1069 __ LoadP(debug_info, | 1069 __ LoadP(debug_info, |
| 1070 FieldMemOperand(r3, SharedFunctionInfo::kDebugInfoOffset)); | 1070 FieldMemOperand(r3, SharedFunctionInfo::kDebugInfoOffset)); |
| 1071 // Load original bytecode array or the debug copy. | 1071 // Load original bytecode array or the debug copy. |
| 1072 __ LoadP(kInterpreterBytecodeArrayRegister, | 1072 __ LoadP(kInterpreterBytecodeArrayRegister, |
| 1073 FieldMemOperand(r3, SharedFunctionInfo::kFunctionDataOffset)); | 1073 FieldMemOperand(r3, SharedFunctionInfo::kFunctionDataOffset)); |
| 1074 __ CmpSmiLiteral(debug_info, DebugInfo::uninitialized(), r0); | 1074 __ CmpSmiLiteral(debug_info, DebugInfo::uninitialized(), r0); |
| 1075 __ beq(&array_done); | 1075 __ beq(&array_done); |
| 1076 __ LoadP(kInterpreterBytecodeArrayRegister, | 1076 __ LoadP(kInterpreterBytecodeArrayRegister, |
| 1077 FieldMemOperand(debug_info, DebugInfo::kAbstractCodeIndex)); | 1077 FieldMemOperand(debug_info, DebugInfo::kDebugBytecodeArrayIndex)); |
| 1078 __ bind(&array_done); | 1078 __ bind(&array_done); |
| 1079 | 1079 |
| 1080 // Check function data field is actually a BytecodeArray object. | 1080 // Check function data field is actually a BytecodeArray object. |
| 1081 Label bytecode_array_not_present; | 1081 Label bytecode_array_not_present; |
| 1082 __ CompareRoot(kInterpreterBytecodeArrayRegister, | 1082 __ CompareRoot(kInterpreterBytecodeArrayRegister, |
| 1083 Heap::kUndefinedValueRootIndex); | 1083 Heap::kUndefinedValueRootIndex); |
| 1084 __ beq(&bytecode_array_not_present); | 1084 __ beq(&bytecode_array_not_present); |
| 1085 | 1085 |
| 1086 if (FLAG_debug_code) { | 1086 if (FLAG_debug_code) { |
| 1087 __ TestIfSmi(kInterpreterBytecodeArrayRegister, r0); | 1087 __ TestIfSmi(kInterpreterBytecodeArrayRegister, r0); |
| (...skipping 1891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2979 __ CallRuntime(Runtime::kThrowStackOverflow); | 2979 __ CallRuntime(Runtime::kThrowStackOverflow); |
| 2980 __ bkpt(0); | 2980 __ bkpt(0); |
| 2981 } | 2981 } |
| 2982 } | 2982 } |
| 2983 | 2983 |
| 2984 #undef __ | 2984 #undef __ |
| 2985 } // namespace internal | 2985 } // namespace internal |
| 2986 } // namespace v8 | 2986 } // namespace v8 |
| 2987 | 2987 |
| 2988 #endif // V8_TARGET_ARCH_PPC | 2988 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |