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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
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 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 // Continue loop if not done. | 1021 // Continue loop if not done. |
1022 __ bind(&loop_check); | 1022 __ bind(&loop_check); |
1023 __ Subu(t0, t0, Operand(kPointerSize)); | 1023 __ Subu(t0, t0, Operand(kPointerSize)); |
1024 __ Branch(&loop_header, ge, t0, Operand(zero_reg)); | 1024 __ Branch(&loop_header, ge, t0, Operand(zero_reg)); |
1025 } | 1025 } |
1026 | 1026 |
1027 // TODO(rmcilroy): List of things not currently dealt with here but done in | 1027 // TODO(rmcilroy): List of things not currently dealt with here but done in |
1028 // fullcodegen's prologue: | 1028 // fullcodegen's prologue: |
1029 // - Support profiler (specifically profiling_counter). | 1029 // - Support profiler (specifically profiling_counter). |
1030 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. | 1030 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. |
1031 // - Allow simulator stop operations if FLAG_stop_at is set. | |
1032 // - Code aging of the BytecodeArray object. | 1031 // - Code aging of the BytecodeArray object. |
1033 | 1032 |
1034 // Load bytecode offset and dispatch table into registers. | 1033 // Load bytecode offset and dispatch table into registers. |
1035 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); | 1034 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); |
1036 __ Addu(kInterpreterRegisterFileRegister, fp, | 1035 __ Addu(kInterpreterRegisterFileRegister, fp, |
1037 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 1036 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
1038 __ li(kInterpreterBytecodeOffsetRegister, | 1037 __ li(kInterpreterBytecodeOffsetRegister, |
1039 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); | 1038 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); |
1040 __ li(kInterpreterDispatchTableRegister, | 1039 __ li(kInterpreterDispatchTableRegister, |
1041 Operand(ExternalReference::interpreter_dispatch_table_address( | 1040 Operand(ExternalReference::interpreter_dispatch_table_address( |
(...skipping 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2762 } | 2761 } |
2763 } | 2762 } |
2764 | 2763 |
2765 | 2764 |
2766 #undef __ | 2765 #undef __ |
2767 | 2766 |
2768 } // namespace internal | 2767 } // namespace internal |
2769 } // namespace v8 | 2768 } // namespace v8 |
2770 | 2769 |
2771 #endif // V8_TARGET_ARCH_MIPS | 2770 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |