| 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 3474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3485 Register scratch2, | 3485 Register scratch2, |
| 3486 Label* gc_required) { | 3486 Label* gc_required) { |
| 3487 Allocate(SlicedString::kSize, result, scratch1, scratch2, gc_required, | 3487 Allocate(SlicedString::kSize, result, scratch1, scratch2, gc_required, |
| 3488 TAG_OBJECT); | 3488 TAG_OBJECT); |
| 3489 | 3489 |
| 3490 InitializeNewString(result, length, Heap::kSlicedOneByteStringMapRootIndex, | 3490 InitializeNewString(result, length, Heap::kSlicedOneByteStringMapRootIndex, |
| 3491 scratch1, scratch2); | 3491 scratch1, scratch2); |
| 3492 } | 3492 } |
| 3493 | 3493 |
| 3494 | 3494 |
| 3495 void MacroAssembler::JumpIfNotUniqueName(Register reg, | 3495 void MacroAssembler::JumpIfNotUniqueNameInstanceType(Register reg, |
| 3496 Label* not_unique_name) { | 3496 Label* not_unique_name) { |
| 3497 STATIC_ASSERT(kInternalizedTag == 0 && kStringTag == 0); | 3497 STATIC_ASSERT(kInternalizedTag == 0 && kStringTag == 0); |
| 3498 Label succeed; | 3498 Label succeed; |
| 3499 And(at, reg, Operand(kIsNotStringMask | kIsNotInternalizedMask)); | 3499 And(at, reg, Operand(kIsNotStringMask | kIsNotInternalizedMask)); |
| 3500 Branch(&succeed, eq, at, Operand(zero_reg)); | 3500 Branch(&succeed, eq, at, Operand(zero_reg)); |
| 3501 Branch(not_unique_name, ne, reg, Operand(SYMBOL_TYPE)); | 3501 Branch(not_unique_name, ne, reg, Operand(SYMBOL_TYPE)); |
| 3502 | 3502 |
| 3503 bind(&succeed); | 3503 bind(&succeed); |
| 3504 } | 3504 } |
| 3505 | 3505 |
| 3506 | 3506 |
| (...skipping 2573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6080 } | 6080 } |
| 6081 if (mag.shift > 0) sra(result, result, mag.shift); | 6081 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6082 srl(at, dividend, 31); | 6082 srl(at, dividend, 31); |
| 6083 Addu(result, result, Operand(at)); | 6083 Addu(result, result, Operand(at)); |
| 6084 } | 6084 } |
| 6085 | 6085 |
| 6086 | 6086 |
| 6087 } } // namespace v8::internal | 6087 } } // namespace v8::internal |
| 6088 | 6088 |
| 6089 #endif // V8_TARGET_ARCH_MIPS64 | 6089 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |