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 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1083 Register debug_info = r4; | 1083 Register debug_info = r4; |
1084 DCHECK(!debug_info.is(r2)); | 1084 DCHECK(!debug_info.is(r2)); |
1085 __ LoadP(debug_info, | 1085 __ LoadP(debug_info, |
1086 FieldMemOperand(r2, SharedFunctionInfo::kDebugInfoOffset)); | 1086 FieldMemOperand(r2, SharedFunctionInfo::kDebugInfoOffset)); |
1087 // Load original bytecode array or the debug copy. | 1087 // Load original bytecode array or the debug copy. |
1088 __ LoadP(kInterpreterBytecodeArrayRegister, | 1088 __ LoadP(kInterpreterBytecodeArrayRegister, |
1089 FieldMemOperand(r2, SharedFunctionInfo::kFunctionDataOffset)); | 1089 FieldMemOperand(r2, SharedFunctionInfo::kFunctionDataOffset)); |
1090 __ TestIfSmi(debug_info); | 1090 __ TestIfSmi(debug_info); |
1091 __ beq(&array_done); | 1091 __ beq(&array_done); |
1092 __ LoadP(kInterpreterBytecodeArrayRegister, | 1092 __ LoadP(kInterpreterBytecodeArrayRegister, |
1093 FieldMemOperand(debug_info, DebugInfo::kDebugBytecodeArrayIndex)); | 1093 FieldMemOperand(debug_info, DebugInfo::kDebugBytecodeArrayOffset)); |
1094 __ bind(&array_done); | 1094 __ bind(&array_done); |
1095 | 1095 |
1096 // Check whether we should continue to use the interpreter. | 1096 // Check whether we should continue to use the interpreter. |
1097 // TODO(rmcilroy) Remove self healing once liveedit only has to deal with | 1097 // TODO(rmcilroy) Remove self healing once liveedit only has to deal with |
1098 // Ignition bytecode. | 1098 // Ignition bytecode. |
1099 Label switch_to_different_code_kind; | 1099 Label switch_to_different_code_kind; |
1100 __ LoadP(r2, FieldMemOperand(r2, SharedFunctionInfo::kCodeOffset)); | 1100 __ LoadP(r2, FieldMemOperand(r2, SharedFunctionInfo::kCodeOffset)); |
1101 __ CmpP(r2, Operand(masm->CodeObject())); // Self-reference to this code. | 1101 __ CmpP(r2, Operand(masm->CodeObject())); // Self-reference to this code. |
1102 __ bne(&switch_to_different_code_kind); | 1102 __ bne(&switch_to_different_code_kind); |
1103 | 1103 |
(...skipping 2076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3180 // Now jump to the instructions of the returned code object. | 3180 // Now jump to the instructions of the returned code object. |
3181 __ Jump(ip); | 3181 __ Jump(ip); |
3182 } | 3182 } |
3183 | 3183 |
3184 #undef __ | 3184 #undef __ |
3185 | 3185 |
3186 } // namespace internal | 3186 } // namespace internal |
3187 } // namespace v8 | 3187 } // namespace v8 |
3188 | 3188 |
3189 #endif // V8_TARGET_ARCH_S390 | 3189 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |