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

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

Issue 1440293002: [turbofan] Added the optional Float64RoundTiesEven operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@f64roundup
Patch Set: Disabled F64RoundTiesEven on mips32 Created 5 years, 1 month 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 "src/compiler/instruction-selector-impl.h" 5 #include "src/compiler/instruction-selector-impl.h"
6 #include "src/compiler/node-matchers.h" 6 #include "src/compiler/node-matchers.h"
7 #include "src/compiler/node-properties.h" 7 #include "src/compiler/node-properties.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { 1471 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) {
1472 VisitRR(this, kArm64Float64RoundTruncate, node); 1472 VisitRR(this, kArm64Float64RoundTruncate, node);
1473 } 1473 }
1474 1474
1475 1475
1476 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { 1476 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) {
1477 VisitRR(this, kArm64Float64RoundTiesAway, node); 1477 VisitRR(this, kArm64Float64RoundTiesAway, node);
1478 } 1478 }
1479 1479
1480 1480
1481 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) {
1482 VisitRR(this, kArm64Float64RoundTiesEven, node);
1483 }
1484
1485
1481 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, 1486 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments,
1482 const CallDescriptor* descriptor, 1487 const CallDescriptor* descriptor,
1483 Node* node) { 1488 Node* node) {
1484 Arm64OperandGenerator g(this); 1489 Arm64OperandGenerator g(this);
1485 1490
1486 // Push the arguments to the stack. 1491 // Push the arguments to the stack.
1487 int aligned_push_count = static_cast<int>(arguments->size()); 1492 int aligned_push_count = static_cast<int>(arguments->size());
1488 bool pushed_count_uneven = aligned_push_count & 1; 1493 bool pushed_count_uneven = aligned_push_count & 1;
1489 // TODO(dcarney): claim and poke probably take small immediates, 1494 // TODO(dcarney): claim and poke probably take small immediates,
1490 // loop here or whatever. 1495 // loop here or whatever.
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
2042 MachineOperatorBuilder::Flags 2047 MachineOperatorBuilder::Flags
2043 InstructionSelector::SupportedMachineOperatorFlags() { 2048 InstructionSelector::SupportedMachineOperatorFlags() {
2044 return MachineOperatorBuilder::kFloat32Max | 2049 return MachineOperatorBuilder::kFloat32Max |
2045 MachineOperatorBuilder::kFloat32Min | 2050 MachineOperatorBuilder::kFloat32Min |
2046 MachineOperatorBuilder::kFloat64Max | 2051 MachineOperatorBuilder::kFloat64Max |
2047 MachineOperatorBuilder::kFloat64Min | 2052 MachineOperatorBuilder::kFloat64Min |
2048 MachineOperatorBuilder::kFloat64RoundDown | 2053 MachineOperatorBuilder::kFloat64RoundDown |
2049 MachineOperatorBuilder::kFloat64RoundUp | 2054 MachineOperatorBuilder::kFloat64RoundUp |
2050 MachineOperatorBuilder::kFloat64RoundTruncate | 2055 MachineOperatorBuilder::kFloat64RoundTruncate |
2051 MachineOperatorBuilder::kFloat64RoundTiesAway | 2056 MachineOperatorBuilder::kFloat64RoundTiesAway |
2057 MachineOperatorBuilder::kFloat64RoundTiesEven |
2052 MachineOperatorBuilder::kWord32ShiftIsSafe | 2058 MachineOperatorBuilder::kWord32ShiftIsSafe |
2053 MachineOperatorBuilder::kInt32DivIsSafe | 2059 MachineOperatorBuilder::kInt32DivIsSafe |
2054 MachineOperatorBuilder::kUint32DivIsSafe; 2060 MachineOperatorBuilder::kUint32DivIsSafe;
2055 } 2061 }
2056 2062
2057 } // namespace compiler 2063 } // namespace compiler
2058 } // namespace internal 2064 } // namespace internal
2059 } // namespace v8 2065 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/instruction-codes-arm64.h ('k') | src/compiler/ia32/instruction-selector-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698