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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 // TODO(rmcilroy): Consider doing more than one push per loop iteration. | 893 // TODO(rmcilroy): Consider doing more than one push per loop iteration. |
894 __ push(t1); | 894 __ push(t1); |
895 // Continue loop if not done. | 895 // Continue loop if not done. |
896 __ bind(&loop_check); | 896 __ bind(&loop_check); |
897 __ Subu(t0, t0, Operand(kPointerSize)); | 897 __ Subu(t0, t0, Operand(kPointerSize)); |
898 __ Branch(&loop_header, ge, t0, Operand(zero_reg)); | 898 __ Branch(&loop_header, ge, t0, Operand(zero_reg)); |
899 } | 899 } |
900 | 900 |
901 // TODO(rmcilroy): List of things not currently dealt with here but done in | 901 // TODO(rmcilroy): List of things not currently dealt with here but done in |
902 // fullcodegen's prologue: | 902 // fullcodegen's prologue: |
903 // - Support profiler (specifically profiling_counter). | |
904 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. | 903 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. |
905 // - Code aging of the BytecodeArray object. | 904 // - Code aging of the BytecodeArray object. |
906 | 905 |
907 // Load bytecode offset and dispatch table into registers. | 906 // Load bytecode offset and dispatch table into registers. |
908 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); | 907 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); |
909 __ Addu(kInterpreterRegisterFileRegister, fp, | 908 __ Addu(kInterpreterRegisterFileRegister, fp, |
910 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 909 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
911 __ li(kInterpreterBytecodeOffsetRegister, | 910 __ li(kInterpreterBytecodeOffsetRegister, |
912 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); | 911 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); |
913 __ li(kInterpreterDispatchTableRegister, | 912 __ li(kInterpreterDispatchTableRegister, |
(...skipping 1727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2641 } | 2640 } |
2642 } | 2641 } |
2643 | 2642 |
2644 | 2643 |
2645 #undef __ | 2644 #undef __ |
2646 | 2645 |
2647 } // namespace internal | 2646 } // namespace internal |
2648 } // namespace v8 | 2647 } // namespace v8 |
2649 | 2648 |
2650 #endif // V8_TARGET_ARCH_MIPS | 2649 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |