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 1884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1895 | 1895 |
1896 TailCallMode tail_call_mode() const { | 1896 TailCallMode tail_call_mode() const { |
1897 return IsTailField::decode(bit_field_) ? TailCallMode::kAllow | 1897 return IsTailField::decode(bit_field_) ? TailCallMode::kAllow |
1898 : TailCallMode::kDisallow; | 1898 : TailCallMode::kDisallow; |
1899 } | 1899 } |
1900 void MarkTail() { bit_field_ = IsTailField::update(bit_field_, true); } | 1900 void MarkTail() { bit_field_ = IsTailField::update(bit_field_, true); } |
1901 | 1901 |
1902 enum CallType { | 1902 enum CallType { |
1903 POSSIBLY_EVAL_CALL, | 1903 POSSIBLY_EVAL_CALL, |
1904 GLOBAL_CALL, | 1904 GLOBAL_CALL, |
1905 LOOKUP_SLOT_CALL, | 1905 WITH_CALL, |
1906 NAMED_PROPERTY_CALL, | 1906 NAMED_PROPERTY_CALL, |
1907 KEYED_PROPERTY_CALL, | 1907 KEYED_PROPERTY_CALL, |
1908 NAMED_SUPER_PROPERTY_CALL, | 1908 NAMED_SUPER_PROPERTY_CALL, |
1909 KEYED_SUPER_PROPERTY_CALL, | 1909 KEYED_SUPER_PROPERTY_CALL, |
1910 SUPER_CALL, | 1910 SUPER_CALL, |
1911 OTHER_CALL | 1911 OTHER_CALL |
1912 }; | 1912 }; |
1913 | 1913 |
1914 enum PossiblyEval { | 1914 enum PossiblyEval { |
1915 IS_POSSIBLY_EVAL, | 1915 IS_POSSIBLY_EVAL, |
(...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3603 : NULL; \ | 3603 : NULL; \ |
3604 } | 3604 } |
3605 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) | 3605 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) |
3606 #undef DECLARE_NODE_FUNCTIONS | 3606 #undef DECLARE_NODE_FUNCTIONS |
3607 | 3607 |
3608 | 3608 |
3609 } // namespace internal | 3609 } // namespace internal |
3610 } // namespace v8 | 3610 } // namespace v8 |
3611 | 3611 |
3612 #endif // V8_AST_AST_H_ | 3612 #endif // V8_AST_AST_H_ |
OLD | NEW |