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

Side by Side Diff: src/compiler/x87/instruction-selector-x87.cc

Issue 2034393002: X87: [builtins] Migrate Math.log to TurboFan. (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/compiler/x87/instruction-codes-x87.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 Emit(kX87Float32Abs, g.DefineAsFixed(node, stX_0), 0, nullptr); 1002 Emit(kX87Float32Abs, g.DefineAsFixed(node, stX_0), 0, nullptr);
1003 } 1003 }
1004 1004
1005 1005
1006 void InstructionSelector::VisitFloat64Abs(Node* node) { 1006 void InstructionSelector::VisitFloat64Abs(Node* node) {
1007 X87OperandGenerator g(this); 1007 X87OperandGenerator g(this);
1008 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0))); 1008 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0)));
1009 Emit(kX87Float64Abs, g.DefineAsFixed(node, stX_0), 0, nullptr); 1009 Emit(kX87Float64Abs, g.DefineAsFixed(node, stX_0), 0, nullptr);
1010 } 1010 }
1011 1011
1012 void InstructionSelector::VisitFloat64Log(Node* node) {
1013 X87OperandGenerator g(this);
1014 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0)));
1015 Emit(kX87Float64Log, g.DefineAsFixed(node, stX_0), 0, nullptr);
1016 }
1012 1017
1013 void InstructionSelector::VisitFloat32Sqrt(Node* node) { 1018 void InstructionSelector::VisitFloat32Sqrt(Node* node) {
1014 X87OperandGenerator g(this); 1019 X87OperandGenerator g(this);
1015 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0))); 1020 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0)));
1016 Emit(kX87Float32Sqrt, g.DefineAsFixed(node, stX_0), 0, nullptr); 1021 Emit(kX87Float32Sqrt, g.DefineAsFixed(node, stX_0), 0, nullptr);
1017 } 1022 }
1018 1023
1019 1024
1020 void InstructionSelector::VisitFloat64Sqrt(Node* node) { 1025 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
1021 X87OperandGenerator g(this); 1026 X87OperandGenerator g(this);
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1689 // static 1694 // static
1690 MachineOperatorBuilder::AlignmentRequirements 1695 MachineOperatorBuilder::AlignmentRequirements
1691 InstructionSelector::AlignmentRequirements() { 1696 InstructionSelector::AlignmentRequirements() {
1692 return MachineOperatorBuilder::AlignmentRequirements:: 1697 return MachineOperatorBuilder::AlignmentRequirements::
1693 FullUnalignedAccessSupport(); 1698 FullUnalignedAccessSupport();
1694 } 1699 }
1695 1700
1696 } // namespace compiler 1701 } // namespace compiler
1697 } // namespace internal 1702 } // namespace internal
1698 } // namespace v8 1703 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x87/instruction-codes-x87.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698