| 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 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 // TODO(rmcilroy): Consider doing more than one push per loop iteration. | 1009 // TODO(rmcilroy): Consider doing more than one push per loop iteration. |
| 1010 __ push(a5); | 1010 __ push(a5); |
| 1011 // Continue loop if not done. | 1011 // Continue loop if not done. |
| 1012 __ bind(&loop_check); | 1012 __ bind(&loop_check); |
| 1013 __ Dsubu(a4, a4, Operand(kPointerSize)); | 1013 __ Dsubu(a4, a4, Operand(kPointerSize)); |
| 1014 __ Branch(&loop_header, ge, a4, Operand(zero_reg)); | 1014 __ Branch(&loop_header, ge, a4, Operand(zero_reg)); |
| 1015 } | 1015 } |
| 1016 | 1016 |
| 1017 // TODO(rmcilroy): List of things not currently dealt with here but done in | 1017 // TODO(rmcilroy): List of things not currently dealt with here but done in |
| 1018 // fullcodegen's prologue: | 1018 // fullcodegen's prologue: |
| 1019 // - Support profiler (specifically profiling_counter). | |
| 1020 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. | 1019 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. |
| 1021 // - Code aging of the BytecodeArray object. | 1020 // - Code aging of the BytecodeArray object. |
| 1022 | 1021 |
| 1023 // Load bytecode offset and dispatch table into registers. | 1022 // Load bytecode offset and dispatch table into registers. |
| 1024 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); | 1023 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); |
| 1025 __ Daddu(kInterpreterRegisterFileRegister, fp, | 1024 __ Daddu(kInterpreterRegisterFileRegister, fp, |
| 1026 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 1025 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
| 1027 __ li(kInterpreterBytecodeOffsetRegister, | 1026 __ li(kInterpreterBytecodeOffsetRegister, |
| 1028 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); | 1027 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); |
| 1029 __ li(kInterpreterDispatchTableRegister, | 1028 __ li(kInterpreterDispatchTableRegister, |
| (...skipping 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2759 } | 2758 } |
| 2760 } | 2759 } |
| 2761 | 2760 |
| 2762 | 2761 |
| 2763 #undef __ | 2762 #undef __ |
| 2764 | 2763 |
| 2765 } // namespace internal | 2764 } // namespace internal |
| 2766 } // namespace v8 | 2765 } // namespace v8 |
| 2767 | 2766 |
| 2768 #endif // V8_TARGET_ARCH_MIPS64 | 2767 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |