| 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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/base/division-by-constant.h" | 10 #include "src/base/division-by-constant.h" |
| (...skipping 5231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5242 const Operand& r2, | 5242 const Operand& r2, |
| 5243 BranchDelaySlot bd) { | 5243 BranchDelaySlot bd) { |
| 5244 Jump(stub->GetCode(), RelocInfo::CODE_TARGET, cond, r1, r2, bd); | 5244 Jump(stub->GetCode(), RelocInfo::CODE_TARGET, cond, r1, r2, bd); |
| 5245 } | 5245 } |
| 5246 | 5246 |
| 5247 | 5247 |
| 5248 bool MacroAssembler::AllowThisStubCall(CodeStub* stub) { | 5248 bool MacroAssembler::AllowThisStubCall(CodeStub* stub) { |
| 5249 return has_frame_ || !stub->SometimesSetsUpAFrame(); | 5249 return has_frame_ || !stub->SometimesSetsUpAFrame(); |
| 5250 } | 5250 } |
| 5251 | 5251 |
| 5252 | |
| 5253 void MacroAssembler::IndexFromHash(Register hash, Register index) { | |
| 5254 // If the hash field contains an array index pick it out. The assert checks | |
| 5255 // that the constants for the maximum number of digits for an array index | |
| 5256 // cached in the hash field and the number of bits reserved for it does not | |
| 5257 // conflict. | |
| 5258 DCHECK(TenToThe(String::kMaxCachedArrayIndexLength) < | |
| 5259 (1 << String::kArrayIndexValueBits)); | |
| 5260 DecodeFieldToSmi<String::ArrayIndexValueBits>(index, hash); | |
| 5261 } | |
| 5262 | |
| 5263 | |
| 5264 void MacroAssembler::ObjectToDoubleFPURegister(Register object, | 5252 void MacroAssembler::ObjectToDoubleFPURegister(Register object, |
| 5265 FPURegister result, | 5253 FPURegister result, |
| 5266 Register scratch1, | 5254 Register scratch1, |
| 5267 Register scratch2, | 5255 Register scratch2, |
| 5268 Register heap_number_map, | 5256 Register heap_number_map, |
| 5269 Label* not_number, | 5257 Label* not_number, |
| 5270 ObjectToDoubleFlags flags) { | 5258 ObjectToDoubleFlags flags) { |
| 5271 Label done; | 5259 Label done; |
| 5272 if ((flags & OBJECT_NOT_SMI) == 0) { | 5260 if ((flags & OBJECT_NOT_SMI) == 0) { |
| 5273 Label not_smi; | 5261 Label not_smi; |
| (...skipping 1616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6890 if (mag.shift > 0) sra(result, result, mag.shift); | 6878 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6891 srl(at, dividend, 31); | 6879 srl(at, dividend, 31); |
| 6892 Addu(result, result, Operand(at)); | 6880 Addu(result, result, Operand(at)); |
| 6893 } | 6881 } |
| 6894 | 6882 |
| 6895 | 6883 |
| 6896 } // namespace internal | 6884 } // namespace internal |
| 6897 } // namespace v8 | 6885 } // namespace v8 |
| 6898 | 6886 |
| 6899 #endif // V8_TARGET_ARCH_MIPS | 6887 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |