OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_AST_AST_H_ | 5 #ifndef V8_AST_AST_H_ |
6 #define V8_AST_AST_H_ | 6 #define V8_AST_AST_H_ |
7 | 7 |
8 #include "src/ast/ast-types.h" | 8 #include "src/ast/ast-types.h" |
9 #include "src/ast/ast-value-factory.h" | 9 #include "src/ast/ast-value-factory.h" |
10 #include "src/ast/modules.h" | 10 #include "src/ast/modules.h" |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 } | 749 } |
750 | 750 |
751 static int num_ids() { return parent_num_ids() + 7; } | 751 static int num_ids() { return parent_num_ids() + 7; } |
752 BailoutId BodyId() const { return BailoutId(local_id(0)); } | 752 BailoutId BodyId() const { return BailoutId(local_id(0)); } |
753 BailoutId EnumId() const { return BailoutId(local_id(1)); } | 753 BailoutId EnumId() const { return BailoutId(local_id(1)); } |
754 BailoutId ToObjectId() const { return BailoutId(local_id(2)); } | 754 BailoutId ToObjectId() const { return BailoutId(local_id(2)); } |
755 BailoutId PrepareId() const { return BailoutId(local_id(3)); } | 755 BailoutId PrepareId() const { return BailoutId(local_id(3)); } |
756 BailoutId FilterId() const { return BailoutId(local_id(4)); } | 756 BailoutId FilterId() const { return BailoutId(local_id(4)); } |
757 BailoutId AssignmentId() const { return BailoutId(local_id(5)); } | 757 BailoutId AssignmentId() const { return BailoutId(local_id(5)); } |
758 BailoutId IncrementId() const { return BailoutId(local_id(6)); } | 758 BailoutId IncrementId() const { return BailoutId(local_id(6)); } |
759 BailoutId ContinueId() const { return EntryId(); } | |
760 BailoutId StackCheckId() const { return BodyId(); } | 759 BailoutId StackCheckId() const { return BodyId(); } |
761 | 760 |
762 private: | 761 private: |
763 friend class AstNodeFactory; | 762 friend class AstNodeFactory; |
764 | 763 |
765 ForInStatement(ZoneList<const AstRawString*>* labels, int pos) | 764 ForInStatement(ZoneList<const AstRawString*>* labels, int pos) |
766 : ForEachStatement(labels, pos, kForInStatement), | 765 : ForEachStatement(labels, pos, kForInStatement), |
767 each_(nullptr), | 766 each_(nullptr), |
768 subject_(nullptr) { | 767 subject_(nullptr) { |
769 bit_field_ = ForInTypeField::update(bit_field_, SLOW_FOR_IN); | 768 bit_field_ = ForInTypeField::update(bit_field_, SLOW_FOR_IN); |
(...skipping 2827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3597 : NULL; \ | 3596 : NULL; \ |
3598 } | 3597 } |
3599 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) | 3598 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) |
3600 #undef DECLARE_NODE_FUNCTIONS | 3599 #undef DECLARE_NODE_FUNCTIONS |
3601 | 3600 |
3602 | 3601 |
3603 } // namespace internal | 3602 } // namespace internal |
3604 } // namespace v8 | 3603 } // namespace v8 |
3605 | 3604 |
3606 #endif // V8_AST_AST_H_ | 3605 #endif // V8_AST_AST_H_ |
OLD | NEW |