Reviewers: Toon Verwaest,
Description:
Pass dependency to HLoadNamedField for array length load
BUG=
Please review this at https://codereview.chromium.org/267773004/
SVN Base: https://github.com/v8/v8.git@bleeding_edge
Affected files (+1, -1 lines):
M src/hydrogen.cc
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);
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.