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 1878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1889 | 1889 |
1890 void SetKnownGlobalTarget(Handle<JSFunction> target) { | 1890 void SetKnownGlobalTarget(Handle<JSFunction> target) { |
1891 target_ = target; | 1891 target_ = target; |
1892 set_is_uninitialized(false); | 1892 set_is_uninitialized(false); |
1893 } | 1893 } |
1894 void set_target(Handle<JSFunction> target) { target_ = target; } | 1894 void set_target(Handle<JSFunction> target) { target_ = target; } |
1895 void set_allocation_site(Handle<AllocationSite> site) { | 1895 void set_allocation_site(Handle<AllocationSite> site) { |
1896 allocation_site_ = site; | 1896 allocation_site_ = site; |
1897 } | 1897 } |
1898 | 1898 |
1899 static int num_ids() { return parent_num_ids() + 3; } | 1899 static int num_ids() { return parent_num_ids() + 4; } |
1900 BailoutId ReturnId() const { return BailoutId(local_id(0)); } | 1900 BailoutId ReturnId() const { return BailoutId(local_id(0)); } |
1901 BailoutId EvalId() const { return BailoutId(local_id(1)); } | 1901 BailoutId EvalId() const { return BailoutId(local_id(1)); } |
1902 BailoutId LookupId() const { return BailoutId(local_id(2)); } | 1902 BailoutId LookupId() const { return BailoutId(local_id(2)); } |
| 1903 BailoutId CallId() const { return BailoutId(local_id(3)); } |
1903 | 1904 |
1904 bool is_uninitialized() const { | 1905 bool is_uninitialized() const { |
1905 return IsUninitializedField::decode(bit_field_); | 1906 return IsUninitializedField::decode(bit_field_); |
1906 } | 1907 } |
1907 void set_is_uninitialized(bool b) { | 1908 void set_is_uninitialized(bool b) { |
1908 bit_field_ = IsUninitializedField::update(bit_field_, b); | 1909 bit_field_ = IsUninitializedField::update(bit_field_, b); |
1909 } | 1910 } |
1910 | 1911 |
1911 enum CallType { | 1912 enum CallType { |
1912 POSSIBLY_EVAL_CALL, | 1913 POSSIBLY_EVAL_CALL, |
(...skipping 1757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3670 // the parser-level zone. | 3671 // the parser-level zone. |
3671 Zone* parser_zone_; | 3672 Zone* parser_zone_; |
3672 AstValueFactory* ast_value_factory_; | 3673 AstValueFactory* ast_value_factory_; |
3673 }; | 3674 }; |
3674 | 3675 |
3675 | 3676 |
3676 } // namespace internal | 3677 } // namespace internal |
3677 } // namespace v8 | 3678 } // namespace v8 |
3678 | 3679 |
3679 #endif // V8_AST_H_ | 3680 #endif // V8_AST_H_ |
OLD | NEW |