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_H_ | 5 #ifndef V8_AST_H_ |
6 #define V8_AST_H_ | 6 #define V8_AST_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/ast-value-factory.h" | 9 #include "src/ast-value-factory.h" |
10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
(...skipping 2628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2639 int parameter_count_; | 2639 int parameter_count_; |
2640 int function_token_position_; | 2640 int function_token_position_; |
2641 | 2641 |
2642 unsigned bitfield_; | 2642 unsigned bitfield_; |
2643 class IsExpression : public BitField<bool, 0, 1> {}; | 2643 class IsExpression : public BitField<bool, 0, 1> {}; |
2644 class IsAnonymous : public BitField<bool, 1, 1> {}; | 2644 class IsAnonymous : public BitField<bool, 1, 1> {}; |
2645 class Pretenure : public BitField<bool, 2, 1> {}; | 2645 class Pretenure : public BitField<bool, 2, 1> {}; |
2646 class HasDuplicateParameters : public BitField<ParameterFlag, 3, 1> {}; | 2646 class HasDuplicateParameters : public BitField<ParameterFlag, 3, 1> {}; |
2647 class IsFunction : public BitField<IsFunctionFlag, 4, 1> {}; | 2647 class IsFunction : public BitField<IsFunctionFlag, 4, 1> {}; |
2648 class EagerCompileHintBit : public BitField<EagerCompileHint, 5, 1> {}; | 2648 class EagerCompileHintBit : public BitField<EagerCompileHint, 5, 1> {}; |
2649 class FunctionKindBits : public BitField<FunctionKind, 6, 8> {}; | 2649 class FunctionKindBits : public BitField<FunctionKind, 6, 9> {}; |
2650 class ShouldBeUsedOnceHintBit : public BitField<ShouldBeUsedOnceHint, 15, 1> { | 2650 class ShouldBeUsedOnceHintBit : public BitField<ShouldBeUsedOnceHint, 16, 1> { |
2651 }; | 2651 }; |
2652 }; | 2652 }; |
2653 | 2653 |
2654 | 2654 |
2655 class ClassLiteral final : public Expression { | 2655 class ClassLiteral final : public Expression { |
2656 public: | 2656 public: |
2657 typedef ObjectLiteralProperty Property; | 2657 typedef ObjectLiteralProperty Property; |
2658 | 2658 |
2659 DECLARE_NODE_TYPE(ClassLiteral) | 2659 DECLARE_NODE_TYPE(ClassLiteral) |
2660 | 2660 |
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3667 // the parser-level zone. | 3667 // the parser-level zone. |
3668 Zone* parser_zone_; | 3668 Zone* parser_zone_; |
3669 AstValueFactory* ast_value_factory_; | 3669 AstValueFactory* ast_value_factory_; |
3670 }; | 3670 }; |
3671 | 3671 |
3672 | 3672 |
3673 } // namespace internal | 3673 } // namespace internal |
3674 } // namespace v8 | 3674 } // namespace v8 |
3675 | 3675 |
3676 #endif // V8_AST_H_ | 3676 #endif // V8_AST_H_ |
OLD | NEW |