Changeset 223232 in webkit for trunk/Source/JavaScriptCore/parser/Nodes.h
- Timestamp:
- Oct 11, 2017, 11:45:23 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Nodes.h
r223047 r223232 187 187 virtual bool isSuperNode() const { return false; } 188 188 virtual bool isImportNode() const { return false; } 189 virtual bool isMetaProperty() const { return false; } 189 190 virtual bool isNewTarget() const { return false; } 191 virtual bool isImportMeta() const { return false; } 190 192 virtual bool isBytecodeIntrinsicNode() const { return false; } 191 193 … … 585 587 }; 586 588 587 class NewTargetNode final : public ExpressionNode { 589 class MetaPropertyNode : public ExpressionNode { 590 public: 591 MetaPropertyNode(const JSTokenLocation&); 592 593 private: 594 bool isMetaProperty() const final { return true; } 595 }; 596 597 class NewTargetNode final : public MetaPropertyNode { 588 598 public: 589 599 NewTargetNode(const JSTokenLocation&); … … 592 602 bool isNewTarget() const final { return true; } 593 603 RegisterID* emitBytecode(BytecodeGenerator&, RegisterID* = 0) override; 604 }; 605 606 class ImportMetaNode final : public MetaPropertyNode { 607 public: 608 ImportMetaNode(const JSTokenLocation&, ExpressionNode*); 609 610 private: 611 bool isImportMeta() const final { return true; } 612 RegisterID* emitBytecode(BytecodeGenerator&, RegisterID* = 0) override; 613 614 ExpressionNode* m_expr; 594 615 }; 595 616
Note:
See TracChangeset
for help on using the changeset viewer.