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 "src/crankshaft/arm/lithium-codegen-arm.h" | 5 #include "src/crankshaft/arm/lithium-codegen-arm.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" |
(...skipping 4012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4023 } else { | 4023 } else { |
4024 int shift_size = (instr->hydrogen()->key()->representation().IsSmi()) | 4024 int shift_size = (instr->hydrogen()->key()->representation().IsSmi()) |
4025 ? (element_size_shift - kSmiTagSize) : element_size_shift; | 4025 ? (element_size_shift - kSmiTagSize) : element_size_shift; |
4026 __ add(scratch, elements, Operand(base_offset)); | 4026 __ add(scratch, elements, Operand(base_offset)); |
4027 __ add(scratch, scratch, | 4027 __ add(scratch, scratch, |
4028 Operand(ToRegister(instr->key()), LSL, shift_size)); | 4028 Operand(ToRegister(instr->key()), LSL, shift_size)); |
4029 } | 4029 } |
4030 | 4030 |
4031 if (instr->NeedsCanonicalization()) { | 4031 if (instr->NeedsCanonicalization()) { |
4032 // Force a canonical NaN. | 4032 // Force a canonical NaN. |
4033 if (masm()->emit_debug_code()) { | |
4034 __ vmrs(ip); | |
4035 __ tst(ip, Operand(kVFPDefaultNaNModeControlBit)); | |
4036 __ Assert(ne, kDefaultNaNModeNotSet); | |
4037 } | |
4038 __ VFPCanonicalizeNaN(double_scratch, value); | 4033 __ VFPCanonicalizeNaN(double_scratch, value); |
4039 __ vstr(double_scratch, scratch, 0); | 4034 __ vstr(double_scratch, scratch, 0); |
4040 } else { | 4035 } else { |
4041 __ vstr(value, scratch, 0); | 4036 __ vstr(value, scratch, 0); |
4042 } | 4037 } |
4043 } | 4038 } |
4044 | 4039 |
4045 | 4040 |
4046 void LCodeGen::DoStoreKeyedFixedArray(LStoreKeyed* instr) { | 4041 void LCodeGen::DoStoreKeyedFixedArray(LStoreKeyed* instr) { |
4047 Register value = ToRegister(instr->value()); | 4042 Register value = ToRegister(instr->value()); |
(...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5546 __ ldr(result, FieldMemOperand(scratch, | 5541 __ ldr(result, FieldMemOperand(scratch, |
5547 FixedArray::kHeaderSize - kPointerSize)); | 5542 FixedArray::kHeaderSize - kPointerSize)); |
5548 __ bind(deferred->exit()); | 5543 __ bind(deferred->exit()); |
5549 __ bind(&done); | 5544 __ bind(&done); |
5550 } | 5545 } |
5551 | 5546 |
5552 #undef __ | 5547 #undef __ |
5553 | 5548 |
5554 } // namespace internal | 5549 } // namespace internal |
5555 } // namespace v8 | 5550 } // namespace v8 |
OLD | NEW |