Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 794a38b8e4d4faa0f703c5e520fdc69e6c734e60..404cfa7ee12d0830cab41d1fca99d567e625ccad 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -12100,6 +12100,15 @@ void HOptimizedGraphBuilder::GenerateIsObject(CallRuntime* call) { |
} |
+void HOptimizedGraphBuilder::GenerateToObject(CallRuntime* call) { |
+ DCHECK_EQ(1, call->arguments()->length()); |
+ CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
+ HValue* value = Pop(); |
+ HValue* result = BuildToObject(value); |
+ return ast_context()->ReturnValue(result); |
+} |
+ |
+ |
void HOptimizedGraphBuilder::GenerateIsJSProxy(CallRuntime* call) { |
DCHECK(call->arguments()->length() == 1); |
CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |