| 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_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
| 10 | 10 |
| (...skipping 4869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4880 nop(); // Pad the empty space. | 4880 nop(); // Pad the empty space. |
| 4881 } else { | 4881 } else { |
| 4882 Push(ra, fp, cp, a1); | 4882 Push(ra, fp, cp, a1); |
| 4883 nop(Assembler::CODE_AGE_SEQUENCE_NOP); | 4883 nop(Assembler::CODE_AGE_SEQUENCE_NOP); |
| 4884 // Adjust fp to point to caller's fp. | 4884 // Adjust fp to point to caller's fp. |
| 4885 Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); | 4885 Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
| 4886 } | 4886 } |
| 4887 } | 4887 } |
| 4888 | 4888 |
| 4889 | 4889 |
| 4890 void MacroAssembler::EnterFrame(StackFrame::Type type) { | 4890 void MacroAssembler::EnterFrame(StackFrame::Type type, |
| 4891 bool load_constant_pool_pointer_reg) { |
| 4892 DCHECK(!load_constant_pool_pointer_reg); |
| 4891 addiu(sp, sp, -5 * kPointerSize); | 4893 addiu(sp, sp, -5 * kPointerSize); |
| 4892 li(t8, Operand(Smi::FromInt(type))); | 4894 li(t8, Operand(Smi::FromInt(type))); |
| 4893 li(t9, Operand(CodeObject()), CONSTANT_SIZE); | 4895 li(t9, Operand(CodeObject()), CONSTANT_SIZE); |
| 4894 sw(ra, MemOperand(sp, 4 * kPointerSize)); | 4896 sw(ra, MemOperand(sp, 4 * kPointerSize)); |
| 4895 sw(fp, MemOperand(sp, 3 * kPointerSize)); | 4897 sw(fp, MemOperand(sp, 3 * kPointerSize)); |
| 4896 sw(cp, MemOperand(sp, 2 * kPointerSize)); | 4898 sw(cp, MemOperand(sp, 2 * kPointerSize)); |
| 4897 sw(t8, MemOperand(sp, 1 * kPointerSize)); | 4899 sw(t8, MemOperand(sp, 1 * kPointerSize)); |
| 4898 sw(t9, MemOperand(sp, 0 * kPointerSize)); | 4900 sw(t9, MemOperand(sp, 0 * kPointerSize)); |
| 4899 // Adjust FP to point to saved FP. | 4901 // Adjust FP to point to saved FP. |
| 4900 Addu(fp, sp, | 4902 Addu(fp, sp, |
| (...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6096 } | 6098 } |
| 6097 if (mag.shift > 0) sra(result, result, mag.shift); | 6099 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6098 srl(at, dividend, 31); | 6100 srl(at, dividend, 31); |
| 6099 Addu(result, result, Operand(at)); | 6101 Addu(result, result, Operand(at)); |
| 6100 } | 6102 } |
| 6101 | 6103 |
| 6102 | 6104 |
| 6103 } } // namespace v8::internal | 6105 } } // namespace v8::internal |
| 6104 | 6106 |
| 6105 #endif // V8_TARGET_ARCH_MIPS | 6107 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |