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 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 4761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4772 Push(ra, fp, cp, a1); | 4772 Push(ra, fp, cp, a1); |
4773 nop(Assembler::CODE_AGE_SEQUENCE_NOP); | 4773 nop(Assembler::CODE_AGE_SEQUENCE_NOP); |
4774 nop(Assembler::CODE_AGE_SEQUENCE_NOP); | 4774 nop(Assembler::CODE_AGE_SEQUENCE_NOP); |
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 Daddu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); | 4777 Daddu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
4778 } | 4778 } |
4779 } | 4779 } |
4780 | 4780 |
4781 | 4781 |
4782 void MacroAssembler::EnterFrame(StackFrame::Type type) { | 4782 void MacroAssembler::EnterFrame(StackFrame::Type type, |
| 4783 bool load_constant_pool_pointer_reg) { |
| 4784 DCHECK(!load_constant_pool_pointer_reg); |
4783 daddiu(sp, sp, -5 * kPointerSize); | 4785 daddiu(sp, sp, -5 * kPointerSize); |
4784 li(t8, Operand(Smi::FromInt(type))); | 4786 li(t8, Operand(Smi::FromInt(type))); |
4785 li(t9, Operand(CodeObject()), CONSTANT_SIZE); | 4787 li(t9, Operand(CodeObject()), CONSTANT_SIZE); |
4786 sd(ra, MemOperand(sp, 4 * kPointerSize)); | 4788 sd(ra, MemOperand(sp, 4 * kPointerSize)); |
4787 sd(fp, MemOperand(sp, 3 * kPointerSize)); | 4789 sd(fp, MemOperand(sp, 3 * kPointerSize)); |
4788 sd(cp, MemOperand(sp, 2 * kPointerSize)); | 4790 sd(cp, MemOperand(sp, 2 * kPointerSize)); |
4789 sd(t8, MemOperand(sp, 1 * kPointerSize)); | 4791 sd(t8, MemOperand(sp, 1 * kPointerSize)); |
4790 sd(t9, MemOperand(sp, 0 * kPointerSize)); | 4792 sd(t9, MemOperand(sp, 0 * kPointerSize)); |
4791 // Adjust FP to point to saved FP. | 4793 // Adjust FP to point to saved FP. |
4792 Daddu(fp, sp, | 4794 Daddu(fp, sp, |
(...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6080 } | 6082 } |
6081 if (mag.shift > 0) sra(result, result, mag.shift); | 6083 if (mag.shift > 0) sra(result, result, mag.shift); |
6082 srl(at, dividend, 31); | 6084 srl(at, dividend, 31); |
6083 Addu(result, result, Operand(at)); | 6085 Addu(result, result, Operand(at)); |
6084 } | 6086 } |
6085 | 6087 |
6086 | 6088 |
6087 } } // namespace v8::internal | 6089 } } // namespace v8::internal |
6088 | 6090 |
6089 #endif // V8_TARGET_ARCH_MIPS64 | 6091 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |