| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 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 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 // Check function data field is actually a BytecodeArray object. | 1013 // Check function data field is actually a BytecodeArray object. |
| 1014 if (FLAG_debug_code) { | 1014 if (FLAG_debug_code) { |
| 1015 __ SmiTst(kInterpreterBytecodeArrayRegister, a4); | 1015 __ SmiTst(kInterpreterBytecodeArrayRegister, a4); |
| 1016 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry, a4, | 1016 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry, a4, |
| 1017 Operand(zero_reg)); | 1017 Operand(zero_reg)); |
| 1018 __ GetObjectType(kInterpreterBytecodeArrayRegister, a4, a4); | 1018 __ GetObjectType(kInterpreterBytecodeArrayRegister, a4, a4); |
| 1019 __ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry, a4, | 1019 __ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry, a4, |
| 1020 Operand(BYTECODE_ARRAY_TYPE)); | 1020 Operand(BYTECODE_ARRAY_TYPE)); |
| 1021 } | 1021 } |
| 1022 | 1022 |
| 1023 // Reset code age. |
| 1024 DCHECK_EQ(0, BytecodeArray::kNoAgeBytecodeAge); |
| 1025 __ sb(zero_reg, FieldMemOperand(kInterpreterBytecodeArrayRegister, |
| 1026 BytecodeArray::kBytecodeAgeOffset)); |
| 1027 |
| 1023 // Load initial bytecode offset. | 1028 // Load initial bytecode offset. |
| 1024 __ li(kInterpreterBytecodeOffsetRegister, | 1029 __ li(kInterpreterBytecodeOffsetRegister, |
| 1025 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); | 1030 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); |
| 1026 | 1031 |
| 1027 // Push new.target, bytecode array and Smi tagged bytecode array offset. | 1032 // Push new.target, bytecode array and Smi tagged bytecode array offset. |
| 1028 __ SmiTag(a4, kInterpreterBytecodeOffsetRegister); | 1033 __ SmiTag(a4, kInterpreterBytecodeOffsetRegister); |
| 1029 __ Push(a3, kInterpreterBytecodeArrayRegister, a4); | 1034 __ Push(a3, kInterpreterBytecodeArrayRegister, a4); |
| 1030 | 1035 |
| 1031 // Allocate the local and temporary register file on the stack. | 1036 // Allocate the local and temporary register file on the stack. |
| 1032 { | 1037 { |
| (...skipping 1932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2965 __ break_(0xCC); | 2970 __ break_(0xCC); |
| 2966 } | 2971 } |
| 2967 } | 2972 } |
| 2968 | 2973 |
| 2969 #undef __ | 2974 #undef __ |
| 2970 | 2975 |
| 2971 } // namespace internal | 2976 } // namespace internal |
| 2972 } // namespace v8 | 2977 } // namespace v8 |
| 2973 | 2978 |
| 2974 #endif // V8_TARGET_ARCH_MIPS64 | 2979 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |