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 1883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1894 } | 1894 } |
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 POSSIBLY_EVAL_THROUGH_WITH_CALL, |
1904 GLOBAL_CALL, | 1905 GLOBAL_CALL, |
1905 WITH_CALL, | 1906 WITH_CALL, |
1906 NAMED_PROPERTY_CALL, | 1907 NAMED_PROPERTY_CALL, |
1907 KEYED_PROPERTY_CALL, | 1908 KEYED_PROPERTY_CALL, |
1908 NAMED_SUPER_PROPERTY_CALL, | 1909 NAMED_SUPER_PROPERTY_CALL, |
1909 KEYED_SUPER_PROPERTY_CALL, | 1910 KEYED_SUPER_PROPERTY_CALL, |
1910 SUPER_CALL, | 1911 SUPER_CALL, |
1911 OTHER_CALL | 1912 OTHER_CALL |
1912 }; | 1913 }; |
1913 | 1914 |
(...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3596 : NULL; \ | 3597 : NULL; \ |
3597 } | 3598 } |
3598 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) | 3599 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) |
3599 #undef DECLARE_NODE_FUNCTIONS | 3600 #undef DECLARE_NODE_FUNCTIONS |
3600 | 3601 |
3601 | 3602 |
3602 } // namespace internal | 3603 } // namespace internal |
3603 } // namespace v8 | 3604 } // namespace v8 |
3604 | 3605 |
3605 #endif // V8_AST_AST_H_ | 3606 #endif // V8_AST_AST_H_ |
OLD | NEW |