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 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1792 Handle<JSFunction> target() { return target_; } | 1792 Handle<JSFunction> target() { return target_; } |
1793 | 1793 |
1794 Handle<Cell> cell() { return cell_; } | 1794 Handle<Cell> cell() { return cell_; } |
1795 | 1795 |
1796 Handle<AllocationSite> allocation_site() { return allocation_site_; } | 1796 Handle<AllocationSite> allocation_site() { return allocation_site_; } |
1797 | 1797 |
1798 void set_target(Handle<JSFunction> target) { target_ = target; } | 1798 void set_target(Handle<JSFunction> target) { target_ = target; } |
1799 void set_allocation_site(Handle<AllocationSite> site) { | 1799 void set_allocation_site(Handle<AllocationSite> site) { |
1800 allocation_site_ = site; | 1800 allocation_site_ = site; |
1801 } | 1801 } |
1802 bool ComputeGlobalTarget(Handle<GlobalObject> global, LookupResult* lookup); | 1802 bool ComputeGlobalTarget(Handle<GlobalObject> global, LookupIterator* it); |
1803 | 1803 |
1804 BailoutId ReturnId() const { return return_id_; } | 1804 BailoutId ReturnId() const { return return_id_; } |
1805 | 1805 |
1806 enum CallType { | 1806 enum CallType { |
1807 POSSIBLY_EVAL_CALL, | 1807 POSSIBLY_EVAL_CALL, |
1808 GLOBAL_CALL, | 1808 GLOBAL_CALL, |
1809 LOOKUP_SLOT_CALL, | 1809 LOOKUP_SLOT_CALL, |
1810 PROPERTY_CALL, | 1810 PROPERTY_CALL, |
1811 OTHER_CALL | 1811 OTHER_CALL |
1812 }; | 1812 }; |
(...skipping 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3506 private: | 3506 private: |
3507 Zone* zone_; | 3507 Zone* zone_; |
3508 Visitor visitor_; | 3508 Visitor visitor_; |
3509 AstValueFactory* ast_value_factory_; | 3509 AstValueFactory* ast_value_factory_; |
3510 }; | 3510 }; |
3511 | 3511 |
3512 | 3512 |
3513 } } // namespace v8::internal | 3513 } } // namespace v8::internal |
3514 | 3514 |
3515 #endif // V8_AST_H_ | 3515 #endif // V8_AST_H_ |
OLD | NEW |