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

Unified Diff: src/interpreter/bytecode-array-builder.cc

Issue 1422033002: [Interpreter] Add support for for..in. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes for 32-bit. Created 5 years, 2 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/interpreter/bytecode-array-builder.cc
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc
index 26b5414b3a6b79305c066696a13cc0ef1a6622c9..6d3d66c4ec5ca5374c1a08479d37c8ab9302f3ba 100644
--- a/src/interpreter/bytecode-array-builder.cc
+++ b/src/interpreter/bytecode-array-builder.cc
@@ -645,6 +645,24 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::Return() {
}
+BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare() {
+ Output(Bytecode::kForInPrepare);
+ return *this;
+}
+
+
+BytecodeArrayBuilder& BytecodeArrayBuilder::ForInNext(Register for_in_state) {
+ Output(Bytecode::kForInNext, for_in_state.ToOperand());
+ return *this;
+}
+
+
+BytecodeArrayBuilder& BytecodeArrayBuilder::ForInDone(Register for_in_state) {
+ Output(Bytecode::kForInDone, for_in_state.ToOperand());
+ return *this;
+}
+
+
BytecodeArrayBuilder& BytecodeArrayBuilder::EnterBlock() { return *this; }

Powered by Google App Engine
This is Rietveld 408576698