Index: src/compiler/js-intrinsic-lowering.cc |
diff --git a/src/compiler/js-intrinsic-lowering.cc b/src/compiler/js-intrinsic-lowering.cc |
index 4917953264fab7994f21728a30c9647efa96c740..e82ac205ccf46d72b20022fd05f170db5445784c 100644 |
--- a/src/compiler/js-intrinsic-lowering.cc |
+++ b/src/compiler/js-intrinsic-lowering.cc |
@@ -52,6 +52,8 @@ |
return ReduceIsInstanceType(node, JS_TYPED_ARRAY_TYPE); |
case Runtime::kInlineIsFunction: |
return ReduceIsInstanceType(node, JS_FUNCTION_TYPE); |
+ case Runtime::kInlineIsNonNegativeSmi: |
+ return ReduceIsNonNegativeSmi(node); |
case Runtime::kInlineIsRegExp: |
return ReduceIsInstanceType(node, JS_REGEXP_TYPE); |
case Runtime::kInlineIsSmi: |
@@ -237,6 +239,11 @@ |
} |
+Reduction JSIntrinsicLowering::ReduceIsNonNegativeSmi(Node* node) { |
+ return Change(node, simplified()->ObjectIsNonNegativeSmi()); |
+} |
+ |
+ |
Reduction JSIntrinsicLowering::ReduceIsSmi(Node* node) { |
return Change(node, simplified()->ObjectIsSmi()); |
} |