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

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

Issue 2053893003: [builtins] Introduce proper base::ieee754::log. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: BUILD.gn 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
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 <algorithm> 5 #include <algorithm>
6 6
7 #include "src/base/adapters.h" 7 #include "src/base/adapters.h"
8 #include "src/compiler/instruction-selector-impl.h" 8 #include "src/compiler/instruction-selector-impl.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 void InstructionSelector::VisitFloat64Min(Node* node) { 1349 void InstructionSelector::VisitFloat64Min(Node* node) {
1350 VisitFloatBinop(this, node, kAVXFloat64Min, kSSEFloat64Min); 1350 VisitFloatBinop(this, node, kAVXFloat64Min, kSSEFloat64Min);
1351 } 1351 }
1352 1352
1353 1353
1354 void InstructionSelector::VisitFloat64Abs(Node* node) { 1354 void InstructionSelector::VisitFloat64Abs(Node* node) {
1355 VisitFloatUnop(this, node, node->InputAt(0), kAVXFloat64Abs, kSSEFloat64Abs); 1355 VisitFloatUnop(this, node, node->InputAt(0), kAVXFloat64Abs, kSSEFloat64Abs);
1356 } 1356 }
1357 1357
1358 void InstructionSelector::VisitFloat64Log(Node* node) { 1358 void InstructionSelector::VisitFloat64Log(Node* node) {
1359 VisitRR(this, node, kX87Float64Log); 1359 X64OperandGenerator g(this);
1360 Emit(kIeee754Float64Log, g.DefineAsFixed(node, xmm0),
1361 g.UseFixed(node->InputAt(0), xmm0))
1362 ->MarkAsCall();
1360 } 1363 }
1361 1364
1362 void InstructionSelector::VisitFloat64Sqrt(Node* node) { 1365 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
1363 VisitRO(this, node, kSSEFloat64Sqrt); 1366 VisitRO(this, node, kSSEFloat64Sqrt);
1364 } 1367 }
1365 1368
1366 1369
1367 void InstructionSelector::VisitFloat32RoundDown(Node* node) { 1370 void InstructionSelector::VisitFloat32RoundDown(Node* node) {
1368 VisitRR(this, node, kSSEFloat32Round | MiscField::encode(kRoundDown)); 1371 VisitRR(this, node, kSSEFloat32Round | MiscField::encode(kRoundDown));
1369 } 1372 }
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
2119 // static 2122 // static
2120 MachineOperatorBuilder::AlignmentRequirements 2123 MachineOperatorBuilder::AlignmentRequirements
2121 InstructionSelector::AlignmentRequirements() { 2124 InstructionSelector::AlignmentRequirements() {
2122 return MachineOperatorBuilder::AlignmentRequirements:: 2125 return MachineOperatorBuilder::AlignmentRequirements::
2123 FullUnalignedAccessSupport(); 2126 FullUnalignedAccessSupport();
2124 } 2127 }
2125 2128
2126 } // namespace compiler 2129 } // namespace compiler
2127 } // namespace internal 2130 } // namespace internal
2128 } // namespace v8 2131 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-scheduler-x64.cc ('k') | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698