diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc index bd7c3987f7..d87a5a6e1d 100644 --- a/src/interpreter/bytecode-generator.cc +++ b/src/interpreter/bytecode-generator.cc @@ -402,7 +402,7 @@ class BytecodeGenerator::ControlScopeForIteration final loop_builder_(loop_builder) { generator->loop_depth_++; } - ~ControlScopeForIteration() { generator()->loop_depth_--; } + ~ControlScopeForIteration() override { generator()->loop_depth_--; } protected: bool Execute(Command command, Statement* statement, diff --git a/src/interpreter/bytecode-register-optimizer.h b/src/interpreter/bytecode-register-optimizer.h index cedd28954d..7ba7d3b602 100644 --- a/src/interpreter/bytecode-register-optimizer.h +++ b/src/interpreter/bytecode-register-optimizer.h @@ -39,7 +39,7 @@ class V8_EXPORT_PRIVATE BytecodeRegisterOptimizer final BytecodeRegisterAllocator* register_allocator, int fixed_registers_count, int parameter_count, BytecodeWriter* bytecode_writer); - virtual ~BytecodeRegisterOptimizer() = default; + ~BytecodeRegisterOptimizer() override = default; // Perform explicit register transfer operations. void DoLdar(Register input) { diff --git a/src/interpreter/control-flow-builders.h b/src/interpreter/control-flow-builders.h index e11aea9cf3..20d6002916 100644 --- a/src/interpreter/control-flow-builders.h +++ b/src/interpreter/control-flow-builders.h @@ -41,7 +41,7 @@ class V8_EXPORT_PRIVATE BreakableControlFlowBuilder break_labels_(builder->zone()), node_(node), block_coverage_builder_(block_coverage_builder) {} - virtual ~BreakableControlFlowBuilder(); + ~BreakableControlFlowBuilder() override; // This method is called when visiting break statements in the AST. // Inserts a jump to an unbound label that is patched when the corresponding @@ -113,7 +113,7 @@ class V8_EXPORT_PRIVATE LoopBuilder final : public BreakableControlFlowBuilder { node, SourceRangeKind::kBody); } } - ~LoopBuilder(); + ~LoopBuilder() override; void LoopHeader(); void LoopBody(); @@ -149,7 +149,7 @@ class V8_EXPORT_PRIVATE SwitchBuilder final case_sites_(builder->zone()) { case_sites_.resize(number_of_cases); } - ~SwitchBuilder(); + ~SwitchBuilder() override; // This method should be called by the SwitchBuilder owner when the case // statement with |index| is emitted to update the case jump site. @@ -186,7 +186,7 @@ class V8_EXPORT_PRIVATE TryCatchBuilder final : public ControlFlowBuilder { block_coverage_builder_(block_coverage_builder), statement_(statement) {} - ~TryCatchBuilder(); + ~TryCatchBuilder() override; void BeginTry(Register context); void EndTry(); @@ -217,7 +217,7 @@ class V8_EXPORT_PRIVATE TryFinallyBuilder final : public ControlFlowBuilder { block_coverage_builder_(block_coverage_builder), statement_(statement) {} - ~TryFinallyBuilder(); + ~TryFinallyBuilder() override; void BeginTry(Register context); void LeaveTry(); @@ -260,7 +260,7 @@ class V8_EXPORT_PRIVATE ConditionalControlFlowBuilder final node, SourceRangeKind::kElse); } } - ~ConditionalControlFlowBuilder(); + ~ConditionalControlFlowBuilder() override; BytecodeLabels* then_labels() { return &then_labels_; } BytecodeLabels* else_labels() { return &else_labels_; }