| 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 3982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3993 li(match, Operand(cell)); | 3993 li(match, Operand(cell)); |
| 3994 ld(match, FieldMemOperand(match, WeakCell::kValueOffset)); | 3994 ld(match, FieldMemOperand(match, WeakCell::kValueOffset)); |
| 3995 Dsubu(match, value, match); | 3995 Dsubu(match, value, match); |
| 3996 } | 3996 } |
| 3997 | 3997 |
| 3998 | 3998 |
| 3999 void MacroAssembler::LoadWeakValue(Register value, Handle<WeakCell> cell, | 3999 void MacroAssembler::LoadWeakValue(Register value, Handle<WeakCell> cell, |
| 4000 Label* miss) { | 4000 Label* miss) { |
| 4001 li(value, Operand(cell)); | 4001 li(value, Operand(cell)); |
| 4002 ld(value, FieldMemOperand(value, WeakCell::kValueOffset)); | 4002 ld(value, FieldMemOperand(value, WeakCell::kValueOffset)); |
| 4003 JumpIfSmi(value, miss); | 4003 JumpIfNotSmi(value, miss); |
| 4004 } | 4004 } |
| 4005 | 4005 |
| 4006 | 4006 |
| 4007 void MacroAssembler::MovFromFloatResult(const DoubleRegister dst) { | 4007 void MacroAssembler::MovFromFloatResult(const DoubleRegister dst) { |
| 4008 if (IsMipsSoftFloatABI) { | 4008 if (IsMipsSoftFloatABI) { |
| 4009 Move(dst, v0, v1); | 4009 Move(dst, v0, v1); |
| 4010 } else { | 4010 } else { |
| 4011 Move(dst, f0); // Reg f0 is o32 ABI FP return value. | 4011 Move(dst, f0); // Reg f0 is o32 ABI FP return value. |
| 4012 } | 4012 } |
| 4013 } | 4013 } |
| (...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6325 } | 6325 } |
| 6326 if (mag.shift > 0) sra(result, result, mag.shift); | 6326 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6327 srl(at, dividend, 31); | 6327 srl(at, dividend, 31); |
| 6328 Addu(result, result, Operand(at)); | 6328 Addu(result, result, Operand(at)); |
| 6329 } | 6329 } |
| 6330 | 6330 |
| 6331 | 6331 |
| 6332 } } // namespace v8::internal | 6332 } } // namespace v8::internal |
| 6333 | 6333 |
| 6334 #endif // V8_TARGET_ARCH_MIPS64 | 6334 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |