From: verwaest@chromium.org Date: Tue, 6 May 2014 11:05:52 +0000 (+0000) Subject: Pass dependency to HLoadNamedField for array length load X-Git-Tag: upstream/4.7.83~9257 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2716ddd0d766f91fa9fd87872d11c74803af2145;p=platform%2Fupstream%2Fv8.git Pass dependency to HLoadNamedField for array length load BUG= R=verwaest@chromium.org Review URL: https://codereview.chromium.org/267773004 Patch from Jing Bao . git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21162 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/hydrogen.cc b/src/hydrogen.cc index 532600d..627a21d 100644 --- a/src/hydrogen.cc +++ b/src/hydrogen.cc @@ -2145,7 +2145,7 @@ HInstruction* HGraphBuilder::BuildUncheckedMonomorphicElementAccess( HInstruction* length = NULL; if (is_js_array) { length = Add( - checked_object, static_cast(NULL), + checked_object->ActualValue(), checked_object, HObjectAccess::ForArrayLength(elements_kind)); } else { length = AddLoadFixedArrayLength(elements);