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

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

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.h
diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h
index 15ff07e93d056db3ce4624854a95045b75128c4e..83fd4ebd5c30d90b7bbff6ce998c828a9f2b6d7b 100644
--- a/src/interpreter/bytecode-array-builder.h
+++ b/src/interpreter/bytecode-array-builder.h
@@ -185,6 +185,11 @@ class BytecodeArrayBuilder {
BytecodeArrayBuilder& Throw();
BytecodeArrayBuilder& Return();
+ // Complex flow control.
+ BytecodeArrayBuilder& ForInPrepare();
+ BytecodeArrayBuilder& ForInNext(Register for_in_state);
+ BytecodeArrayBuilder& ForInDone(Register for_in_state);
+
BytecodeArrayBuilder& EnterBlock();
BytecodeArrayBuilder& LeaveBlock();
@@ -282,7 +287,7 @@ class BytecodeLabel final {
bound_ = true;
}
INLINE(void set_referrer(size_t offset)) {
- DCHECK(!bound_ && offset != kInvalidOffset);
+ DCHECK(!bound_ && offset != kInvalidOffset && offset_ == kInvalidOffset);
offset_ = offset;
}
INLINE(size_t offset() const) { return offset_; }

Powered by Google App Engine
This is Rietveld 408576698