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

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

Issue 2070813002: Revert of [builtins] Introduce proper Float64Exp operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 3530 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 3549
3550 void LCodeGen::DoMathExp(LMathExp* instr) { 3550 void LCodeGen::DoMathExp(LMathExp* instr) {
3551 DCHECK(instr->IsMarkedAsCall()); 3551 DoubleRegister input = ToDoubleRegister(instr->value());
3552 DCHECK(ToDoubleRegister(instr->value()).is(d0)); 3552 DoubleRegister result = ToDoubleRegister(instr->result());
3553 __ CallCFunction(ExternalReference::ieee754_exp_function(isolate()), 0, 1); 3553 DoubleRegister double_temp1 = ToDoubleRegister(instr->double_temp1());
3554 DCHECK(ToDoubleRegister(instr->result()).Is(d0)); 3554 DoubleRegister double_temp2 = double_scratch();
3555 Register temp1 = ToRegister(instr->temp1());
3556 Register temp2 = ToRegister(instr->temp2());
3557 Register temp3 = ToRegister(instr->temp3());
3558
3559 MathExpGenerator::EmitMathExp(masm(), input, result,
3560 double_temp1, double_temp2,
3561 temp1, temp2, temp3);
3555 } 3562 }
3556 3563
3557 3564
3558 void LCodeGen::DoMathFloorD(LMathFloorD* instr) { 3565 void LCodeGen::DoMathFloorD(LMathFloorD* instr) {
3559 DoubleRegister input = ToDoubleRegister(instr->value()); 3566 DoubleRegister input = ToDoubleRegister(instr->value());
3560 DoubleRegister result = ToDoubleRegister(instr->result()); 3567 DoubleRegister result = ToDoubleRegister(instr->result());
3561 3568
3562 __ Frintm(result, input); 3569 __ Frintm(result, input);
3563 } 3570 }
3564 3571
(...skipping 2167 matching lines...) Expand 10 before | Expand all | Expand 10 after
5732 // Index is equal to negated out of object property index plus 1. 5739 // Index is equal to negated out of object property index plus 1.
5733 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5740 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5734 __ Ldr(result, FieldMemOperand(result, 5741 __ Ldr(result, FieldMemOperand(result,
5735 FixedArray::kHeaderSize - kPointerSize)); 5742 FixedArray::kHeaderSize - kPointerSize));
5736 __ Bind(deferred->exit()); 5743 __ Bind(deferred->exit());
5737 __ Bind(&done); 5744 __ Bind(&done);
5738 } 5745 }
5739 5746
5740 } // namespace internal 5747 } // namespace internal
5741 } // namespace v8 5748 } // 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