Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1029)

Unified Diff: src/hydrogen.cc

Issue 14224009: Replace instance type check for polymorphic array.length with map check (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove spurious change Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index a2ddc04b9174f2ec7b95f68acd3acd199ee0a848..bf34014f62c74d182324730d6f77cba73f61d85c 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -6566,8 +6566,9 @@ bool HOptimizedGraphBuilder::HandlePolymorphicArrayLengthLoad(
}
AddInstruction(new(zone()) HCheckNonSmi(object));
+
HInstruction* typecheck =
- AddInstruction(HCheckInstanceType::NewIsJSArray(object, zone()));
+ AddInstruction(new(zone()) HCheckMaps(object, types, zone()));
HInstruction* instr =
HLoadNamedField::NewArrayLength(zone(), object, typecheck);
instr->set_position(expr->position());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698