| Index: src/compiler/graph-unittest.cc
|
| diff --git a/src/compiler/graph-unittest.cc b/src/compiler/graph-unittest.cc
|
| index f7faa6de29da447790f61dda238ffb0b688a1e8d..58adb112c731600fd9b29aa93d2540a3ab8f4b0b 100644
|
| --- a/src/compiler/graph-unittest.cc
|
| +++ b/src/compiler/graph-unittest.cc
|
| @@ -44,7 +44,12 @@ Node* GraphTest::Parameter(int32_t index) {
|
| }
|
|
|
|
|
| -Node* GraphTest::Float64Constant(double value) {
|
| +Node* GraphTest::Float32Constant(volatile float value) {
|
| + return graph()->NewNode(common()->Float32Constant(value));
|
| +}
|
| +
|
| +
|
| +Node* GraphTest::Float64Constant(volatile double value) {
|
| return graph()->NewNode(common()->Float64Constant(value));
|
| }
|
|
|
| @@ -59,7 +64,7 @@ Node* GraphTest::Int64Constant(int64_t value) {
|
| }
|
|
|
|
|
| -Node* GraphTest::NumberConstant(double value) {
|
| +Node* GraphTest::NumberConstant(volatile double value) {
|
| return graph()->NewNode(common()->NumberConstant(value));
|
| }
|
|
|
| @@ -664,6 +669,12 @@ Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher) {
|
| }
|
|
|
|
|
| +Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher) {
|
| + return MakeMatcher(
|
| + new IsConstantMatcher<float>(IrOpcode::kFloat32Constant, value_matcher));
|
| +}
|
| +
|
| +
|
| Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher) {
|
| return MakeMatcher(
|
| new IsConstantMatcher<double>(IrOpcode::kFloat64Constant, value_matcher));
|
|
|