Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 0fc2f211389ca323782422b981e2bbac0df3232a..2c8a5f2adc4a0276a5ae590f644e85ad0108a20b 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -12354,22 +12354,6 @@ void HOptimizedGraphBuilder::GenerateHasFastPackedElements(CallRuntime* call) { |
} |
-// Support for construct call checks. |
-void HOptimizedGraphBuilder::GenerateIsConstructCall(CallRuntime* call) { |
- DCHECK(call->arguments()->length() == 0); |
- if (function_state()->outer() != NULL) { |
- // We are generating graph for inlined function. |
- HValue* value = function_state()->inlining_kind() == CONSTRUCT_CALL_RETURN |
- ? graph()->GetConstantTrue() |
- : graph()->GetConstantFalse(); |
- return ast_context()->ReturnValue(value); |
- } else { |
- return ast_context()->ReturnControl(New<HIsConstructCallAndBranch>(), |
- call->id()); |
- } |
-} |
- |
- |
// Support for arguments.length and arguments[?]. |
void HOptimizedGraphBuilder::GenerateArgumentsLength(CallRuntime* call) { |
DCHECK(call->arguments()->length() == 0); |