| 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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1014 // Continue loop if not done. | 1014 // Continue loop if not done. |
| 1015 __ bind(&loop_check); | 1015 __ bind(&loop_check); |
| 1016 __ Dsubu(a4, a4, Operand(kPointerSize)); | 1016 __ Dsubu(a4, a4, Operand(kPointerSize)); |
| 1017 __ Branch(&loop_header, ge, a4, Operand(zero_reg)); | 1017 __ Branch(&loop_header, ge, a4, Operand(zero_reg)); |
| 1018 } | 1018 } |
| 1019 | 1019 |
| 1020 // TODO(rmcilroy): List of things not currently dealt with here but done in | 1020 // TODO(rmcilroy): List of things not currently dealt with here but done in |
| 1021 // fullcodegen's prologue: | 1021 // fullcodegen's prologue: |
| 1022 // - Support profiler (specifically profiling_counter). | 1022 // - Support profiler (specifically profiling_counter). |
| 1023 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. | 1023 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. |
| 1024 // - Allow simulator stop operations if FLAG_stop_at is set. | |
| 1025 // - Code aging of the BytecodeArray object. | 1024 // - Code aging of the BytecodeArray object. |
| 1026 | 1025 |
| 1027 // Load bytecode offset and dispatch table into registers. | 1026 // Load bytecode offset and dispatch table into registers. |
| 1028 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); | 1027 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); |
| 1029 __ Daddu(kInterpreterRegisterFileRegister, fp, | 1028 __ Daddu(kInterpreterRegisterFileRegister, fp, |
| 1030 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 1029 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
| 1031 __ li(kInterpreterBytecodeOffsetRegister, | 1030 __ li(kInterpreterBytecodeOffsetRegister, |
| 1032 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); | 1031 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); |
| 1033 __ li(kInterpreterDispatchTableRegister, | 1032 __ li(kInterpreterDispatchTableRegister, |
| 1034 Operand(ExternalReference::interpreter_dispatch_table_address( | 1033 Operand(ExternalReference::interpreter_dispatch_table_address( |
| (...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2758 } | 2757 } |
| 2759 } | 2758 } |
| 2760 | 2759 |
| 2761 | 2760 |
| 2762 #undef __ | 2761 #undef __ |
| 2763 | 2762 |
| 2764 } // namespace internal | 2763 } // namespace internal |
| 2765 } // namespace v8 | 2764 } // namespace v8 |
| 2766 | 2765 |
| 2767 #endif // V8_TARGET_ARCH_MIPS64 | 2766 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |