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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1091 Register debug_info = r5; | 1091 Register debug_info = r5; |
1092 DCHECK(!debug_info.is(r3)); | 1092 DCHECK(!debug_info.is(r3)); |
1093 __ LoadP(debug_info, | 1093 __ LoadP(debug_info, |
1094 FieldMemOperand(r3, SharedFunctionInfo::kDebugInfoOffset)); | 1094 FieldMemOperand(r3, SharedFunctionInfo::kDebugInfoOffset)); |
1095 // Load original bytecode array or the debug copy. | 1095 // Load original bytecode array or the debug copy. |
1096 __ LoadP(kInterpreterBytecodeArrayRegister, | 1096 __ LoadP(kInterpreterBytecodeArrayRegister, |
1097 FieldMemOperand(r3, SharedFunctionInfo::kFunctionDataOffset)); | 1097 FieldMemOperand(r3, SharedFunctionInfo::kFunctionDataOffset)); |
1098 __ TestIfSmi(debug_info, r0); | 1098 __ TestIfSmi(debug_info, r0); |
1099 __ beq(&array_done, cr0); | 1099 __ beq(&array_done, cr0); |
1100 __ LoadP(kInterpreterBytecodeArrayRegister, | 1100 __ LoadP(kInterpreterBytecodeArrayRegister, |
1101 FieldMemOperand(debug_info, DebugInfo::kDebugBytecodeArrayIndex)); | 1101 FieldMemOperand(debug_info, DebugInfo::kDebugBytecodeArrayOffset)); |
1102 __ bind(&array_done); | 1102 __ bind(&array_done); |
1103 | 1103 |
1104 // Check whether we should continue to use the interpreter. | 1104 // Check whether we should continue to use the interpreter. |
1105 // TODO(rmcilroy) Remove self healing once liveedit only has to deal with | 1105 // TODO(rmcilroy) Remove self healing once liveedit only has to deal with |
1106 // Ignition bytecode. | 1106 // Ignition bytecode. |
1107 Label switch_to_different_code_kind; | 1107 Label switch_to_different_code_kind; |
1108 __ LoadP(r3, FieldMemOperand(r3, SharedFunctionInfo::kCodeOffset)); | 1108 __ LoadP(r3, FieldMemOperand(r3, SharedFunctionInfo::kCodeOffset)); |
1109 __ mov(ip, Operand(masm->CodeObject())); // Self-reference to this code. | 1109 __ mov(ip, Operand(masm->CodeObject())); // Self-reference to this code. |
1110 __ cmp(r3, ip); | 1110 __ cmp(r3, ip); |
1111 __ bne(&switch_to_different_code_kind); | 1111 __ bne(&switch_to_different_code_kind); |
(...skipping 2068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3180 } | 3180 } |
3181 // Now jump to the instructions of the returned code object. | 3181 // Now jump to the instructions of the returned code object. |
3182 __ Jump(r11); | 3182 __ Jump(r11); |
3183 } | 3183 } |
3184 | 3184 |
3185 #undef __ | 3185 #undef __ |
3186 } // namespace internal | 3186 } // namespace internal |
3187 } // namespace v8 | 3187 } // namespace v8 |
3188 | 3188 |
3189 #endif // V8_TARGET_ARCH_PPC | 3189 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |