OLD | NEW |
1 | 1 |
2 // Copyright 2012 the V8 project authors. All rights reserved. | 2 // Copyright 2012 the V8 project authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 | 5 |
6 #include <limits.h> // For LONG_MIN, LONG_MAX. | 6 #include <limits.h> // For LONG_MIN, LONG_MAX. |
7 | 7 |
8 #if V8_TARGET_ARCH_MIPS | 8 #if V8_TARGET_ARCH_MIPS |
9 | 9 |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 4763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4774 Push(ra, fp, cp, a1); | 4774 Push(ra, fp, cp, a1); |
4775 nop(Assembler::CODE_AGE_SEQUENCE_NOP); | 4775 nop(Assembler::CODE_AGE_SEQUENCE_NOP); |
4776 // Adjust fp to point to caller's fp. | 4776 // Adjust fp to point to caller's fp. |
4777 Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); | 4777 Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
4778 } | 4778 } |
4779 } | 4779 } |
4780 | 4780 |
4781 | 4781 |
4782 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 4782 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
4783 lw(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 4783 lw(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
4784 lw(vector, FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset)); | 4784 lw(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset)); |
4785 lw(vector, | 4785 lw(vector, FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset)); |
4786 FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); | |
4787 } | 4786 } |
4788 | 4787 |
4789 | 4788 |
4790 void MacroAssembler::EnterFrame(StackFrame::Type type, | 4789 void MacroAssembler::EnterFrame(StackFrame::Type type, |
4791 bool load_constant_pool_pointer_reg) { | 4790 bool load_constant_pool_pointer_reg) { |
4792 // Out-of-line constant pool not implemented on mips. | 4791 // Out-of-line constant pool not implemented on mips. |
4793 UNREACHABLE(); | 4792 UNREACHABLE(); |
4794 } | 4793 } |
4795 | 4794 |
4796 | 4795 |
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5766 if (mag.shift > 0) sra(result, result, mag.shift); | 5765 if (mag.shift > 0) sra(result, result, mag.shift); |
5767 srl(at, dividend, 31); | 5766 srl(at, dividend, 31); |
5768 Addu(result, result, Operand(at)); | 5767 Addu(result, result, Operand(at)); |
5769 } | 5768 } |
5770 | 5769 |
5771 | 5770 |
5772 } // namespace internal | 5771 } // namespace internal |
5773 } // namespace v8 | 5772 } // namespace v8 |
5774 | 5773 |
5775 #endif // V8_TARGET_ARCH_MIPS | 5774 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |