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

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

Issue 1502243002: [Interpreter] Local flow control in the bytecode graph builder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase 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.h
diff --git a/src/interpreter/bytecode-array-iterator.h b/src/interpreter/bytecode-array-iterator.h
index 31e237f09832b8083c46be3dd3825d220f945962..04482144cf56513616df0738787b13462d2379da 100644
--- a/src/interpreter/bytecode-array-iterator.h
+++ b/src/interpreter/bytecode-array-iterator.h
@@ -35,6 +35,10 @@ class BytecodeArrayIterator {
// typed versions above which cast the return to an appropriate type.
uint32_t GetRawOperand(int operand_index, OperandType operand_type) const;
+ // Returns the absolute offset of the branch target if the current bytecode
+ // is jump or conditional jump, kMinInt otherwise.
rmcilroy 2015/12/15 17:35:44 It never actually returns kMinInt since there is a
oth 2015/12/15 22:42:17 Done. Yes, doh!
+ int GetJumpTargetOffset() const;
+
private:
Handle<BytecodeArray> bytecode_array_;
int bytecode_offset_;

Powered by Google App Engine
This is Rietveld 408576698