Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 7450ab17413df92ccd3f684f45ebcf2efa5869fd..f8c8cad16416abf6ae4a23b57f4ca91097d1b50b 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -7938,6 +7938,11 @@ bool HOptimizedGraphBuilder::TryArgumentsAccess(Property* expr) { |
return false; |
} |
+ // Make sure we visit the arguments object so that the liveness analysis |
+ // still records the access. |
+ CHECK_ALIVE_OR_RETURN(VisitForValue(expr->obj(), ARGUMENTS_ALLOWED), true); |
+ Drop(1); |
+ |
if (function_state()->outer() == NULL) { |
HInstruction* elements = Add<HArgumentsElements>(false); |
result = New<HArgumentsLength>(elements); |