Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index da9b2133cce04ce4d8b72f0a9588f2028a8ebdad..0b45b8e6adc522dfc537c9b23fe2d1811e0c1ff3 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -2148,7 +2148,7 @@ HInstruction* HGraphBuilder::BuildUncheckedMonomorphicElementAccess( |
HInstruction* length = NULL; |
if (is_js_array) { |
length = Add<HLoadNamedField>( |
- checked_object, static_cast<HValue*>(NULL), |
+ checked_object->ActualValue(), checked_object, |
HObjectAccess::ForArrayLength(elements_kind)); |
} else { |
length = AddLoadFixedArrayLength(elements); |