| 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 3564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3575 Register scratch2, | 3575 Register scratch2, |
| 3576 Label* gc_required) { | 3576 Label* gc_required) { |
| 3577 Allocate(SlicedString::kSize, result, scratch1, scratch2, gc_required, | 3577 Allocate(SlicedString::kSize, result, scratch1, scratch2, gc_required, |
| 3578 TAG_OBJECT); | 3578 TAG_OBJECT); |
| 3579 | 3579 |
| 3580 InitializeNewString(result, length, Heap::kSlicedOneByteStringMapRootIndex, | 3580 InitializeNewString(result, length, Heap::kSlicedOneByteStringMapRootIndex, |
| 3581 scratch1, scratch2); | 3581 scratch1, scratch2); |
| 3582 } | 3582 } |
| 3583 | 3583 |
| 3584 | 3584 |
| 3585 void MacroAssembler::JumpIfNotUniqueName(Register reg, | 3585 void MacroAssembler::JumpIfNotUniqueNameInstanceType(Register reg, |
| 3586 Label* not_unique_name) { | 3586 Label* not_unique_name) { |
| 3587 STATIC_ASSERT(kInternalizedTag == 0 && kStringTag == 0); | 3587 STATIC_ASSERT(kInternalizedTag == 0 && kStringTag == 0); |
| 3588 Label succeed; | 3588 Label succeed; |
| 3589 And(at, reg, Operand(kIsNotStringMask | kIsNotInternalizedMask)); | 3589 And(at, reg, Operand(kIsNotStringMask | kIsNotInternalizedMask)); |
| 3590 Branch(&succeed, eq, at, Operand(zero_reg)); | 3590 Branch(&succeed, eq, at, Operand(zero_reg)); |
| 3591 Branch(not_unique_name, ne, reg, Operand(SYMBOL_TYPE)); | 3591 Branch(not_unique_name, ne, reg, Operand(SYMBOL_TYPE)); |
| 3592 | 3592 |
| 3593 bind(&succeed); | 3593 bind(&succeed); |
| 3594 } | 3594 } |
| 3595 | 3595 |
| 3596 | 3596 |
| (...skipping 2499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6096 } | 6096 } |
| 6097 if (mag.shift > 0) sra(result, result, mag.shift); | 6097 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6098 srl(at, dividend, 31); | 6098 srl(at, dividend, 31); |
| 6099 Addu(result, result, Operand(at)); | 6099 Addu(result, result, Operand(at)); |
| 6100 } | 6100 } |
| 6101 | 6101 |
| 6102 | 6102 |
| 6103 } } // namespace v8::internal | 6103 } } // namespace v8::internal |
| 6104 | 6104 |
| 6105 #endif // V8_TARGET_ARCH_MIPS | 6105 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |