| 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 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 6 | 6 |
| 7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/ic/ic.h" | 8 #include "src/ic/ic.h" |
| 9 #include "src/ic/ic-compiler.h" | 9 #include "src/ic/ic-compiler.h" |
| 10 #include "src/ic/stub-cache.h" | 10 #include "src/ic/stub-cache.h" |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 // Check for fast double array case. If this fails, call through to the | 544 // Check for fast double array case. If this fails, call through to the |
| 545 // runtime. | 545 // runtime. |
| 546 __ LoadRoot(at, Heap::kFixedDoubleArrayMapRootIndex); | 546 __ LoadRoot(at, Heap::kFixedDoubleArrayMapRootIndex); |
| 547 __ Branch(slow, ne, elements_map, Operand(at)); | 547 __ Branch(slow, ne, elements_map, Operand(at)); |
| 548 } | 548 } |
| 549 | 549 |
| 550 // HOLECHECK: guards "A[i] double hole?" | 550 // HOLECHECK: guards "A[i] double hole?" |
| 551 // We have to see if the double version of the hole is present. If so | 551 // We have to see if the double version of the hole is present. If so |
| 552 // go to the runtime. | 552 // go to the runtime. |
| 553 __ Daddu(address, elements, | 553 __ Daddu(address, elements, |
| 554 Operand(FixedDoubleArray::kHeaderSize + sizeof(kHoleNanLower32) - | 554 Operand(FixedDoubleArray::kHeaderSize + Register::kExponentOffset - |
| 555 kHeapObjectTag)); | 555 kHeapObjectTag)); |
| 556 __ SmiScale(at, key, kPointerSizeLog2); | 556 __ SmiScale(at, key, kPointerSizeLog2); |
| 557 __ daddu(address, address, at); | 557 __ daddu(address, address, at); |
| 558 __ lw(scratch_value, MemOperand(address)); | 558 __ lw(scratch_value, MemOperand(address)); |
| 559 __ Branch(&fast_double_without_map_check, ne, scratch_value, | 559 __ Branch(&fast_double_without_map_check, ne, scratch_value, |
| 560 Operand(static_cast<int32_t>(kHoleNanUpper32))); | 560 Operand(static_cast<int32_t>(kHoleNanUpper32))); |
| 561 __ JumpIfDictionaryInPrototypeChain(receiver, elements_map, scratch_value, | 561 __ JumpIfDictionaryInPrototypeChain(receiver, elements_map, scratch_value, |
| 562 slow); | 562 slow); |
| 563 | 563 |
| 564 __ bind(&fast_double_without_map_check); | 564 __ bind(&fast_double_without_map_check); |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 patcher.ChangeBranchCondition(ne); | 903 patcher.ChangeBranchCondition(ne); |
| 904 } else { | 904 } else { |
| 905 DCHECK(Assembler::IsBne(branch_instr)); | 905 DCHECK(Assembler::IsBne(branch_instr)); |
| 906 patcher.ChangeBranchCondition(eq); | 906 patcher.ChangeBranchCondition(eq); |
| 907 } | 907 } |
| 908 } | 908 } |
| 909 } // namespace internal | 909 } // namespace internal |
| 910 } // namespace v8 | 910 } // namespace v8 |
| 911 | 911 |
| 912 #endif // V8_TARGET_ARCH_MIPS64 | 912 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |