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() + 3; } | 1872 static int num_ids() { return parent_num_ids() + 2; } |
1873 BailoutId ReturnId() const { return BailoutId(local_id(0)); } | 1873 BailoutId ReturnId() const { return BailoutId(local_id(0)); } |
1874 BailoutId EvalId() const { return BailoutId(local_id(1)); } | 1874 BailoutId EvalOrLookupId() const { return BailoutId(local_id(1)); } |
1875 BailoutId LookupId() const { return BailoutId(local_id(2)); } | |
1876 | 1875 |
1877 bool is_uninitialized() const { | 1876 bool is_uninitialized() const { |
1878 return IsUninitializedField::decode(bit_field_); | 1877 return IsUninitializedField::decode(bit_field_); |
1879 } | 1878 } |
1880 void set_is_uninitialized(bool b) { | 1879 void set_is_uninitialized(bool b) { |
1881 bit_field_ = IsUninitializedField::update(bit_field_, b); | 1880 bit_field_ = IsUninitializedField::update(bit_field_, b); |
1882 } | 1881 } |
1883 | 1882 |
1884 enum CallType { | 1883 enum CallType { |
1885 POSSIBLY_EVAL_CALL, | 1884 POSSIBLY_EVAL_CALL, |
(...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3605 | 3604 |
3606 private: | 3605 private: |
3607 Zone* zone_; | 3606 Zone* zone_; |
3608 AstValueFactory* ast_value_factory_; | 3607 AstValueFactory* ast_value_factory_; |
3609 }; | 3608 }; |
3610 | 3609 |
3611 | 3610 |
3612 } } // namespace v8::internal | 3611 } } // namespace v8::internal |
3613 | 3612 |
3614 #endif // V8_AST_H_ | 3613 #endif // V8_AST_H_ |
OLD | NEW |