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

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

Issue 1502243002: [Interpreter] Local flow control in the bytecode graph builder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Build fix. 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/interpreter/bytecode-array-iterator.cc
diff --git a/src/interpreter/bytecode-array-iterator.cc b/src/interpreter/bytecode-array-iterator.cc
index 542b505be7e70e25e4331d78c2bd9920761ff4c1..da19c855ee9d9991b15e0354f0b839d23560204a 100644
--- a/src/interpreter/bytecode-array-iterator.cc
+++ b/src/interpreter/bytecode-array-iterator.cc
@@ -20,6 +20,13 @@ void BytecodeArrayIterator::Advance() {
}
+void BytecodeArrayIterator::AdvanceToOffset(int offset) {
+ DCHECK_GE(offset, 0);
+ DCHECK_LE(offset, bytecode_array()->length());
+ bytecode_offset_ = offset;
+}
+
+
bool BytecodeArrayIterator::done() const {
return bytecode_offset_ >= bytecode_array()->length();
}

Powered by Google App Engine
This is Rietveld 408576698