Index: src/compiler/control-builders.h |
diff --git a/src/compiler/control-builders.h b/src/compiler/control-builders.h |
index 1349cbac1e962bc132dc430f28d9cfa0bc4cc06e..11adfdb0f4027637465d33db1326c2b1f965dc50 100644 |
--- a/src/compiler/control-builders.h |
+++ b/src/compiler/control-builders.h |
@@ -40,7 +40,7 @@ class ControlBuilder { |
// Tracks control flow for a conditional statement. |
-class IfBuilder : public ControlBuilder { |
+class IfBuilder FINAL : public ControlBuilder { |
public: |
explicit IfBuilder(StructuredGraphBuilder* builder) |
: ControlBuilder(builder), |
@@ -60,7 +60,7 @@ class IfBuilder : public ControlBuilder { |
// Tracks control flow for an iteration statement. |
-class LoopBuilder : public ControlBuilder { |
+class LoopBuilder FINAL : public ControlBuilder { |
public: |
explicit LoopBuilder(StructuredGraphBuilder* builder) |
: ControlBuilder(builder), |
@@ -74,8 +74,8 @@ class LoopBuilder : public ControlBuilder { |
void EndLoop(); |
// Primitive support for break and continue. |
- virtual void Continue(); |
- virtual void Break(); |
+ void Continue() FINAL; |
+ void Break() FINAL; |
// Compound control command for conditional break. |
void BreakUnless(Node* condition); |
@@ -88,7 +88,7 @@ class LoopBuilder : public ControlBuilder { |
// Tracks control flow for a switch statement. |
-class SwitchBuilder : public ControlBuilder { |
+class SwitchBuilder FINAL : public ControlBuilder { |
public: |
explicit SwitchBuilder(StructuredGraphBuilder* builder, int case_count) |
: ControlBuilder(builder), |
@@ -107,7 +107,7 @@ class SwitchBuilder : public ControlBuilder { |
void EndSwitch(); |
// Primitive support for break. |
- virtual void Break(); |
+ void Break() FINAL; |
// The number of cases within a switch is statically known. |
size_t case_count() const { return body_environments_.size(); } |
@@ -121,7 +121,7 @@ class SwitchBuilder : public ControlBuilder { |
// Tracks control flow for a block statement. |
-class BlockBuilder : public ControlBuilder { |
+class BlockBuilder FINAL : public ControlBuilder { |
public: |
explicit BlockBuilder(StructuredGraphBuilder* builder) |
: ControlBuilder(builder), break_environment_(NULL) {} |
@@ -131,13 +131,14 @@ class BlockBuilder : public ControlBuilder { |
void EndBlock(); |
// Primitive support for break. |
- virtual void Break(); |
+ void Break() FINAL; |
private: |
Environment* break_environment_; // Environment after the block exits. |
}; |
-} |
-} |
-} // namespace v8::internal::compiler |
+ |
+} // namespace compiler |
+} // namespace internal |
+} // namespace v8 |
#endif // V8_COMPILER_CONTROL_BUILDERS_H_ |