| 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 3839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3850 | 3850 |
| 3851 void MacroAssembler::InitializeFieldsWithFiller(Register start_offset, | 3851 void MacroAssembler::InitializeFieldsWithFiller(Register start_offset, |
| 3852 Register end_offset, | 3852 Register end_offset, |
| 3853 Register filler) { | 3853 Register filler) { |
| 3854 Label loop, entry; | 3854 Label loop, entry; |
| 3855 Branch(&entry); | 3855 Branch(&entry); |
| 3856 bind(&loop); | 3856 bind(&loop); |
| 3857 sd(filler, MemOperand(start_offset)); | 3857 sd(filler, MemOperand(start_offset)); |
| 3858 Daddu(start_offset, start_offset, kPointerSize); | 3858 Daddu(start_offset, start_offset, kPointerSize); |
| 3859 bind(&entry); | 3859 bind(&entry); |
| 3860 Branch(&loop, lt, start_offset, Operand(end_offset)); | 3860 Branch(&loop, ult, start_offset, Operand(end_offset)); |
| 3861 } | 3861 } |
| 3862 | 3862 |
| 3863 | 3863 |
| 3864 void MacroAssembler::CheckFastElements(Register map, | 3864 void MacroAssembler::CheckFastElements(Register map, |
| 3865 Register scratch, | 3865 Register scratch, |
| 3866 Label* fail) { | 3866 Label* fail) { |
| 3867 STATIC_ASSERT(FAST_SMI_ELEMENTS == 0); | 3867 STATIC_ASSERT(FAST_SMI_ELEMENTS == 0); |
| 3868 STATIC_ASSERT(FAST_HOLEY_SMI_ELEMENTS == 1); | 3868 STATIC_ASSERT(FAST_HOLEY_SMI_ELEMENTS == 1); |
| 3869 STATIC_ASSERT(FAST_ELEMENTS == 2); | 3869 STATIC_ASSERT(FAST_ELEMENTS == 2); |
| 3870 STATIC_ASSERT(FAST_HOLEY_ELEMENTS == 3); | 3870 STATIC_ASSERT(FAST_HOLEY_ELEMENTS == 3); |
| (...skipping 2485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6356 if (mag.shift > 0) sra(result, result, mag.shift); | 6356 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6357 srl(at, dividend, 31); | 6357 srl(at, dividend, 31); |
| 6358 Addu(result, result, Operand(at)); | 6358 Addu(result, result, Operand(at)); |
| 6359 } | 6359 } |
| 6360 | 6360 |
| 6361 | 6361 |
| 6362 } // namespace internal | 6362 } // namespace internal |
| 6363 } // namespace v8 | 6363 } // namespace v8 |
| 6364 | 6364 |
| 6365 #endif // V8_TARGET_ARCH_MIPS64 | 6365 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |