Index: src/compiler/js-intrinsic-lowering.cc |
diff --git a/src/compiler/js-intrinsic-lowering.cc b/src/compiler/js-intrinsic-lowering.cc |
index 317421f4ee2c0a93ffe48be7c0b34b6802e224c4..ebe2e4e72330e8101e546d6cef0ca3c1ce25397c 100644 |
--- a/src/compiler/js-intrinsic-lowering.cc |
+++ b/src/compiler/js-intrinsic-lowering.cc |
@@ -42,6 +42,8 @@ Reduction JSIntrinsicLowering::Reduce(Node* node) { |
return ReduceInlineIsInstanceType(node, JS_REGEXP_TYPE); |
case Runtime::kInlineMathFloor: |
return ReduceInlineMathFloor(node); |
+ case Runtime::kInlineMathSqrt: |
+ return ReduceInlineMathSqrt(node); |
case Runtime::kInlineValueOf: |
return ReduceInlineValueOf(node); |
default: |
@@ -170,6 +172,11 @@ Reduction JSIntrinsicLowering::ReduceInlineMathFloor(Node* node) { |
} |
+Reduction JSIntrinsicLowering::ReduceInlineMathSqrt(Node* node) { |
+ return Change(node, machine()->Float64Sqrt()); |
+} |
+ |
+ |
Reduction JSIntrinsicLowering::ReduceInlineValueOf(Node* node) { |
// if (%_IsSmi(value)) { |
// return value; |