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/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/assembler.h" | 10 #include "src/assembler.h" |
(...skipping 2601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2612 int parameter_count_; | 2612 int parameter_count_; |
2613 int function_token_position_; | 2613 int function_token_position_; |
2614 | 2614 |
2615 unsigned bitfield_; | 2615 unsigned bitfield_; |
2616 class IsExpression : public BitField<bool, 0, 1> {}; | 2616 class IsExpression : public BitField<bool, 0, 1> {}; |
2617 class IsAnonymous : public BitField<bool, 1, 1> {}; | 2617 class IsAnonymous : public BitField<bool, 1, 1> {}; |
2618 class Pretenure : public BitField<bool, 2, 1> {}; | 2618 class Pretenure : public BitField<bool, 2, 1> {}; |
2619 class HasDuplicateParameters : public BitField<ParameterFlag, 3, 1> {}; | 2619 class HasDuplicateParameters : public BitField<ParameterFlag, 3, 1> {}; |
2620 class IsFunction : public BitField<IsFunctionFlag, 4, 1> {}; | 2620 class IsFunction : public BitField<IsFunctionFlag, 4, 1> {}; |
2621 class IsParenthesized : public BitField<IsParenthesizedFlag, 5, 1> {}; | 2621 class IsParenthesized : public BitField<IsParenthesizedFlag, 5, 1> {}; |
2622 class FunctionKindBits : public BitField<FunctionKind, 6, 4> {}; | 2622 class FunctionKindBits : public BitField<FunctionKind, 6, 5> {}; |
2623 }; | 2623 }; |
2624 | 2624 |
2625 | 2625 |
2626 class ClassLiteral FINAL : public Expression { | 2626 class ClassLiteral FINAL : public Expression { |
2627 public: | 2627 public: |
2628 typedef ObjectLiteralProperty Property; | 2628 typedef ObjectLiteralProperty Property; |
2629 | 2629 |
2630 DECLARE_NODE_TYPE(ClassLiteral) | 2630 DECLARE_NODE_TYPE(ClassLiteral) |
2631 | 2631 |
2632 Handle<String> name() const { return raw_name_->string(); } | 2632 Handle<String> name() const { return raw_name_->string(); } |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3533 | 3533 |
3534 private: | 3534 private: |
3535 Zone* zone_; | 3535 Zone* zone_; |
3536 AstValueFactory* ast_value_factory_; | 3536 AstValueFactory* ast_value_factory_; |
3537 }; | 3537 }; |
3538 | 3538 |
3539 | 3539 |
3540 } } // namespace v8::internal | 3540 } } // namespace v8::internal |
3541 | 3541 |
3542 #endif // V8_AST_H_ | 3542 #endif // V8_AST_H_ |
OLD | NEW |