Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 097e6d5b2e14ab06876ca0d795558f4cca4da834..2304cd5c4c3f7f73ea9bbca50f027bf4c20d5c74 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -12885,6 +12885,12 @@ void HOptimizedGraphBuilder::GenerateDebugIsActive(CallRuntime* call) { |
return ast_context()->ReturnValue(value); |
} |
+void HOptimizedGraphBuilder::GenerateGetOrdinaryHasInstance(CallRuntime* call) { |
+ DCHECK(call->arguments()->length() == 0); |
+ // ordinary_has_instance is immutable so we can treat it as a constant. |
+ HValue* value = Add<HConstant>(isolate()->ordinary_has_instance()); |
+ return ast_context()->ReturnValue(value); |
+} |
#undef CHECK_BAILOUT |
#undef CHECK_ALIVE |