Index: src/compiler/js-intrinsic-lowering.cc |
diff --git a/src/compiler/js-intrinsic-lowering.cc b/src/compiler/js-intrinsic-lowering.cc |
index 06ade91dd40f7545da876ed952b445c30cce9d99..e82ac205ccf46d72b20022fd05f170db5445784c 100644 |
--- a/src/compiler/js-intrinsic-lowering.cc |
+++ b/src/compiler/js-intrinsic-lowering.cc |
@@ -94,6 +94,8 @@ Reduction JSIntrinsicLowering::Reduce(Node* node) { |
return ReduceGetTypeFeedbackVector(node); |
case Runtime::kInlineGetCallerJSFunction: |
return ReduceGetCallerJSFunction(node); |
+ case Runtime::kInlineToObject: |
+ return ReduceToObject(node); |
case Runtime::kInlineThrowNotDateError: |
return ReduceThrowNotDateError(node); |
case Runtime::kInlineCallFunction: |
@@ -528,6 +530,12 @@ Reduction JSIntrinsicLowering::ReduceThrowNotDateError(Node* node) { |
} |
+Reduction JSIntrinsicLowering::ReduceToObject(Node* node) { |
+ node->set_op(javascript()->ToObject()); |
+ return Changed(node); |
+} |
+ |
+ |
Reduction JSIntrinsicLowering::ReduceCallFunction(Node* node) { |
CallRuntimeParameters params = OpParameter<CallRuntimeParameters>(node->op()); |
size_t arity = params.arity(); |