OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1033 | 1033 |
1034 // Check function data field is actually a BytecodeArray object. | 1034 // Check function data field is actually a BytecodeArray object. |
1035 if (FLAG_debug_code) { | 1035 if (FLAG_debug_code) { |
1036 __ AssertNotSmi(kInterpreterBytecodeArrayRegister, | 1036 __ AssertNotSmi(kInterpreterBytecodeArrayRegister, |
1037 kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); | 1037 kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); |
1038 __ CompareObjectType(kInterpreterBytecodeArrayRegister, x0, x0, | 1038 __ CompareObjectType(kInterpreterBytecodeArrayRegister, x0, x0, |
1039 BYTECODE_ARRAY_TYPE); | 1039 BYTECODE_ARRAY_TYPE); |
1040 __ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); | 1040 __ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); |
1041 } | 1041 } |
1042 | 1042 |
| 1043 // Reset code age. |
| 1044 __ Mov(x10, Operand(BytecodeArray::kNoAgeBytecodeAge)); |
| 1045 __ Strb(x10, FieldMemOperand(kInterpreterBytecodeArrayRegister, |
| 1046 BytecodeArray::kBytecodeAgeOffset)); |
| 1047 |
1043 // Load the initial bytecode offset. | 1048 // Load the initial bytecode offset. |
1044 __ Mov(kInterpreterBytecodeOffsetRegister, | 1049 __ Mov(kInterpreterBytecodeOffsetRegister, |
1045 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); | 1050 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); |
1046 | 1051 |
1047 // Push new.target, bytecode array and Smi tagged bytecode array offset. | 1052 // Push new.target, bytecode array and Smi tagged bytecode array offset. |
1048 __ SmiTag(x0, kInterpreterBytecodeOffsetRegister); | 1053 __ SmiTag(x0, kInterpreterBytecodeOffsetRegister); |
1049 __ Push(x3, kInterpreterBytecodeArrayRegister, x0); | 1054 __ Push(x3, kInterpreterBytecodeArrayRegister, x0); |
1050 | 1055 |
1051 // Allocate the local and temporary register file on the stack. | 1056 // Allocate the local and temporary register file on the stack. |
1052 { | 1057 { |
(...skipping 1946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2999 __ Unreachable(); | 3004 __ Unreachable(); |
3000 } | 3005 } |
3001 } | 3006 } |
3002 | 3007 |
3003 #undef __ | 3008 #undef __ |
3004 | 3009 |
3005 } // namespace internal | 3010 } // namespace internal |
3006 } // namespace v8 | 3011 } // namespace v8 |
3007 | 3012 |
3008 #endif // V8_TARGET_ARCH_ARM | 3013 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |