Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.cc

Issue 2073123002: [builtins] Introduce proper Float64Cos and Float64Sin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix missing breaks Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/arm64/lithium-arm64.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-arm64.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698