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 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1862 | 1862 |
1863 void SetKnownGlobalTarget(Handle<JSFunction> target) { | 1863 void SetKnownGlobalTarget(Handle<JSFunction> target) { |
1864 target_ = target; | 1864 target_ = target; |
1865 set_is_uninitialized(false); | 1865 set_is_uninitialized(false); |
1866 } | 1866 } |
1867 void set_target(Handle<JSFunction> target) { target_ = target; } | 1867 void set_target(Handle<JSFunction> target) { target_ = target; } |
1868 void set_allocation_site(Handle<AllocationSite> site) { | 1868 void set_allocation_site(Handle<AllocationSite> site) { |
1869 allocation_site_ = site; | 1869 allocation_site_ = site; |
1870 } | 1870 } |
1871 | 1871 |
1872 static int num_ids() { return parent_num_ids() + 2; } | 1872 static int num_ids() { return parent_num_ids() + 3; } |
1873 BailoutId ReturnId() const { return BailoutId(local_id(0)); } | 1873 BailoutId ReturnId() const { return BailoutId(local_id(0)); } |
1874 BailoutId EvalOrLookupId() const { return BailoutId(local_id(1)); } | 1874 BailoutId EvalId() const { return BailoutId(local_id(1)); } |
| 1875 BailoutId LookupId() const { return BailoutId(local_id(2)); } |
1875 | 1876 |
1876 bool is_uninitialized() const { | 1877 bool is_uninitialized() const { |
1877 return IsUninitializedField::decode(bit_field_); | 1878 return IsUninitializedField::decode(bit_field_); |
1878 } | 1879 } |
1879 void set_is_uninitialized(bool b) { | 1880 void set_is_uninitialized(bool b) { |
1880 bit_field_ = IsUninitializedField::update(bit_field_, b); | 1881 bit_field_ = IsUninitializedField::update(bit_field_, b); |
1881 } | 1882 } |
1882 | 1883 |
1883 enum CallType { | 1884 enum CallType { |
1884 POSSIBLY_EVAL_CALL, | 1885 POSSIBLY_EVAL_CALL, |
(...skipping 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3598 | 3599 |
3599 private: | 3600 private: |
3600 Zone* zone_; | 3601 Zone* zone_; |
3601 AstValueFactory* ast_value_factory_; | 3602 AstValueFactory* ast_value_factory_; |
3602 }; | 3603 }; |
3603 | 3604 |
3604 | 3605 |
3605 } } // namespace v8::internal | 3606 } } // namespace v8::internal |
3606 | 3607 |
3607 #endif // V8_AST_H_ | 3608 #endif // V8_AST_H_ |
OLD | NEW |