| 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 4009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4020 SmiCheckType smi_check_type) { | 4020 SmiCheckType smi_check_type) { |
| 4021 if (smi_check_type == DO_SMI_CHECK) { | 4021 if (smi_check_type == DO_SMI_CHECK) { |
| 4022 JumpIfSmi(obj, fail); | 4022 JumpIfSmi(obj, fail); |
| 4023 } | 4023 } |
| 4024 lw(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); | 4024 lw(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); |
| 4025 LoadRoot(at, index); | 4025 LoadRoot(at, index); |
| 4026 Branch(fail, ne, scratch, Operand(at)); | 4026 Branch(fail, ne, scratch, Operand(at)); |
| 4027 } | 4027 } |
| 4028 | 4028 |
| 4029 | 4029 |
| 4030 void MacroAssembler::CmpWeakValue(Register match, Register value, | 4030 void MacroAssembler::GetWeakValue(Register value, Handle<WeakCell> cell) { |
| 4031 Handle<WeakCell> cell) { | 4031 li(value, Operand(cell)); |
| 4032 li(match, Operand(cell)); | 4032 lw(value, FieldMemOperand(value, WeakCell::kValueOffset)); |
| 4033 lw(match, FieldMemOperand(match, WeakCell::kValueOffset)); | |
| 4034 Subu(match, value, match); | |
| 4035 } | 4033 } |
| 4036 | 4034 |
| 4037 | 4035 |
| 4038 void MacroAssembler::LoadWeakValue(Register value, Handle<WeakCell> cell, | 4036 void MacroAssembler::LoadWeakValue(Register value, Handle<WeakCell> cell, |
| 4039 Label* miss) { | 4037 Label* miss) { |
| 4040 li(value, Operand(cell)); | 4038 GetWeakValue(value, cell); |
| 4041 lw(value, FieldMemOperand(value, WeakCell::kValueOffset)); | |
| 4042 JumpIfSmi(value, miss); | 4039 JumpIfSmi(value, miss); |
| 4043 } | 4040 } |
| 4044 | 4041 |
| 4045 | 4042 |
| 4046 void MacroAssembler::MovFromFloatResult(DoubleRegister dst) { | 4043 void MacroAssembler::MovFromFloatResult(DoubleRegister dst) { |
| 4047 if (IsMipsSoftFloatABI) { | 4044 if (IsMipsSoftFloatABI) { |
| 4048 if (kArchEndian == kLittle) { | 4045 if (kArchEndian == kLittle) { |
| 4049 Move(dst, v0, v1); | 4046 Move(dst, v0, v1); |
| 4050 } else { | 4047 } else { |
| 4051 Move(dst, v1, v0); | 4048 Move(dst, v1, v0); |
| (...skipping 2221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6273 } | 6270 } |
| 6274 if (mag.shift > 0) sra(result, result, mag.shift); | 6271 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6275 srl(at, dividend, 31); | 6272 srl(at, dividend, 31); |
| 6276 Addu(result, result, Operand(at)); | 6273 Addu(result, result, Operand(at)); |
| 6277 } | 6274 } |
| 6278 | 6275 |
| 6279 | 6276 |
| 6280 } } // namespace v8::internal | 6277 } } // namespace v8::internal |
| 6281 | 6278 |
| 6282 #endif // V8_TARGET_ARCH_MIPS | 6279 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |