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

Unified Diff: src/interpreter/bytecode-label.h

Issue 2254493002: [interpreter] Use VisitForTest for loop conditions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix for as well Created 4 years, 4 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-label.h
diff --git a/src/interpreter/bytecode-label.h b/src/interpreter/bytecode-label.h
index f10a8638a494af6b4554b148f963f89d06b33109..107c572268dab65b2ef832a7305ab9025141b2a9 100644
--- a/src/interpreter/bytecode-label.h
+++ b/src/interpreter/bytecode-label.h
@@ -62,6 +62,12 @@ class BytecodeLabels {
void Bind(BytecodeArrayBuilder* builder);
+ void BindToLabel(BytecodeArrayBuilder* builder, const BytecodeLabel& target);
+
+ bool is_bound() const { return !labels_.empty() && labels_.at(0).is_bound(); }
rmcilroy 2016/08/17 16:20:43 Could you add a DCHECK that if one label is bound
klaasb 2016/08/18 11:40:00 Done.
+
+ bool empty() const { return labels_.empty(); }
+
private:
ZoneVector<BytecodeLabel> labels_;

Powered by Google App Engine
This is Rietveld 408576698