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 4765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4776 Push(ra, fp, cp, a1); | 4776 Push(ra, fp, cp, a1); |
4777 nop(Assembler::CODE_AGE_SEQUENCE_NOP); | 4777 nop(Assembler::CODE_AGE_SEQUENCE_NOP); |
4778 // Adjust fp to point to caller's fp. | 4778 // Adjust fp to point to caller's fp. |
4779 Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); | 4779 Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
4780 } | 4780 } |
4781 } | 4781 } |
4782 | 4782 |
4783 | 4783 |
4784 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 4784 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
4785 lw(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 4785 lw(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
4786 lw(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset)); | 4786 lw(vector, FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset)); |
4787 lw(vector, FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset)); | 4787 lw(vector, |
| 4788 FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); |
4788 } | 4789 } |
4789 | 4790 |
4790 | 4791 |
4791 void MacroAssembler::EnterFrame(StackFrame::Type type, | 4792 void MacroAssembler::EnterFrame(StackFrame::Type type, |
4792 bool load_constant_pool_pointer_reg) { | 4793 bool load_constant_pool_pointer_reg) { |
4793 // Out-of-line constant pool not implemented on mips. | 4794 // Out-of-line constant pool not implemented on mips. |
4794 UNREACHABLE(); | 4795 UNREACHABLE(); |
4795 } | 4796 } |
4796 | 4797 |
4797 | 4798 |
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5767 if (mag.shift > 0) sra(result, result, mag.shift); | 5768 if (mag.shift > 0) sra(result, result, mag.shift); |
5768 srl(at, dividend, 31); | 5769 srl(at, dividend, 31); |
5769 Addu(result, result, Operand(at)); | 5770 Addu(result, result, Operand(at)); |
5770 } | 5771 } |
5771 | 5772 |
5772 | 5773 |
5773 } // namespace internal | 5774 } // namespace internal |
5774 } // namespace v8 | 5775 } // namespace v8 |
5775 | 5776 |
5776 #endif // V8_TARGET_ARCH_MIPS | 5777 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |