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

Unified Diff: src/crankshaft/hydrogen.cc

Issue 1631583002: [for-in] Further refactorings and unification around for-in. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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
Index: src/crankshaft/hydrogen.cc
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc
index d2ba73c1da65549651b0544019a1ff7c2463824c..974621aa31e88ae7f0e2d3e2a00bb1ba7dcab912 100644
--- a/src/crankshaft/hydrogen.cc
+++ b/src/crankshaft/hydrogen.cc
@@ -5340,7 +5340,7 @@ void HOptimizedGraphBuilder::BuildForInBody(ForInStatement* stmt,
Push(enum_length);
Add<HSimulate>(stmt->PrepareId());
} else {
- Runtime::FunctionId function_id = Runtime::kGetPropertyNamesFast;
+ Runtime::FunctionId function_id = Runtime::kForInEnumerate;
Add<HPushArguments>(enumerable);
HCallRuntime* array =
Add<HCallRuntime>(Runtime::FunctionForId(function_id), 1);

Powered by Google App Engine
This is Rietveld 408576698