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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 | 1051 |
1052 // Check function data field is actually a BytecodeArray object. | 1052 // Check function data field is actually a BytecodeArray object. |
1053 if (FLAG_debug_code) { | 1053 if (FLAG_debug_code) { |
1054 __ TestIfSmi(kInterpreterBytecodeArrayRegister); | 1054 __ TestIfSmi(kInterpreterBytecodeArrayRegister); |
1055 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); | 1055 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); |
1056 __ CompareObjectType(kInterpreterBytecodeArrayRegister, r2, no_reg, | 1056 __ CompareObjectType(kInterpreterBytecodeArrayRegister, r2, no_reg, |
1057 BYTECODE_ARRAY_TYPE); | 1057 BYTECODE_ARRAY_TYPE); |
1058 __ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); | 1058 __ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); |
1059 } | 1059 } |
1060 | 1060 |
| 1061 // Reset code age. |
| 1062 __ mov(r1, Operand(BytecodeArray::kNoAgeBytecodeAge)); |
| 1063 __ StoreByte(r1, FieldMemOperand(kInterpreterBytecodeArrayRegister, |
| 1064 BytecodeArray::kBytecodeAgeOffset), |
| 1065 r0); |
| 1066 |
1061 // Load the initial bytecode offset. | 1067 // Load the initial bytecode offset. |
1062 __ mov(kInterpreterBytecodeOffsetRegister, | 1068 __ mov(kInterpreterBytecodeOffsetRegister, |
1063 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); | 1069 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); |
1064 | 1070 |
1065 // Push new.target, bytecode array and Smi tagged bytecode array offset. | 1071 // Push new.target, bytecode array and Smi tagged bytecode array offset. |
1066 __ SmiTag(r4, kInterpreterBytecodeOffsetRegister); | 1072 __ SmiTag(r4, kInterpreterBytecodeOffsetRegister); |
1067 __ Push(r5, kInterpreterBytecodeArrayRegister, r4); | 1073 __ Push(r5, kInterpreterBytecodeArrayRegister, r4); |
1068 | 1074 |
1069 // Allocate the local and temporary register file on the stack. | 1075 // Allocate the local and temporary register file on the stack. |
1070 { | 1076 { |
(...skipping 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2959 __ bkpt(0); | 2965 __ bkpt(0); |
2960 } | 2966 } |
2961 } | 2967 } |
2962 | 2968 |
2963 #undef __ | 2969 #undef __ |
2964 | 2970 |
2965 } // namespace internal | 2971 } // namespace internal |
2966 } // namespace v8 | 2972 } // namespace v8 |
2967 | 2973 |
2968 #endif // V8_TARGET_ARCH_S390 | 2974 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |