OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/arm64/lithium-codegen-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 3528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3539 // represent, encoded as a double. | 3539 // represent, encoded as a double. |
3540 __ Mov(result_bits, double_to_rawbits(0x80000000)); | 3540 __ Mov(result_bits, double_to_rawbits(0x80000000)); |
3541 __ B(deferred->allocation_entry()); | 3541 __ B(deferred->allocation_entry()); |
3542 | 3542 |
3543 __ Bind(deferred->exit()); | 3543 __ Bind(deferred->exit()); |
3544 __ Str(result_bits, FieldMemOperand(result, HeapNumber::kValueOffset)); | 3544 __ Str(result_bits, FieldMemOperand(result, HeapNumber::kValueOffset)); |
3545 | 3545 |
3546 __ Bind(&done); | 3546 __ Bind(&done); |
3547 } | 3547 } |
3548 | 3548 |
| 3549 void LCodeGen::DoMathCos(LMathCos* instr) { |
| 3550 DCHECK(instr->IsMarkedAsCall()); |
| 3551 DCHECK(ToDoubleRegister(instr->value()).is(d0)); |
| 3552 __ CallCFunction(ExternalReference::ieee754_cos_function(isolate()), 0, 1); |
| 3553 DCHECK(ToDoubleRegister(instr->result()).Is(d0)); |
| 3554 } |
| 3555 |
| 3556 void LCodeGen::DoMathSin(LMathSin* instr) { |
| 3557 DCHECK(instr->IsMarkedAsCall()); |
| 3558 DCHECK(ToDoubleRegister(instr->value()).is(d0)); |
| 3559 __ CallCFunction(ExternalReference::ieee754_sin_function(isolate()), 0, 1); |
| 3560 DCHECK(ToDoubleRegister(instr->result()).Is(d0)); |
| 3561 } |
3549 | 3562 |
3550 void LCodeGen::DoMathExp(LMathExp* instr) { | 3563 void LCodeGen::DoMathExp(LMathExp* instr) { |
3551 DCHECK(instr->IsMarkedAsCall()); | 3564 DCHECK(instr->IsMarkedAsCall()); |
3552 DCHECK(ToDoubleRegister(instr->value()).is(d0)); | 3565 DCHECK(ToDoubleRegister(instr->value()).is(d0)); |
3553 __ CallCFunction(ExternalReference::ieee754_exp_function(isolate()), 0, 1); | 3566 __ CallCFunction(ExternalReference::ieee754_exp_function(isolate()), 0, 1); |
3554 DCHECK(ToDoubleRegister(instr->result()).Is(d0)); | 3567 DCHECK(ToDoubleRegister(instr->result()).Is(d0)); |
3555 } | 3568 } |
3556 | 3569 |
3557 | 3570 |
3558 void LCodeGen::DoMathFloorD(LMathFloorD* instr) { | 3571 void LCodeGen::DoMathFloorD(LMathFloorD* instr) { |
(...skipping 2173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5732 // Index is equal to negated out of object property index plus 1. | 5745 // Index is equal to negated out of object property index plus 1. |
5733 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5746 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
5734 __ Ldr(result, FieldMemOperand(result, | 5747 __ Ldr(result, FieldMemOperand(result, |
5735 FixedArray::kHeaderSize - kPointerSize)); | 5748 FixedArray::kHeaderSize - kPointerSize)); |
5736 __ Bind(deferred->exit()); | 5749 __ Bind(deferred->exit()); |
5737 __ Bind(&done); | 5750 __ Bind(&done); |
5738 } | 5751 } |
5739 | 5752 |
5740 } // namespace internal | 5753 } // namespace internal |
5741 } // namespace v8 | 5754 } // namespace v8 |
OLD | NEW |