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

Unified Diff: src/runtime/runtime-interpreter.cc

Issue 1531693002: [Interpreter] Implement ForIn in bytecode graph builder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@oth-0009-phi
Patch Set: Fix ForInPrepare. Created 5 years 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/runtime/runtime-interpreter.cc
diff --git a/src/runtime/runtime-interpreter.cc b/src/runtime/runtime-interpreter.cc
index c22e6808c3e19c763b35ab61d559b236638c5116..10cdac1cc0c11c73920854b6f239dd364d7e81e2 100644
--- a/src/runtime/runtime-interpreter.cc
+++ b/src/runtime/runtime-interpreter.cc
@@ -185,14 +185,12 @@ RUNTIME_FUNCTION(Runtime_InterpreterForInPrepare) {
}
}
- Handle<FixedArray> result = isolate->factory()->NewFixedArray(4);
- result->set(0, *receiver);
+ Handle<FixedArray> result = isolate->factory()->NewFixedArray(3);
+ result->set(0, *cache_type);
result->set(1, *cache_array);
- result->set(2, *cache_type);
- result->set(3, Smi::FromInt(cache_length));
+ result->set(2, Smi::FromInt(cache_length));
return *result;
}
-
} // namespace internal
} // namespace v8

Powered by Google App Engine
This is Rietveld 408576698