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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 // it is present) and load it into kInterpreterBytecodeArrayRegister. | 1018 // it is present) and load it into kInterpreterBytecodeArrayRegister. |
1019 __ LoadP(r2, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset)); | 1019 __ LoadP(r2, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset)); |
1020 Label array_done; | 1020 Label array_done; |
1021 Register debug_info = r4; | 1021 Register debug_info = r4; |
1022 DCHECK(!debug_info.is(r2)); | 1022 DCHECK(!debug_info.is(r2)); |
1023 __ LoadP(debug_info, | 1023 __ LoadP(debug_info, |
1024 FieldMemOperand(r2, SharedFunctionInfo::kDebugInfoOffset)); | 1024 FieldMemOperand(r2, SharedFunctionInfo::kDebugInfoOffset)); |
1025 // Load original bytecode array or the debug copy. | 1025 // Load original bytecode array or the debug copy. |
1026 __ LoadP(kInterpreterBytecodeArrayRegister, | 1026 __ LoadP(kInterpreterBytecodeArrayRegister, |
1027 FieldMemOperand(r2, SharedFunctionInfo::kFunctionDataOffset)); | 1027 FieldMemOperand(r2, SharedFunctionInfo::kFunctionDataOffset)); |
1028 __ CmpSmiLiteral(debug_info, DebugInfo::uninitialized(), r0); | 1028 __ TestIfSmi(debug_info); |
1029 __ beq(&array_done); | 1029 __ beq(&array_done); |
1030 __ LoadP(kInterpreterBytecodeArrayRegister, | 1030 __ LoadP(kInterpreterBytecodeArrayRegister, |
1031 FieldMemOperand(debug_info, DebugInfo::kDebugBytecodeArrayIndex)); | 1031 FieldMemOperand(debug_info, DebugInfo::kDebugBytecodeArrayIndex)); |
1032 __ bind(&array_done); | 1032 __ bind(&array_done); |
1033 | 1033 |
1034 // Check whether we should continue to use the interpreter. | 1034 // Check whether we should continue to use the interpreter. |
1035 Label switch_to_different_code_kind; | 1035 Label switch_to_different_code_kind; |
1036 __ LoadP(r2, FieldMemOperand(r2, SharedFunctionInfo::kCodeOffset)); | 1036 __ LoadP(r2, FieldMemOperand(r2, SharedFunctionInfo::kCodeOffset)); |
1037 __ CmpP(r2, Operand(masm->CodeObject())); // Self-reference to this code. | 1037 __ CmpP(r2, Operand(masm->CodeObject())); // Self-reference to this code. |
1038 __ bne(&switch_to_different_code_kind); | 1038 __ bne(&switch_to_different_code_kind); |
(...skipping 2085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3124 __ bkpt(0); | 3124 __ bkpt(0); |
3125 } | 3125 } |
3126 } | 3126 } |
3127 | 3127 |
3128 #undef __ | 3128 #undef __ |
3129 | 3129 |
3130 } // namespace internal | 3130 } // namespace internal |
3131 } // namespace v8 | 3131 } // namespace v8 |
3132 | 3132 |
3133 #endif // V8_TARGET_ARCH_S390 | 3133 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |