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 #include <limits.h> // For LONG_MIN, LONG_MAX. | 5 #include <limits.h> // For LONG_MIN, LONG_MAX. |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 #include "src/base/division-by-constant.h" | 9 #include "src/base/division-by-constant.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 4938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4949 Push(ra, fp, cp, a1); | 4949 Push(ra, fp, cp, a1); |
4950 nop(Assembler::CODE_AGE_SEQUENCE_NOP); | 4950 nop(Assembler::CODE_AGE_SEQUENCE_NOP); |
4951 nop(Assembler::CODE_AGE_SEQUENCE_NOP); | 4951 nop(Assembler::CODE_AGE_SEQUENCE_NOP); |
4952 nop(Assembler::CODE_AGE_SEQUENCE_NOP); | 4952 nop(Assembler::CODE_AGE_SEQUENCE_NOP); |
4953 // Adjust fp to point to caller's fp. | 4953 // Adjust fp to point to caller's fp. |
4954 Daddu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); | 4954 Daddu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
4955 } | 4955 } |
4956 } | 4956 } |
4957 | 4957 |
4958 | 4958 |
| 4959 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
| 4960 ld(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 4961 ld(vector, FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset)); |
| 4962 ld(vector, |
| 4963 FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); |
| 4964 } |
| 4965 |
| 4966 |
4959 void MacroAssembler::EnterFrame(StackFrame::Type type, | 4967 void MacroAssembler::EnterFrame(StackFrame::Type type, |
4960 bool load_constant_pool_pointer_reg) { | 4968 bool load_constant_pool_pointer_reg) { |
4961 // Out-of-line constant pool not implemented on mips64. | 4969 // Out-of-line constant pool not implemented on mips64. |
4962 UNREACHABLE(); | 4970 UNREACHABLE(); |
4963 } | 4971 } |
4964 | 4972 |
4965 | 4973 |
4966 void MacroAssembler::EnterFrame(StackFrame::Type type) { | 4974 void MacroAssembler::EnterFrame(StackFrame::Type type) { |
4967 daddiu(sp, sp, -5 * kPointerSize); | 4975 daddiu(sp, sp, -5 * kPointerSize); |
4968 li(t8, Operand(Smi::FromInt(type))); | 4976 li(t8, Operand(Smi::FromInt(type))); |
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6111 if (mag.shift > 0) sra(result, result, mag.shift); | 6119 if (mag.shift > 0) sra(result, result, mag.shift); |
6112 srl(at, dividend, 31); | 6120 srl(at, dividend, 31); |
6113 Addu(result, result, Operand(at)); | 6121 Addu(result, result, Operand(at)); |
6114 } | 6122 } |
6115 | 6123 |
6116 | 6124 |
6117 } // namespace internal | 6125 } // namespace internal |
6118 } // namespace v8 | 6126 } // namespace v8 |
6119 | 6127 |
6120 #endif // V8_TARGET_ARCH_MIPS64 | 6128 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |