R=yangguo@chromium.org
BUG=chromium:516423
LOG=n
Review URL: https://codereview.chromium.org/
1277153003
Cr-Commit-Position: refs/heads/master@{#30088}
}
+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)));
F(TwoByteSeqStringSetChar) \
F(ObjectEquals) \
F(IsObject) \
+ F(ToObject) \
F(IsFunction) \
F(IsUndetectableObject) \
F(IsSpecObject) \