| Index: src/interpreter/bytecode-label.h
|
| diff --git a/src/interpreter/bytecode-label.h b/src/interpreter/bytecode-label.h
|
| index f10a8638a494af6b4554b148f963f89d06b33109..d96cf66d13a9dd5352224d184004b11a98dfd503 100644
|
| --- a/src/interpreter/bytecode-label.h
|
| +++ b/src/interpreter/bytecode-label.h
|
| @@ -62,6 +62,18 @@ class BytecodeLabels {
|
|
|
| void Bind(BytecodeArrayBuilder* builder);
|
|
|
| + void BindToLabel(BytecodeArrayBuilder* builder, const BytecodeLabel& target);
|
| +
|
| + bool is_bound() const {
|
| + bool is_bound = !labels_.empty() && labels_.at(0).is_bound();
|
| + DCHECK(!is_bound ||
|
| + std::all_of(labels_.begin(), labels_.end(),
|
| + [](const BytecodeLabel& l) { return l.is_bound(); }));
|
| + return is_bound;
|
| + }
|
| +
|
| + bool empty() const { return labels_.empty(); }
|
| +
|
| private:
|
| ZoneVector<BytecodeLabel> labels_;
|
|
|
|
|