| Index: src/ast.h
|
| diff --git a/src/ast.h b/src/ast.h
|
| index 8e9ff2d2249dd10b1615283cda0cea23d7bf10aa..f8f65f1375577d28ee83fa92b0c9ade71bb48e0c 100644
|
| --- a/src/ast.h
|
| +++ b/src/ast.h
|
| @@ -143,8 +143,8 @@ typedef ZoneList<Handle<Object> > ZoneObjectList;
|
|
|
|
|
| #define DECLARE_NODE_TYPE(type) \
|
| - virtual void Accept(AstVisitor* v) V8_OVERRIDE; \
|
| - virtual AstNode::NodeType node_type() const V8_FINAL V8_OVERRIDE { \
|
| + virtual void Accept(AstVisitor* v) OVERRIDE; \
|
| + virtual AstNode::NodeType node_type() const FINAL OVERRIDE { \
|
| return AstNode::k##type; \
|
| } \
|
| template<class> friend class AstNodeFactory;
|
| @@ -157,7 +157,7 @@ enum AstPropertiesFlag {
|
| };
|
|
|
|
|
| -class AstProperties V8_FINAL BASE_EMBEDDED {
|
| +class AstProperties FINAL BASE_EMBEDDED {
|
| public:
|
| class Flags : public EnumSet<AstPropertiesFlag, int> {};
|
|
|
| @@ -259,7 +259,7 @@ class Statement : public AstNode {
|
| };
|
|
|
|
|
| -class SmallMapList V8_FINAL {
|
| +class SmallMapList FINAL {
|
| public:
|
| SmallMapList() {}
|
| SmallMapList(int capacity, Zone* zone) : list_(capacity, zone) {}
|
| @@ -408,7 +408,7 @@ class BreakableStatement : public Statement {
|
| ZoneList<const AstRawString*>* labels() const { return labels_; }
|
|
|
| // Type testing & conversion.
|
| - virtual BreakableStatement* AsBreakableStatement() V8_FINAL V8_OVERRIDE {
|
| + virtual BreakableStatement* AsBreakableStatement() FINAL OVERRIDE {
|
| return this;
|
| }
|
|
|
| @@ -444,7 +444,7 @@ class BreakableStatement : public Statement {
|
| };
|
|
|
|
|
| -class Block V8_FINAL : public BreakableStatement {
|
| +class Block FINAL : public BreakableStatement {
|
| public:
|
| DECLARE_NODE_TYPE(Block)
|
|
|
| @@ -457,7 +457,7 @@ class Block V8_FINAL : public BreakableStatement {
|
|
|
| BailoutId DeclsId() const { return decls_id_; }
|
|
|
| - virtual bool IsJump() const V8_OVERRIDE {
|
| + virtual bool IsJump() const OVERRIDE {
|
| return !statements_.is_empty() && statements_.last()->IsJump()
|
| && labels() == NULL; // Good enough as an approximation...
|
| }
|
| @@ -512,11 +512,11 @@ class Declaration : public AstNode {
|
| };
|
|
|
|
|
| -class VariableDeclaration V8_FINAL : public Declaration {
|
| +class VariableDeclaration FINAL : public Declaration {
|
| public:
|
| DECLARE_NODE_TYPE(VariableDeclaration)
|
|
|
| - virtual InitializationFlag initialization() const V8_OVERRIDE {
|
| + virtual InitializationFlag initialization() const OVERRIDE {
|
| return mode() == VAR ? kCreatedInitialized : kNeedsInitialization;
|
| }
|
|
|
| @@ -531,15 +531,15 @@ class VariableDeclaration V8_FINAL : public Declaration {
|
| };
|
|
|
|
|
| -class FunctionDeclaration V8_FINAL : public Declaration {
|
| +class FunctionDeclaration FINAL : public Declaration {
|
| public:
|
| DECLARE_NODE_TYPE(FunctionDeclaration)
|
|
|
| FunctionLiteral* fun() const { return fun_; }
|
| - virtual InitializationFlag initialization() const V8_OVERRIDE {
|
| + virtual InitializationFlag initialization() const OVERRIDE {
|
| return kCreatedInitialized;
|
| }
|
| - virtual bool IsInlineable() const V8_OVERRIDE;
|
| + virtual bool IsInlineable() const OVERRIDE;
|
|
|
| protected:
|
| FunctionDeclaration(Zone* zone,
|
| @@ -560,12 +560,12 @@ class FunctionDeclaration V8_FINAL : public Declaration {
|
| };
|
|
|
|
|
| -class ModuleDeclaration V8_FINAL : public Declaration {
|
| +class ModuleDeclaration FINAL : public Declaration {
|
| public:
|
| DECLARE_NODE_TYPE(ModuleDeclaration)
|
|
|
| Module* module() const { return module_; }
|
| - virtual InitializationFlag initialization() const V8_OVERRIDE {
|
| + virtual InitializationFlag initialization() const OVERRIDE {
|
| return kCreatedInitialized;
|
| }
|
|
|
| @@ -584,12 +584,12 @@ class ModuleDeclaration V8_FINAL : public Declaration {
|
| };
|
|
|
|
|
| -class ImportDeclaration V8_FINAL : public Declaration {
|
| +class ImportDeclaration FINAL : public Declaration {
|
| public:
|
| DECLARE_NODE_TYPE(ImportDeclaration)
|
|
|
| Module* module() const { return module_; }
|
| - virtual InitializationFlag initialization() const V8_OVERRIDE {
|
| + virtual InitializationFlag initialization() const OVERRIDE {
|
| return kCreatedInitialized;
|
| }
|
|
|
| @@ -608,11 +608,11 @@ class ImportDeclaration V8_FINAL : public Declaration {
|
| };
|
|
|
|
|
| -class ExportDeclaration V8_FINAL : public Declaration {
|
| +class ExportDeclaration FINAL : public Declaration {
|
| public:
|
| DECLARE_NODE_TYPE(ExportDeclaration)
|
|
|
| - virtual InitializationFlag initialization() const V8_OVERRIDE {
|
| + virtual InitializationFlag initialization() const OVERRIDE {
|
| return kCreatedInitialized;
|
| }
|
|
|
| @@ -643,7 +643,7 @@ class Module : public AstNode {
|
| };
|
|
|
|
|
| -class ModuleLiteral V8_FINAL : public Module {
|
| +class ModuleLiteral FINAL : public Module {
|
| public:
|
| DECLARE_NODE_TYPE(ModuleLiteral)
|
|
|
| @@ -653,7 +653,7 @@ class ModuleLiteral V8_FINAL : public Module {
|
| };
|
|
|
|
|
| -class ModuleVariable V8_FINAL : public Module {
|
| +class ModuleVariable FINAL : public Module {
|
| public:
|
| DECLARE_NODE_TYPE(ModuleVariable)
|
|
|
| @@ -667,7 +667,7 @@ class ModuleVariable V8_FINAL : public Module {
|
| };
|
|
|
|
|
| -class ModulePath V8_FINAL : public Module {
|
| +class ModulePath FINAL : public Module {
|
| public:
|
| DECLARE_NODE_TYPE(ModulePath)
|
|
|
| @@ -684,7 +684,7 @@ class ModulePath V8_FINAL : public Module {
|
| };
|
|
|
|
|
| -class ModuleUrl V8_FINAL : public Module {
|
| +class ModuleUrl FINAL : public Module {
|
| public:
|
| DECLARE_NODE_TYPE(ModuleUrl)
|
|
|
| @@ -700,7 +700,7 @@ class ModuleUrl V8_FINAL : public Module {
|
| };
|
|
|
|
|
| -class ModuleStatement V8_FINAL : public Statement {
|
| +class ModuleStatement FINAL : public Statement {
|
| public:
|
| DECLARE_NODE_TYPE(ModuleStatement)
|
|
|
| @@ -723,7 +723,7 @@ class ModuleStatement V8_FINAL : public Statement {
|
| class IterationStatement : public BreakableStatement {
|
| public:
|
| // Type testing & conversion.
|
| - virtual IterationStatement* AsIterationStatement() V8_FINAL V8_OVERRIDE {
|
| + virtual IterationStatement* AsIterationStatement() FINAL OVERRIDE {
|
| return this;
|
| }
|
|
|
| @@ -755,7 +755,7 @@ class IterationStatement : public BreakableStatement {
|
| };
|
|
|
|
|
| -class DoWhileStatement V8_FINAL : public IterationStatement {
|
| +class DoWhileStatement FINAL : public IterationStatement {
|
| public:
|
| DECLARE_NODE_TYPE(DoWhileStatement)
|
|
|
| @@ -766,8 +766,8 @@ class DoWhileStatement V8_FINAL : public IterationStatement {
|
|
|
| Expression* cond() const { return cond_; }
|
|
|
| - virtual BailoutId ContinueId() const V8_OVERRIDE { return continue_id_; }
|
| - virtual BailoutId StackCheckId() const V8_OVERRIDE { return back_edge_id_; }
|
| + virtual BailoutId ContinueId() const OVERRIDE { return continue_id_; }
|
| + virtual BailoutId StackCheckId() const OVERRIDE { return back_edge_id_; }
|
| BailoutId BackEdgeId() const { return back_edge_id_; }
|
|
|
| protected:
|
| @@ -786,7 +786,7 @@ class DoWhileStatement V8_FINAL : public IterationStatement {
|
| };
|
|
|
|
|
| -class WhileStatement V8_FINAL : public IterationStatement {
|
| +class WhileStatement FINAL : public IterationStatement {
|
| public:
|
| DECLARE_NODE_TYPE(WhileStatement)
|
|
|
| @@ -803,8 +803,8 @@ class WhileStatement V8_FINAL : public IterationStatement {
|
| may_have_function_literal_ = value;
|
| }
|
|
|
| - virtual BailoutId ContinueId() const V8_OVERRIDE { return EntryId(); }
|
| - virtual BailoutId StackCheckId() const V8_OVERRIDE { return body_id_; }
|
| + virtual BailoutId ContinueId() const OVERRIDE { return EntryId(); }
|
| + virtual BailoutId StackCheckId() const OVERRIDE { return body_id_; }
|
| BailoutId BodyId() const { return body_id_; }
|
|
|
| protected:
|
| @@ -825,7 +825,7 @@ class WhileStatement V8_FINAL : public IterationStatement {
|
| };
|
|
|
|
|
| -class ForStatement V8_FINAL : public IterationStatement {
|
| +class ForStatement FINAL : public IterationStatement {
|
| public:
|
| DECLARE_NODE_TYPE(ForStatement)
|
|
|
| @@ -850,8 +850,8 @@ class ForStatement V8_FINAL : public IterationStatement {
|
| may_have_function_literal_ = value;
|
| }
|
|
|
| - virtual BailoutId ContinueId() const V8_OVERRIDE { return continue_id_; }
|
| - virtual BailoutId StackCheckId() const V8_OVERRIDE { return body_id_; }
|
| + virtual BailoutId ContinueId() const OVERRIDE { return continue_id_; }
|
| + virtual BailoutId StackCheckId() const OVERRIDE { return body_id_; }
|
| BailoutId BodyId() const { return body_id_; }
|
|
|
| bool is_fast_smi_loop() { return loop_variable_ != NULL; }
|
| @@ -913,7 +913,7 @@ class ForEachStatement : public IterationStatement {
|
| };
|
|
|
|
|
| -class ForInStatement V8_FINAL : public ForEachStatement,
|
| +class ForInStatement FINAL : public ForEachStatement,
|
| public FeedbackSlotInterface {
|
| public:
|
| DECLARE_NODE_TYPE(ForInStatement)
|
| @@ -937,8 +937,8 @@ class ForInStatement V8_FINAL : public ForEachStatement,
|
|
|
| BailoutId BodyId() const { return body_id_; }
|
| BailoutId PrepareId() const { return prepare_id_; }
|
| - virtual BailoutId ContinueId() const V8_OVERRIDE { return EntryId(); }
|
| - virtual BailoutId StackCheckId() const V8_OVERRIDE { return body_id_; }
|
| + virtual BailoutId ContinueId() const OVERRIDE { return EntryId(); }
|
| + virtual BailoutId StackCheckId() const OVERRIDE { return body_id_; }
|
|
|
| protected:
|
| ForInStatement(Zone* zone, ZoneList<const AstRawString*>* labels, int pos,
|
| @@ -956,7 +956,7 @@ class ForInStatement V8_FINAL : public ForEachStatement,
|
| };
|
|
|
|
|
| -class ForOfStatement V8_FINAL : public ForEachStatement {
|
| +class ForOfStatement FINAL : public ForEachStatement {
|
| public:
|
| DECLARE_NODE_TYPE(ForOfStatement)
|
|
|
| @@ -998,8 +998,8 @@ class ForOfStatement V8_FINAL : public ForEachStatement {
|
| return assign_each_;
|
| }
|
|
|
| - virtual BailoutId ContinueId() const V8_OVERRIDE { return EntryId(); }
|
| - virtual BailoutId StackCheckId() const V8_OVERRIDE { return BackEdgeId(); }
|
| + virtual BailoutId ContinueId() const OVERRIDE { return EntryId(); }
|
| + virtual BailoutId StackCheckId() const OVERRIDE { return BackEdgeId(); }
|
|
|
| BailoutId BackEdgeId() const { return back_edge_id_; }
|
|
|
| @@ -1021,13 +1021,13 @@ class ForOfStatement V8_FINAL : public ForEachStatement {
|
| };
|
|
|
|
|
| -class ExpressionStatement V8_FINAL : public Statement {
|
| +class ExpressionStatement FINAL : public Statement {
|
| public:
|
| DECLARE_NODE_TYPE(ExpressionStatement)
|
|
|
| void set_expression(Expression* e) { expression_ = e; }
|
| Expression* expression() const { return expression_; }
|
| - virtual bool IsJump() const V8_OVERRIDE { return expression_->IsThrow(); }
|
| + virtual bool IsJump() const OVERRIDE { return expression_->IsThrow(); }
|
|
|
| protected:
|
| ExpressionStatement(Zone* zone, Expression* expression, int pos)
|
| @@ -1040,14 +1040,14 @@ class ExpressionStatement V8_FINAL : public Statement {
|
|
|
| class JumpStatement : public Statement {
|
| public:
|
| - virtual bool IsJump() const V8_FINAL V8_OVERRIDE { return true; }
|
| + virtual bool IsJump() const FINAL OVERRIDE { return true; }
|
|
|
| protected:
|
| explicit JumpStatement(Zone* zone, int pos) : Statement(zone, pos) {}
|
| };
|
|
|
|
|
| -class ContinueStatement V8_FINAL : public JumpStatement {
|
| +class ContinueStatement FINAL : public JumpStatement {
|
| public:
|
| DECLARE_NODE_TYPE(ContinueStatement)
|
|
|
| @@ -1062,7 +1062,7 @@ class ContinueStatement V8_FINAL : public JumpStatement {
|
| };
|
|
|
|
|
| -class BreakStatement V8_FINAL : public JumpStatement {
|
| +class BreakStatement FINAL : public JumpStatement {
|
| public:
|
| DECLARE_NODE_TYPE(BreakStatement)
|
|
|
| @@ -1077,7 +1077,7 @@ class BreakStatement V8_FINAL : public JumpStatement {
|
| };
|
|
|
|
|
| -class ReturnStatement V8_FINAL : public JumpStatement {
|
| +class ReturnStatement FINAL : public JumpStatement {
|
| public:
|
| DECLARE_NODE_TYPE(ReturnStatement)
|
|
|
| @@ -1092,7 +1092,7 @@ class ReturnStatement V8_FINAL : public JumpStatement {
|
| };
|
|
|
|
|
| -class WithStatement V8_FINAL : public Statement {
|
| +class WithStatement FINAL : public Statement {
|
| public:
|
| DECLARE_NODE_TYPE(WithStatement)
|
|
|
| @@ -1116,7 +1116,7 @@ class WithStatement V8_FINAL : public Statement {
|
| };
|
|
|
|
|
| -class CaseClause V8_FINAL : public Expression {
|
| +class CaseClause FINAL : public Expression {
|
| public:
|
| DECLARE_NODE_TYPE(CaseClause)
|
|
|
| @@ -1149,7 +1149,7 @@ class CaseClause V8_FINAL : public Expression {
|
| };
|
|
|
|
|
| -class SwitchStatement V8_FINAL : public BreakableStatement {
|
| +class SwitchStatement FINAL : public BreakableStatement {
|
| public:
|
| DECLARE_NODE_TYPE(SwitchStatement)
|
|
|
| @@ -1179,7 +1179,7 @@ class SwitchStatement V8_FINAL : public BreakableStatement {
|
| // the parser implicitly creates an empty statement. Use the
|
| // HasThenStatement() and HasElseStatement() functions to check if a
|
| // given if-statement has a then- or an else-part containing code.
|
| -class IfStatement V8_FINAL : public Statement {
|
| +class IfStatement FINAL : public Statement {
|
| public:
|
| DECLARE_NODE_TYPE(IfStatement)
|
|
|
| @@ -1190,7 +1190,7 @@ class IfStatement V8_FINAL : public Statement {
|
| Statement* then_statement() const { return then_statement_; }
|
| Statement* else_statement() const { return else_statement_; }
|
|
|
| - virtual bool IsJump() const V8_OVERRIDE {
|
| + virtual bool IsJump() const OVERRIDE {
|
| return HasThenStatement() && then_statement()->IsJump()
|
| && HasElseStatement() && else_statement()->IsJump();
|
| }
|
| @@ -1222,7 +1222,7 @@ class IfStatement V8_FINAL : public Statement {
|
|
|
| // NOTE: TargetCollectors are represented as nodes to fit in the target
|
| // stack in the compiler; this should probably be reworked.
|
| -class TargetCollector V8_FINAL : public AstNode {
|
| +class TargetCollector FINAL : public AstNode {
|
| public:
|
| explicit TargetCollector(Zone* zone)
|
| : AstNode(RelocInfo::kNoPosition), targets_(0, zone) { }
|
| @@ -1233,9 +1233,9 @@ class TargetCollector V8_FINAL : public AstNode {
|
| void AddTarget(Label* target, Zone* zone);
|
|
|
| // Virtual behaviour. TargetCollectors are never part of the AST.
|
| - virtual void Accept(AstVisitor* v) V8_OVERRIDE { UNREACHABLE(); }
|
| - virtual NodeType node_type() const V8_OVERRIDE { return kInvalid; }
|
| - virtual TargetCollector* AsTargetCollector() V8_OVERRIDE { return this; }
|
| + virtual void Accept(AstVisitor* v) OVERRIDE { UNREACHABLE(); }
|
| + virtual NodeType node_type() const OVERRIDE { return kInvalid; }
|
| + virtual TargetCollector* AsTargetCollector() OVERRIDE { return this; }
|
|
|
| ZoneList<Label*>* targets() { return &targets_; }
|
|
|
| @@ -1270,7 +1270,7 @@ class TryStatement : public Statement {
|
| };
|
|
|
|
|
| -class TryCatchStatement V8_FINAL : public TryStatement {
|
| +class TryCatchStatement FINAL : public TryStatement {
|
| public:
|
| DECLARE_NODE_TYPE(TryCatchStatement)
|
|
|
| @@ -1299,7 +1299,7 @@ class TryCatchStatement V8_FINAL : public TryStatement {
|
| };
|
|
|
|
|
| -class TryFinallyStatement V8_FINAL : public TryStatement {
|
| +class TryFinallyStatement FINAL : public TryStatement {
|
| public:
|
| DECLARE_NODE_TYPE(TryFinallyStatement)
|
|
|
| @@ -1316,7 +1316,7 @@ class TryFinallyStatement V8_FINAL : public TryStatement {
|
| };
|
|
|
|
|
| -class DebuggerStatement V8_FINAL : public Statement {
|
| +class DebuggerStatement FINAL : public Statement {
|
| public:
|
| DECLARE_NODE_TYPE(DebuggerStatement)
|
|
|
| @@ -1331,7 +1331,7 @@ class DebuggerStatement V8_FINAL : public Statement {
|
| };
|
|
|
|
|
| -class EmptyStatement V8_FINAL : public Statement {
|
| +class EmptyStatement FINAL : public Statement {
|
| public:
|
| DECLARE_NODE_TYPE(EmptyStatement)
|
|
|
| @@ -1340,11 +1340,11 @@ class EmptyStatement V8_FINAL : public Statement {
|
| };
|
|
|
|
|
| -class Literal V8_FINAL : public Expression {
|
| +class Literal FINAL : public Expression {
|
| public:
|
| DECLARE_NODE_TYPE(Literal)
|
|
|
| - virtual bool IsPropertyName() const V8_OVERRIDE {
|
| + virtual bool IsPropertyName() const OVERRIDE {
|
| return value_->IsPropertyName();
|
| }
|
|
|
| @@ -1358,10 +1358,10 @@ class Literal V8_FINAL : public Expression {
|
| return value_->AsString();
|
| }
|
|
|
| - virtual bool ToBooleanIsTrue() const V8_OVERRIDE {
|
| + virtual bool ToBooleanIsTrue() const OVERRIDE {
|
| return value()->BooleanValue();
|
| }
|
| - virtual bool ToBooleanIsFalse() const V8_OVERRIDE {
|
| + virtual bool ToBooleanIsFalse() const OVERRIDE {
|
| return !value()->BooleanValue();
|
| }
|
|
|
| @@ -1448,7 +1448,7 @@ class MaterializedLiteral : public Expression {
|
| // Property is used for passing information
|
| // about an object literal's properties from the parser
|
| // to the code generator.
|
| -class ObjectLiteralProperty V8_FINAL : public ZoneObject {
|
| +class ObjectLiteralProperty FINAL : public ZoneObject {
|
| public:
|
| enum Kind {
|
| CONSTANT, // Property with constant value (compile time).
|
| @@ -1492,7 +1492,7 @@ class ObjectLiteralProperty V8_FINAL : public ZoneObject {
|
|
|
| // An object literal has a boilerplate object that is used
|
| // for minimizing the work when constructing it at runtime.
|
| -class ObjectLiteral V8_FINAL : public MaterializedLiteral {
|
| +class ObjectLiteral FINAL : public MaterializedLiteral {
|
| public:
|
| typedef ObjectLiteralProperty Property;
|
|
|
| @@ -1558,7 +1558,7 @@ class ObjectLiteral V8_FINAL : public MaterializedLiteral {
|
|
|
|
|
| // Node for capturing a regexp literal.
|
| -class RegExpLiteral V8_FINAL : public MaterializedLiteral {
|
| +class RegExpLiteral FINAL : public MaterializedLiteral {
|
| public:
|
| DECLARE_NODE_TYPE(RegExpLiteral)
|
|
|
| @@ -1583,7 +1583,7 @@ class RegExpLiteral V8_FINAL : public MaterializedLiteral {
|
|
|
| // An array literal has a literals object that is used
|
| // for minimizing the work when constructing it at runtime.
|
| -class ArrayLiteral V8_FINAL : public MaterializedLiteral {
|
| +class ArrayLiteral FINAL : public MaterializedLiteral {
|
| public:
|
| DECLARE_NODE_TYPE(ArrayLiteral)
|
|
|
| @@ -1625,11 +1625,11 @@ class ArrayLiteral V8_FINAL : public MaterializedLiteral {
|
| };
|
|
|
|
|
| -class VariableProxy V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| +class VariableProxy FINAL : public Expression, public FeedbackSlotInterface {
|
| public:
|
| DECLARE_NODE_TYPE(VariableProxy)
|
|
|
| - virtual bool IsValidReferenceExpression() const V8_OVERRIDE {
|
| + virtual bool IsValidReferenceExpression() const OVERRIDE {
|
| return var_ == NULL ? true : var_->IsValidReference();
|
| }
|
|
|
| @@ -1669,11 +1669,11 @@ class VariableProxy V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| };
|
|
|
|
|
| -class Property V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| +class Property FINAL : public Expression, public FeedbackSlotInterface {
|
| public:
|
| DECLARE_NODE_TYPE(Property)
|
|
|
| - virtual bool IsValidReferenceExpression() const V8_OVERRIDE { return true; }
|
| + virtual bool IsValidReferenceExpression() const OVERRIDE { return true; }
|
|
|
| Expression* obj() const { return obj_; }
|
| Expression* key() const { return key_; }
|
| @@ -1683,13 +1683,13 @@ class Property V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| bool IsStringAccess() const { return is_string_access_; }
|
|
|
| // Type feedback information.
|
| - virtual bool IsMonomorphic() V8_OVERRIDE {
|
| + virtual bool IsMonomorphic() OVERRIDE {
|
| return receiver_types_.length() == 1;
|
| }
|
| - virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE {
|
| + virtual SmallMapList* GetReceiverTypes() OVERRIDE {
|
| return &receiver_types_;
|
| }
|
| - virtual KeyedAccessStoreMode GetStoreMode() V8_OVERRIDE {
|
| + virtual KeyedAccessStoreMode GetStoreMode() OVERRIDE {
|
| return STANDARD_STORE;
|
| }
|
| bool IsUninitialized() { return !is_for_call_ && is_uninitialized_; }
|
| @@ -1738,7 +1738,7 @@ class Property V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| };
|
|
|
|
|
| -class Call V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| +class Call FINAL : public Expression, public FeedbackSlotInterface {
|
| public:
|
| DECLARE_NODE_TYPE(Call)
|
|
|
| @@ -1756,14 +1756,14 @@ class Call V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| }
|
| int CallFeedbackSlot() const { return call_feedback_slot_; }
|
|
|
| - virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE {
|
| + virtual SmallMapList* GetReceiverTypes() OVERRIDE {
|
| if (expression()->IsProperty()) {
|
| return expression()->AsProperty()->GetReceiverTypes();
|
| }
|
| return NULL;
|
| }
|
|
|
| - virtual bool IsMonomorphic() V8_OVERRIDE {
|
| + virtual bool IsMonomorphic() OVERRIDE {
|
| if (expression()->IsProperty()) {
|
| return expression()->AsProperty()->IsMonomorphic();
|
| }
|
| @@ -1836,7 +1836,7 @@ class Call V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| };
|
|
|
|
|
| -class CallNew V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| +class CallNew FINAL : public Expression, public FeedbackSlotInterface {
|
| public:
|
| DECLARE_NODE_TYPE(CallNew)
|
|
|
| @@ -1862,7 +1862,7 @@ class CallNew V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| }
|
|
|
| void RecordTypeFeedback(TypeFeedbackOracle* oracle);
|
| - virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; }
|
| + virtual bool IsMonomorphic() OVERRIDE { return is_monomorphic_; }
|
| Handle<JSFunction> target() const { return target_; }
|
| ElementsKind elements_kind() const { return elements_kind_; }
|
| Handle<AllocationSite> allocation_site() const {
|
| @@ -1902,7 +1902,7 @@ class CallNew V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| // language construct. Instead it is used to call a C or JS function
|
| // with a set of arguments. This is used from the builtins that are
|
| // implemented in JavaScript (see "v8natives.js").
|
| -class CallRuntime V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| +class CallRuntime FINAL : public Expression, public FeedbackSlotInterface {
|
| public:
|
| DECLARE_NODE_TYPE(CallRuntime)
|
|
|
| @@ -1945,7 +1945,7 @@ class CallRuntime V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| };
|
|
|
|
|
| -class UnaryOperation V8_FINAL : public Expression {
|
| +class UnaryOperation FINAL : public Expression {
|
| public:
|
| DECLARE_NODE_TYPE(UnaryOperation)
|
|
|
| @@ -1956,7 +1956,7 @@ class UnaryOperation V8_FINAL : public Expression {
|
| BailoutId MaterializeFalseId() { return materialize_false_id_; }
|
|
|
| virtual void RecordToBooleanTypeFeedback(
|
| - TypeFeedbackOracle* oracle) V8_OVERRIDE;
|
| + TypeFeedbackOracle* oracle) OVERRIDE;
|
|
|
| protected:
|
| UnaryOperation(Zone* zone, Token::Value op, Expression* expression, int pos,
|
| @@ -1980,11 +1980,11 @@ class UnaryOperation V8_FINAL : public Expression {
|
| };
|
|
|
|
|
| -class BinaryOperation V8_FINAL : public Expression {
|
| +class BinaryOperation FINAL : public Expression {
|
| public:
|
| DECLARE_NODE_TYPE(BinaryOperation)
|
|
|
| - virtual bool ResultOverwriteAllowed() const V8_OVERRIDE;
|
| + virtual bool ResultOverwriteAllowed() const OVERRIDE;
|
|
|
| Token::Value op() const { return op_; }
|
| Expression* left() const { return left_; }
|
| @@ -2001,7 +2001,7 @@ class BinaryOperation V8_FINAL : public Expression {
|
| void set_fixed_right_arg(Maybe<int> arg) { fixed_right_arg_ = arg; }
|
|
|
| virtual void RecordToBooleanTypeFeedback(
|
| - TypeFeedbackOracle* oracle) V8_OVERRIDE;
|
| + TypeFeedbackOracle* oracle) OVERRIDE;
|
|
|
| protected:
|
| BinaryOperation(Zone* zone, Token::Value op, Expression* left,
|
| @@ -2030,7 +2030,7 @@ class BinaryOperation V8_FINAL : public Expression {
|
| };
|
|
|
|
|
| -class CountOperation V8_FINAL : public Expression {
|
| +class CountOperation FINAL : public Expression {
|
| public:
|
| DECLARE_NODE_TYPE(CountOperation)
|
|
|
| @@ -2044,13 +2044,13 @@ class CountOperation V8_FINAL : public Expression {
|
|
|
| Expression* expression() const { return expression_; }
|
|
|
| - virtual bool IsMonomorphic() V8_OVERRIDE {
|
| + virtual bool IsMonomorphic() OVERRIDE {
|
| return receiver_types_.length() == 1;
|
| }
|
| - virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE {
|
| + virtual SmallMapList* GetReceiverTypes() OVERRIDE {
|
| return &receiver_types_;
|
| }
|
| - virtual KeyedAccessStoreMode GetStoreMode() V8_OVERRIDE {
|
| + virtual KeyedAccessStoreMode GetStoreMode() OVERRIDE {
|
| return store_mode_;
|
| }
|
| Type* type() const { return type_; }
|
| @@ -2087,7 +2087,7 @@ class CountOperation V8_FINAL : public Expression {
|
| };
|
|
|
|
|
| -class CompareOperation V8_FINAL : public Expression {
|
| +class CompareOperation FINAL : public Expression {
|
| public:
|
| DECLARE_NODE_TYPE(CompareOperation)
|
|
|
| @@ -2125,7 +2125,7 @@ class CompareOperation V8_FINAL : public Expression {
|
| };
|
|
|
|
|
| -class Conditional V8_FINAL : public Expression {
|
| +class Conditional FINAL : public Expression {
|
| public:
|
| DECLARE_NODE_TYPE(Conditional)
|
|
|
| @@ -2155,7 +2155,7 @@ class Conditional V8_FINAL : public Expression {
|
| };
|
|
|
|
|
| -class Assignment V8_FINAL : public Expression {
|
| +class Assignment FINAL : public Expression {
|
| public:
|
| DECLARE_NODE_TYPE(Assignment)
|
|
|
| @@ -2175,17 +2175,17 @@ class Assignment V8_FINAL : public Expression {
|
|
|
| // Type feedback information.
|
| TypeFeedbackId AssignmentFeedbackId() { return reuse(id()); }
|
| - virtual bool IsMonomorphic() V8_OVERRIDE {
|
| + virtual bool IsMonomorphic() OVERRIDE {
|
| return receiver_types_.length() == 1;
|
| }
|
| bool IsUninitialized() { return is_uninitialized_; }
|
| bool HasNoTypeInformation() {
|
| return is_uninitialized_;
|
| }
|
| - virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE {
|
| + virtual SmallMapList* GetReceiverTypes() OVERRIDE {
|
| return &receiver_types_;
|
| }
|
| - virtual KeyedAccessStoreMode GetStoreMode() V8_OVERRIDE {
|
| + virtual KeyedAccessStoreMode GetStoreMode() OVERRIDE {
|
| return store_mode_;
|
| }
|
| void set_is_uninitialized(bool b) { is_uninitialized_ = b; }
|
| @@ -2218,15 +2218,15 @@ class Assignment V8_FINAL : public Expression {
|
| };
|
|
|
|
|
| -class Yield V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| +class Yield FINAL : public Expression, public FeedbackSlotInterface {
|
| public:
|
| DECLARE_NODE_TYPE(Yield)
|
|
|
| enum Kind {
|
| - INITIAL, // The initial yield that returns the unboxed generator object.
|
| - SUSPEND, // A normal yield: { value: EXPRESSION, done: false }
|
| - DELEGATING, // A yield*.
|
| - FINAL // A return: { value: EXPRESSION, done: true }
|
| + kInitial, // The initial yield that returns the unboxed generator object.
|
| + kSuspend, // A normal yield: { value: EXPRESSION, done: false }
|
| + kDelegating, // A yield*.
|
| + kFinal // A return: { value: EXPRESSION, done: true }
|
| };
|
|
|
| Expression* generator_object() const { return generator_object_; }
|
| @@ -2237,17 +2237,17 @@ class Yield V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| // locates the catch handler in the handler table, and is equivalent to
|
| // TryCatchStatement::index().
|
| int index() const {
|
| - DCHECK(yield_kind() == DELEGATING);
|
| + DCHECK_EQ(kDelegating, yield_kind());
|
| return index_;
|
| }
|
| void set_index(int index) {
|
| - DCHECK(yield_kind() == DELEGATING);
|
| + DCHECK_EQ(kDelegating, yield_kind());
|
| index_ = index;
|
| }
|
|
|
| // Type feedback information.
|
| virtual int ComputeFeedbackSlotCount() {
|
| - return (FLAG_vector_ics && yield_kind() == DELEGATING) ? 3 : 0;
|
| + return (FLAG_vector_ics && yield_kind() == kDelegating) ? 3 : 0;
|
| }
|
| virtual void SetFirstFeedbackSlot(int slot) {
|
| yield_first_feedback_slot_ = slot;
|
| @@ -2287,7 +2287,7 @@ class Yield V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| };
|
|
|
|
|
| -class Throw V8_FINAL : public Expression {
|
| +class Throw FINAL : public Expression {
|
| public:
|
| DECLARE_NODE_TYPE(Throw)
|
|
|
| @@ -2302,7 +2302,7 @@ class Throw V8_FINAL : public Expression {
|
| };
|
|
|
|
|
| -class FunctionLiteral V8_FINAL : public Expression {
|
| +class FunctionLiteral FINAL : public Expression {
|
| public:
|
| enum FunctionType {
|
| ANONYMOUS_EXPRESSION,
|
| @@ -2497,7 +2497,7 @@ class FunctionLiteral V8_FINAL : public Expression {
|
| };
|
|
|
|
|
| -class NativeFunctionLiteral V8_FINAL : public Expression {
|
| +class NativeFunctionLiteral FINAL : public Expression {
|
| public:
|
| DECLARE_NODE_TYPE(NativeFunctionLiteral)
|
|
|
| @@ -2515,7 +2515,7 @@ class NativeFunctionLiteral V8_FINAL : public Expression {
|
| };
|
|
|
|
|
| -class ThisFunction V8_FINAL : public Expression {
|
| +class ThisFunction FINAL : public Expression {
|
| public:
|
| DECLARE_NODE_TYPE(ThisFunction)
|
|
|
| @@ -2525,7 +2525,7 @@ class ThisFunction V8_FINAL : public Expression {
|
| };
|
|
|
|
|
| -class SuperReference V8_FINAL : public Expression {
|
| +class SuperReference FINAL : public Expression {
|
| public:
|
| DECLARE_NODE_TYPE(SuperReference)
|
|
|
| @@ -2585,19 +2585,19 @@ class RegExpTree : public ZoneObject {
|
| };
|
|
|
|
|
| -class RegExpDisjunction V8_FINAL : public RegExpTree {
|
| +class RegExpDisjunction FINAL : public RegExpTree {
|
| public:
|
| explicit RegExpDisjunction(ZoneList<RegExpTree*>* alternatives);
|
| - virtual void* Accept(RegExpVisitor* visitor, void* data) V8_OVERRIDE;
|
| + virtual void* Accept(RegExpVisitor* visitor, void* data) OVERRIDE;
|
| virtual RegExpNode* ToNode(RegExpCompiler* compiler,
|
| - RegExpNode* on_success) V8_OVERRIDE;
|
| - virtual RegExpDisjunction* AsDisjunction() V8_OVERRIDE;
|
| - virtual Interval CaptureRegisters() V8_OVERRIDE;
|
| - virtual bool IsDisjunction() V8_OVERRIDE;
|
| - virtual bool IsAnchoredAtStart() V8_OVERRIDE;
|
| - virtual bool IsAnchoredAtEnd() V8_OVERRIDE;
|
| - virtual int min_match() V8_OVERRIDE { return min_match_; }
|
| - virtual int max_match() V8_OVERRIDE { return max_match_; }
|
| + RegExpNode* on_success) OVERRIDE;
|
| + virtual RegExpDisjunction* AsDisjunction() OVERRIDE;
|
| + virtual Interval CaptureRegisters() OVERRIDE;
|
| + virtual bool IsDisjunction() OVERRIDE;
|
| + virtual bool IsAnchoredAtStart() OVERRIDE;
|
| + virtual bool IsAnchoredAtEnd() OVERRIDE;
|
| + virtual int min_match() OVERRIDE { return min_match_; }
|
| + virtual int max_match() OVERRIDE { return max_match_; }
|
| ZoneList<RegExpTree*>* alternatives() { return alternatives_; }
|
| private:
|
| ZoneList<RegExpTree*>* alternatives_;
|
| @@ -2606,19 +2606,19 @@ class RegExpDisjunction V8_FINAL : public RegExpTree {
|
| };
|
|
|
|
|
| -class RegExpAlternative V8_FINAL : public RegExpTree {
|
| +class RegExpAlternative FINAL : public RegExpTree {
|
| public:
|
| explicit RegExpAlternative(ZoneList<RegExpTree*>* nodes);
|
| - virtual void* Accept(RegExpVisitor* visitor, void* data) V8_OVERRIDE;
|
| + virtual void* Accept(RegExpVisitor* visitor, void* data) OVERRIDE;
|
| virtual RegExpNode* ToNode(RegExpCompiler* compiler,
|
| - RegExpNode* on_success) V8_OVERRIDE;
|
| - virtual RegExpAlternative* AsAlternative() V8_OVERRIDE;
|
| - virtual Interval CaptureRegisters() V8_OVERRIDE;
|
| - virtual bool IsAlternative() V8_OVERRIDE;
|
| - virtual bool IsAnchoredAtStart() V8_OVERRIDE;
|
| - virtual bool IsAnchoredAtEnd() V8_OVERRIDE;
|
| - virtual int min_match() V8_OVERRIDE { return min_match_; }
|
| - virtual int max_match() V8_OVERRIDE { return max_match_; }
|
| + RegExpNode* on_success) OVERRIDE;
|
| + virtual RegExpAlternative* AsAlternative() OVERRIDE;
|
| + virtual Interval CaptureRegisters() OVERRIDE;
|
| + virtual bool IsAlternative() OVERRIDE;
|
| + virtual bool IsAnchoredAtStart() OVERRIDE;
|
| + virtual bool IsAnchoredAtEnd() OVERRIDE;
|
| + virtual int min_match() OVERRIDE { return min_match_; }
|
| + virtual int max_match() OVERRIDE { return max_match_; }
|
| ZoneList<RegExpTree*>* nodes() { return nodes_; }
|
| private:
|
| ZoneList<RegExpTree*>* nodes_;
|
| @@ -2627,7 +2627,7 @@ class RegExpAlternative V8_FINAL : public RegExpTree {
|
| };
|
|
|
|
|
| -class RegExpAssertion V8_FINAL : public RegExpTree {
|
| +class RegExpAssertion FINAL : public RegExpTree {
|
| public:
|
| enum AssertionType {
|
| START_OF_LINE,
|
| @@ -2638,22 +2638,22 @@ class RegExpAssertion V8_FINAL : public RegExpTree {
|
| NON_BOUNDARY
|
| };
|
| explicit RegExpAssertion(AssertionType type) : assertion_type_(type) { }
|
| - virtual void* Accept(RegExpVisitor* visitor, void* data) V8_OVERRIDE;
|
| + virtual void* Accept(RegExpVisitor* visitor, void* data) OVERRIDE;
|
| virtual RegExpNode* ToNode(RegExpCompiler* compiler,
|
| - RegExpNode* on_success) V8_OVERRIDE;
|
| - virtual RegExpAssertion* AsAssertion() V8_OVERRIDE;
|
| - virtual bool IsAssertion() V8_OVERRIDE;
|
| - virtual bool IsAnchoredAtStart() V8_OVERRIDE;
|
| - virtual bool IsAnchoredAtEnd() V8_OVERRIDE;
|
| - virtual int min_match() V8_OVERRIDE { return 0; }
|
| - virtual int max_match() V8_OVERRIDE { return 0; }
|
| + RegExpNode* on_success) OVERRIDE;
|
| + virtual RegExpAssertion* AsAssertion() OVERRIDE;
|
| + virtual bool IsAssertion() OVERRIDE;
|
| + virtual bool IsAnchoredAtStart() OVERRIDE;
|
| + virtual bool IsAnchoredAtEnd() OVERRIDE;
|
| + virtual int min_match() OVERRIDE { return 0; }
|
| + virtual int max_match() OVERRIDE { return 0; }
|
| AssertionType assertion_type() { return assertion_type_; }
|
| private:
|
| AssertionType assertion_type_;
|
| };
|
|
|
|
|
| -class CharacterSet V8_FINAL BASE_EMBEDDED {
|
| +class CharacterSet FINAL BASE_EMBEDDED {
|
| public:
|
| explicit CharacterSet(uc16 standard_set_type)
|
| : ranges_(NULL),
|
| @@ -2676,7 +2676,7 @@ class CharacterSet V8_FINAL BASE_EMBEDDED {
|
| };
|
|
|
|
|
| -class RegExpCharacterClass V8_FINAL : public RegExpTree {
|
| +class RegExpCharacterClass FINAL : public RegExpTree {
|
| public:
|
| RegExpCharacterClass(ZoneList<CharacterRange>* ranges, bool is_negated)
|
| : set_(ranges),
|
| @@ -2684,15 +2684,15 @@ class RegExpCharacterClass V8_FINAL : public RegExpTree {
|
| explicit RegExpCharacterClass(uc16 type)
|
| : set_(type),
|
| is_negated_(false) { }
|
| - virtual void* Accept(RegExpVisitor* visitor, void* data) V8_OVERRIDE;
|
| + virtual void* Accept(RegExpVisitor* visitor, void* data) OVERRIDE;
|
| virtual RegExpNode* ToNode(RegExpCompiler* compiler,
|
| - RegExpNode* on_success) V8_OVERRIDE;
|
| - virtual RegExpCharacterClass* AsCharacterClass() V8_OVERRIDE;
|
| - virtual bool IsCharacterClass() V8_OVERRIDE;
|
| - virtual bool IsTextElement() V8_OVERRIDE { return true; }
|
| - virtual int min_match() V8_OVERRIDE { return 1; }
|
| - virtual int max_match() V8_OVERRIDE { return 1; }
|
| - virtual void AppendToText(RegExpText* text, Zone* zone) V8_OVERRIDE;
|
| + RegExpNode* on_success) OVERRIDE;
|
| + virtual RegExpCharacterClass* AsCharacterClass() OVERRIDE;
|
| + virtual bool IsCharacterClass() OVERRIDE;
|
| + virtual bool IsTextElement() OVERRIDE { return true; }
|
| + virtual int min_match() OVERRIDE { return 1; }
|
| + virtual int max_match() OVERRIDE { return 1; }
|
| + virtual void AppendToText(RegExpText* text, Zone* zone) OVERRIDE;
|
| CharacterSet character_set() { return set_; }
|
| // TODO(lrn): Remove need for complex version if is_standard that
|
| // recognizes a mangled standard set and just do { return set_.is_special(); }
|
| @@ -2718,18 +2718,18 @@ class RegExpCharacterClass V8_FINAL : public RegExpTree {
|
| };
|
|
|
|
|
| -class RegExpAtom V8_FINAL : public RegExpTree {
|
| +class RegExpAtom FINAL : public RegExpTree {
|
| public:
|
| explicit RegExpAtom(Vector<const uc16> data) : data_(data) { }
|
| - virtual void* Accept(RegExpVisitor* visitor, void* data) V8_OVERRIDE;
|
| + virtual void* Accept(RegExpVisitor* visitor, void* data) OVERRIDE;
|
| virtual RegExpNode* ToNode(RegExpCompiler* compiler,
|
| - RegExpNode* on_success) V8_OVERRIDE;
|
| - virtual RegExpAtom* AsAtom() V8_OVERRIDE;
|
| - virtual bool IsAtom() V8_OVERRIDE;
|
| - virtual bool IsTextElement() V8_OVERRIDE { return true; }
|
| - virtual int min_match() V8_OVERRIDE { return data_.length(); }
|
| - virtual int max_match() V8_OVERRIDE { return data_.length(); }
|
| - virtual void AppendToText(RegExpText* text, Zone* zone) V8_OVERRIDE;
|
| + RegExpNode* on_success) OVERRIDE;
|
| + virtual RegExpAtom* AsAtom() OVERRIDE;
|
| + virtual bool IsAtom() OVERRIDE;
|
| + virtual bool IsTextElement() OVERRIDE { return true; }
|
| + virtual int min_match() OVERRIDE { return data_.length(); }
|
| + virtual int max_match() OVERRIDE { return data_.length(); }
|
| + virtual void AppendToText(RegExpText* text, Zone* zone) OVERRIDE;
|
| Vector<const uc16> data() { return data_; }
|
| int length() { return data_.length(); }
|
| private:
|
| @@ -2737,18 +2737,18 @@ class RegExpAtom V8_FINAL : public RegExpTree {
|
| };
|
|
|
|
|
| -class RegExpText V8_FINAL : public RegExpTree {
|
| +class RegExpText FINAL : public RegExpTree {
|
| public:
|
| explicit RegExpText(Zone* zone) : elements_(2, zone), length_(0) {}
|
| - virtual void* Accept(RegExpVisitor* visitor, void* data) V8_OVERRIDE;
|
| + virtual void* Accept(RegExpVisitor* visitor, void* data) OVERRIDE;
|
| virtual RegExpNode* ToNode(RegExpCompiler* compiler,
|
| - RegExpNode* on_success) V8_OVERRIDE;
|
| - virtual RegExpText* AsText() V8_OVERRIDE;
|
| - virtual bool IsText() V8_OVERRIDE;
|
| - virtual bool IsTextElement() V8_OVERRIDE { return true; }
|
| - virtual int min_match() V8_OVERRIDE { return length_; }
|
| - virtual int max_match() V8_OVERRIDE { return length_; }
|
| - virtual void AppendToText(RegExpText* text, Zone* zone) V8_OVERRIDE;
|
| + RegExpNode* on_success) OVERRIDE;
|
| + virtual RegExpText* AsText() OVERRIDE;
|
| + virtual bool IsText() OVERRIDE;
|
| + virtual bool IsTextElement() OVERRIDE { return true; }
|
| + virtual int min_match() OVERRIDE { return length_; }
|
| + virtual int max_match() OVERRIDE { return length_; }
|
| + virtual void AppendToText(RegExpText* text, Zone* zone) OVERRIDE;
|
| void AddElement(TextElement elm, Zone* zone) {
|
| elements_.Add(elm, zone);
|
| length_ += elm.length();
|
| @@ -2760,7 +2760,7 @@ class RegExpText V8_FINAL : public RegExpTree {
|
| };
|
|
|
|
|
| -class RegExpQuantifier V8_FINAL : public RegExpTree {
|
| +class RegExpQuantifier FINAL : public RegExpTree {
|
| public:
|
| enum QuantifierType { GREEDY, NON_GREEDY, POSSESSIVE };
|
| RegExpQuantifier(int min, int max, QuantifierType type, RegExpTree* body)
|
| @@ -2775,9 +2775,9 @@ class RegExpQuantifier V8_FINAL : public RegExpTree {
|
| max_match_ = max * body->max_match();
|
| }
|
| }
|
| - virtual void* Accept(RegExpVisitor* visitor, void* data) V8_OVERRIDE;
|
| + virtual void* Accept(RegExpVisitor* visitor, void* data) OVERRIDE;
|
| virtual RegExpNode* ToNode(RegExpCompiler* compiler,
|
| - RegExpNode* on_success) V8_OVERRIDE;
|
| + RegExpNode* on_success) OVERRIDE;
|
| static RegExpNode* ToNode(int min,
|
| int max,
|
| bool is_greedy,
|
| @@ -2785,11 +2785,11 @@ class RegExpQuantifier V8_FINAL : public RegExpTree {
|
| RegExpCompiler* compiler,
|
| RegExpNode* on_success,
|
| bool not_at_start = false);
|
| - virtual RegExpQuantifier* AsQuantifier() V8_OVERRIDE;
|
| - virtual Interval CaptureRegisters() V8_OVERRIDE;
|
| - virtual bool IsQuantifier() V8_OVERRIDE;
|
| - virtual int min_match() V8_OVERRIDE { return min_match_; }
|
| - virtual int max_match() V8_OVERRIDE { return max_match_; }
|
| + virtual RegExpQuantifier* AsQuantifier() OVERRIDE;
|
| + virtual Interval CaptureRegisters() OVERRIDE;
|
| + virtual bool IsQuantifier() OVERRIDE;
|
| + virtual int min_match() OVERRIDE { return min_match_; }
|
| + virtual int max_match() OVERRIDE { return max_match_; }
|
| int min() { return min_; }
|
| int max() { return max_; }
|
| bool is_possessive() { return quantifier_type_ == POSSESSIVE; }
|
| @@ -2807,24 +2807,24 @@ class RegExpQuantifier V8_FINAL : public RegExpTree {
|
| };
|
|
|
|
|
| -class RegExpCapture V8_FINAL : public RegExpTree {
|
| +class RegExpCapture FINAL : public RegExpTree {
|
| public:
|
| explicit RegExpCapture(RegExpTree* body, int index)
|
| : body_(body), index_(index) { }
|
| - virtual void* Accept(RegExpVisitor* visitor, void* data) V8_OVERRIDE;
|
| + virtual void* Accept(RegExpVisitor* visitor, void* data) OVERRIDE;
|
| virtual RegExpNode* ToNode(RegExpCompiler* compiler,
|
| - RegExpNode* on_success) V8_OVERRIDE;
|
| + RegExpNode* on_success) OVERRIDE;
|
| static RegExpNode* ToNode(RegExpTree* body,
|
| int index,
|
| RegExpCompiler* compiler,
|
| RegExpNode* on_success);
|
| - virtual RegExpCapture* AsCapture() V8_OVERRIDE;
|
| - virtual bool IsAnchoredAtStart() V8_OVERRIDE;
|
| - virtual bool IsAnchoredAtEnd() V8_OVERRIDE;
|
| - virtual Interval CaptureRegisters() V8_OVERRIDE;
|
| - virtual bool IsCapture() V8_OVERRIDE;
|
| - virtual int min_match() V8_OVERRIDE { return body_->min_match(); }
|
| - virtual int max_match() V8_OVERRIDE { return body_->max_match(); }
|
| + virtual RegExpCapture* AsCapture() OVERRIDE;
|
| + virtual bool IsAnchoredAtStart() OVERRIDE;
|
| + virtual bool IsAnchoredAtEnd() OVERRIDE;
|
| + virtual Interval CaptureRegisters() OVERRIDE;
|
| + virtual bool IsCapture() OVERRIDE;
|
| + virtual int min_match() OVERRIDE { return body_->min_match(); }
|
| + virtual int max_match() OVERRIDE { return body_->max_match(); }
|
| RegExpTree* body() { return body_; }
|
| int index() { return index_; }
|
| static int StartRegister(int index) { return index * 2; }
|
| @@ -2836,7 +2836,7 @@ class RegExpCapture V8_FINAL : public RegExpTree {
|
| };
|
|
|
|
|
| -class RegExpLookahead V8_FINAL : public RegExpTree {
|
| +class RegExpLookahead FINAL : public RegExpTree {
|
| public:
|
| RegExpLookahead(RegExpTree* body,
|
| bool is_positive,
|
| @@ -2847,15 +2847,15 @@ class RegExpLookahead V8_FINAL : public RegExpTree {
|
| capture_count_(capture_count),
|
| capture_from_(capture_from) { }
|
|
|
| - virtual void* Accept(RegExpVisitor* visitor, void* data) V8_OVERRIDE;
|
| + virtual void* Accept(RegExpVisitor* visitor, void* data) OVERRIDE;
|
| virtual RegExpNode* ToNode(RegExpCompiler* compiler,
|
| - RegExpNode* on_success) V8_OVERRIDE;
|
| - virtual RegExpLookahead* AsLookahead() V8_OVERRIDE;
|
| - virtual Interval CaptureRegisters() V8_OVERRIDE;
|
| - virtual bool IsLookahead() V8_OVERRIDE;
|
| - virtual bool IsAnchoredAtStart() V8_OVERRIDE;
|
| - virtual int min_match() V8_OVERRIDE { return 0; }
|
| - virtual int max_match() V8_OVERRIDE { return 0; }
|
| + RegExpNode* on_success) OVERRIDE;
|
| + virtual RegExpLookahead* AsLookahead() OVERRIDE;
|
| + virtual Interval CaptureRegisters() OVERRIDE;
|
| + virtual bool IsLookahead() OVERRIDE;
|
| + virtual bool IsAnchoredAtStart() OVERRIDE;
|
| + virtual int min_match() OVERRIDE { return 0; }
|
| + virtual int max_match() OVERRIDE { return 0; }
|
| RegExpTree* body() { return body_; }
|
| bool is_positive() { return is_positive_; }
|
| int capture_count() { return capture_count_; }
|
| @@ -2869,17 +2869,17 @@ class RegExpLookahead V8_FINAL : public RegExpTree {
|
| };
|
|
|
|
|
| -class RegExpBackReference V8_FINAL : public RegExpTree {
|
| +class RegExpBackReference FINAL : public RegExpTree {
|
| public:
|
| explicit RegExpBackReference(RegExpCapture* capture)
|
| : capture_(capture) { }
|
| - virtual void* Accept(RegExpVisitor* visitor, void* data) V8_OVERRIDE;
|
| + virtual void* Accept(RegExpVisitor* visitor, void* data) OVERRIDE;
|
| virtual RegExpNode* ToNode(RegExpCompiler* compiler,
|
| - RegExpNode* on_success) V8_OVERRIDE;
|
| - virtual RegExpBackReference* AsBackReference() V8_OVERRIDE;
|
| - virtual bool IsBackReference() V8_OVERRIDE;
|
| - virtual int min_match() V8_OVERRIDE { return 0; }
|
| - virtual int max_match() V8_OVERRIDE { return capture_->max_match(); }
|
| + RegExpNode* on_success) OVERRIDE;
|
| + virtual RegExpBackReference* AsBackReference() OVERRIDE;
|
| + virtual bool IsBackReference() OVERRIDE;
|
| + virtual int min_match() OVERRIDE { return 0; }
|
| + virtual int max_match() OVERRIDE { return capture_->max_match(); }
|
| int index() { return capture_->index(); }
|
| RegExpCapture* capture() { return capture_; }
|
| private:
|
| @@ -2887,16 +2887,16 @@ class RegExpBackReference V8_FINAL : public RegExpTree {
|
| };
|
|
|
|
|
| -class RegExpEmpty V8_FINAL : public RegExpTree {
|
| +class RegExpEmpty FINAL : public RegExpTree {
|
| public:
|
| RegExpEmpty() { }
|
| - virtual void* Accept(RegExpVisitor* visitor, void* data) V8_OVERRIDE;
|
| + virtual void* Accept(RegExpVisitor* visitor, void* data) OVERRIDE;
|
| virtual RegExpNode* ToNode(RegExpCompiler* compiler,
|
| - RegExpNode* on_success) V8_OVERRIDE;
|
| - virtual RegExpEmpty* AsEmpty() V8_OVERRIDE;
|
| - virtual bool IsEmpty() V8_OVERRIDE;
|
| - virtual int min_match() V8_OVERRIDE { return 0; }
|
| - virtual int max_match() V8_OVERRIDE { return 0; }
|
| + RegExpNode* on_success) OVERRIDE;
|
| + virtual RegExpEmpty* AsEmpty() OVERRIDE;
|
| + virtual bool IsEmpty() OVERRIDE;
|
| + virtual int min_match() OVERRIDE { return 0; }
|
| + virtual int max_match() OVERRIDE { return 0; }
|
| static RegExpEmpty* GetInstance() {
|
| static RegExpEmpty* instance = ::new RegExpEmpty();
|
| return instance;
|
| @@ -2940,7 +2940,7 @@ class AstVisitor BASE_EMBEDDED {
|
|
|
| #define DEFINE_AST_VISITOR_SUBCLASS_MEMBERS() \
|
| public: \
|
| - virtual void Visit(AstNode* node) V8_FINAL V8_OVERRIDE { \
|
| + virtual void Visit(AstNode* node) FINAL OVERRIDE { \
|
| if (!CheckStackOverflow()) node->Accept(this); \
|
| } \
|
| \
|
| @@ -3020,7 +3020,7 @@ class AstNullVisitor BASE_EMBEDDED {
|
| // AstNode factory
|
|
|
| template<class Visitor>
|
| -class AstNodeFactory V8_FINAL BASE_EMBEDDED {
|
| +class AstNodeFactory FINAL BASE_EMBEDDED {
|
| public:
|
| AstNodeFactory(Zone* zone, AstValueFactory* ast_value_factory,
|
| AstNode::IdGen* id_gen)
|
|
|