[turbofan] Renamed the ChangeFloat64ToInt64 operator to TruncateFloat64ToInt64.
R=titzer@chromium.org Review URL: https://codereview.chromium.org/1458423002 Cr-Commit-Position: refs/heads/master@{#32139}
This commit is contained in:
parent
76af78e412
commit
a2449d4985
@ -1237,7 +1237,7 @@ void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
|
||||
}
|
||||
|
||||
|
||||
void InstructionSelector::VisitChangeFloat64ToInt64(Node* node) {
|
||||
void InstructionSelector::VisitTruncateFloat64ToInt64(Node* node) {
|
||||
VisitRR(this, kArm64Float64ToInt64, node);
|
||||
}
|
||||
|
||||
|
@ -813,8 +813,8 @@ void InstructionSelector::VisitNode(Node* node) {
|
||||
return MarkAsWord32(node), VisitChangeFloat64ToInt32(node);
|
||||
case IrOpcode::kChangeFloat64ToUint32:
|
||||
return MarkAsWord32(node), VisitChangeFloat64ToUint32(node);
|
||||
case IrOpcode::kChangeFloat64ToInt64:
|
||||
return MarkAsWord64(node), VisitChangeFloat64ToInt64(node);
|
||||
case IrOpcode::kTruncateFloat64ToInt64:
|
||||
return MarkAsWord64(node), VisitTruncateFloat64ToInt64(node);
|
||||
case IrOpcode::kTruncateFloat64ToUint64:
|
||||
return MarkAsWord64(node), VisitTruncateFloat64ToUint64(node);
|
||||
case IrOpcode::kChangeInt32ToInt64:
|
||||
@ -1057,7 +1057,7 @@ void InstructionSelector::VisitChangeUint32ToUint64(Node* node) {
|
||||
}
|
||||
|
||||
|
||||
void InstructionSelector::VisitChangeFloat64ToInt64(Node* node) {
|
||||
void InstructionSelector::VisitTruncateFloat64ToInt64(Node* node) {
|
||||
UNIMPLEMENTED();
|
||||
}
|
||||
|
||||
|
@ -135,7 +135,7 @@ CheckedStoreRepresentation CheckedStoreRepresentationOf(Operator const* op) {
|
||||
V(ChangeFloat32ToFloat64, Operator::kNoProperties, 1, 0, 1) \
|
||||
V(ChangeFloat64ToInt32, Operator::kNoProperties, 1, 0, 1) \
|
||||
V(ChangeFloat64ToUint32, Operator::kNoProperties, 1, 0, 1) \
|
||||
V(ChangeFloat64ToInt64, Operator::kNoProperties, 1, 0, 1) \
|
||||
V(TruncateFloat64ToInt64, Operator::kNoProperties, 1, 0, 1) \
|
||||
V(TruncateFloat64ToUint64, Operator::kNoProperties, 1, 0, 1) \
|
||||
V(ChangeInt32ToFloat64, Operator::kNoProperties, 1, 0, 1) \
|
||||
V(RoundInt64ToFloat32, Operator::kNoProperties, 1, 0, 1) \
|
||||
|
@ -202,7 +202,7 @@ class MachineOperatorBuilder final : public ZoneObject {
|
||||
const Operator* ChangeFloat32ToFloat64();
|
||||
const Operator* ChangeFloat64ToInt32(); // narrowing
|
||||
const Operator* ChangeFloat64ToUint32(); // narrowing
|
||||
const Operator* ChangeFloat64ToInt64(); // narrowing
|
||||
const Operator* TruncateFloat64ToInt64();
|
||||
const Operator* TruncateFloat64ToUint64();
|
||||
const Operator* ChangeInt32ToFloat64();
|
||||
const Operator* ChangeInt32ToInt64();
|
||||
|
@ -707,7 +707,7 @@ void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
|
||||
}
|
||||
|
||||
|
||||
void InstructionSelector::VisitChangeFloat64ToInt64(Node* node) {
|
||||
void InstructionSelector::VisitTruncateFloat64ToInt64(Node* node) {
|
||||
VisitRR(this, kMips64TruncLD, node);
|
||||
}
|
||||
|
||||
|
@ -267,7 +267,7 @@
|
||||
V(ChangeFloat32ToFloat64) \
|
||||
V(ChangeFloat64ToInt32) \
|
||||
V(ChangeFloat64ToUint32) \
|
||||
V(ChangeFloat64ToInt64) \
|
||||
V(TruncateFloat64ToInt64) \
|
||||
V(TruncateFloat64ToUint64) \
|
||||
V(ChangeInt32ToFloat64) \
|
||||
V(ChangeInt32ToInt64) \
|
||||
|
@ -927,7 +927,7 @@ void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
|
||||
|
||||
|
||||
#if V8_TARGET_ARCH_PPC64
|
||||
void InstructionSelector::VisitChangeFloat64ToInt64(Node* node) {
|
||||
void InstructionSelector::VisitTruncateFloat64ToInt64(Node* node) {
|
||||
VisitRR(this, kPPC_DoubleToInt64, node);
|
||||
}
|
||||
|
||||
|
@ -443,8 +443,8 @@ class RawMachineAssembler {
|
||||
Node* ChangeFloat64ToUint32(Node* a) {
|
||||
return AddNode(machine()->ChangeFloat64ToUint32(), a);
|
||||
}
|
||||
Node* ChangeFloat64ToInt64(Node* a) {
|
||||
return AddNode(machine()->ChangeFloat64ToInt64(), a);
|
||||
Node* TruncateFloat64ToInt64(Node* a) {
|
||||
return AddNode(machine()->TruncateFloat64ToInt64(), a);
|
||||
}
|
||||
Node* TruncateFloat64ToUint64(Node* a) {
|
||||
return AddNode(machine()->TruncateFloat64ToUint64(), a);
|
||||
|
@ -2080,7 +2080,7 @@ Type* Typer::Visitor::TypeChangeFloat64ToUint32(Node* node) {
|
||||
}
|
||||
|
||||
|
||||
Type* Typer::Visitor::TypeChangeFloat64ToInt64(Node* node) {
|
||||
Type* Typer::Visitor::TypeTruncateFloat64ToInt64(Node* node) {
|
||||
return Type::Internal();
|
||||
}
|
||||
|
||||
|
@ -909,7 +909,7 @@ void Verifier::Visitor::Check(Node* node) {
|
||||
case IrOpcode::kChangeFloat32ToFloat64:
|
||||
case IrOpcode::kChangeFloat64ToInt32:
|
||||
case IrOpcode::kChangeFloat64ToUint32:
|
||||
case IrOpcode::kChangeFloat64ToInt64:
|
||||
case IrOpcode::kTruncateFloat64ToInt64:
|
||||
case IrOpcode::kTruncateFloat64ToUint64:
|
||||
case IrOpcode::kFloat64ExtractLowWord32:
|
||||
case IrOpcode::kFloat64ExtractHighWord32:
|
||||
|
@ -834,7 +834,7 @@ void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
|
||||
}
|
||||
|
||||
|
||||
void InstructionSelector::VisitChangeFloat64ToInt64(Node* node) {
|
||||
void InstructionSelector::VisitTruncateFloat64ToInt64(Node* node) {
|
||||
X64OperandGenerator g(this);
|
||||
Emit(kSSEFloat64ToInt64, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
|
||||
}
|
||||
|
@ -5353,9 +5353,9 @@ TEST(RunBitcastFloat64ToInt64) {
|
||||
}
|
||||
|
||||
|
||||
TEST(RunChangeFloat64ToInt64) {
|
||||
TEST(RunTruncateFloat64ToInt64) {
|
||||
BufferedRawMachineAssemblerTester<int64_t> m(kMachFloat64);
|
||||
m.Return(m.ChangeFloat64ToInt64(m.Parameter(0)));
|
||||
m.Return(m.TruncateFloat64ToInt64(m.Parameter(0)));
|
||||
|
||||
FOR_INT64_INPUTS(i) {
|
||||
double input = static_cast<double>(*i);
|
||||
|
Loading…
Reference in New Issue
Block a user