| 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 4826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4837 Push(ra, fp, cp, a1); | 4837 Push(ra, fp, cp, a1); |
| 4838 nop(Assembler::CODE_AGE_SEQUENCE_NOP); | 4838 nop(Assembler::CODE_AGE_SEQUENCE_NOP); |
| 4839 // Adjust fp to point to caller's fp. | 4839 // Adjust fp to point to caller's fp. |
| 4840 Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); | 4840 Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
| 4841 } | 4841 } |
| 4842 } | 4842 } |
| 4843 | 4843 |
| 4844 | 4844 |
| 4845 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 4845 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
| 4846 lw(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 4846 lw(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 4847 lw(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset)); | 4847 lw(vector, FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset)); |
| 4848 lw(vector, FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset)); | 4848 lw(vector, |
| 4849 FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); |
| 4849 } | 4850 } |
| 4850 | 4851 |
| 4851 | 4852 |
| 4852 void MacroAssembler::EnterFrame(StackFrame::Type type, | 4853 void MacroAssembler::EnterFrame(StackFrame::Type type, |
| 4853 bool load_constant_pool_pointer_reg) { | 4854 bool load_constant_pool_pointer_reg) { |
| 4854 // Out-of-line constant pool not implemented on mips. | 4855 // Out-of-line constant pool not implemented on mips. |
| 4855 UNREACHABLE(); | 4856 UNREACHABLE(); |
| 4856 } | 4857 } |
| 4857 | 4858 |
| 4858 | 4859 |
| (...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5828 if (mag.shift > 0) sra(result, result, mag.shift); | 5829 if (mag.shift > 0) sra(result, result, mag.shift); |
| 5829 srl(at, dividend, 31); | 5830 srl(at, dividend, 31); |
| 5830 Addu(result, result, Operand(at)); | 5831 Addu(result, result, Operand(at)); |
| 5831 } | 5832 } |
| 5832 | 5833 |
| 5833 | 5834 |
| 5834 } // namespace internal | 5835 } // namespace internal |
| 5835 } // namespace v8 | 5836 } // namespace v8 |
| 5836 | 5837 |
| 5837 #endif // V8_TARGET_ARCH_MIPS | 5838 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |