Index: src/interpreter/control-flow-builders.h |
diff --git a/src/interpreter/control-flow-builders.h b/src/interpreter/control-flow-builders.h |
index 7cccd701536dbb3279766b9159d63e03f796cc5d..8778b2656568080095728455d5e13bb9bda2db97 100644 |
--- a/src/interpreter/control-flow-builders.h |
+++ b/src/interpreter/control-flow-builders.h |
@@ -88,26 +88,21 @@ class LoopBuilder final : public BreakableControlFlowBuilder { |
~LoopBuilder(); |
void LoopHeader(ZoneVector<BytecodeLabel>* additional_labels); |
- void Condition() { builder()->Bind(&condition_); } |
- void Next() { builder()->Bind(&next_); } |
void JumpToHeader() { builder()->Jump(&loop_header_); } |
void JumpToHeaderIfTrue() { builder()->JumpIfTrue(&loop_header_); } |
+ void SetContinueTarget(); |
void EndLoop(); |
// This method is called when visiting continue statements in the AST. |
- // Inserts a jump to a unbound label that is patched when the corresponding |
- // SetContinueTarget is called. |
+ // Inserts a jump to an unbound label that is patched when SetContinueTarget |
+ // is called. |
void Continue() { EmitJump(&continue_sites_); } |
void ContinueIfTrue() { EmitJumpIfTrue(&continue_sites_); } |
void ContinueIfUndefined() { EmitJumpIfUndefined(&continue_sites_); } |
void ContinueIfNull() { EmitJumpIfNull(&continue_sites_); } |
private: |
- void SetContinueTarget(const BytecodeLabel& continue_target); |
- |
BytecodeLabel loop_header_; |
- BytecodeLabel condition_; |
- BytecodeLabel next_; |
BytecodeLabel loop_end_; |
// Unbound labels that identify jumps for continue statements in the code. |