Commit c8fd2870 authored by Florian Sattler's avatar Florian Sattler Committed by Commit Bot

[cleanup] Mark interpreter methods in subclasses with override.

Fixing clang-tidy warning.

Bug: v8:8015
Change-Id: Ibc3dedb0bce78ddce4004ee386757ce504bb073a
Reviewed-on: https://chromium-review.googlesource.com/1226792
Commit-Queue: Florian Sattler <sattlerf@google.com>
Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55931}
parent df5263b0
......@@ -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,
......
......@@ -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) {
......
......@@ -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_; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment