| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1716 Scope* scope, | 1716 Scope* scope, |
| 1717 ZoneList<Statement*>* body, | 1717 ZoneList<Statement*>* body, |
| 1718 int materialized_literal_count, | 1718 int materialized_literal_count, |
| 1719 int expected_property_count, | 1719 int expected_property_count, |
| 1720 bool has_only_simple_this_property_assignments, | 1720 bool has_only_simple_this_property_assignments, |
| 1721 Handle<FixedArray> this_property_assignments, | 1721 Handle<FixedArray> this_property_assignments, |
| 1722 int num_parameters, | 1722 int num_parameters, |
| 1723 int start_position, | 1723 int start_position, |
| 1724 int end_position, | 1724 int end_position, |
| 1725 bool is_expression, | 1725 bool is_expression, |
| 1726 bool is_anonymous, |
| 1726 bool has_duplicate_parameters) | 1727 bool has_duplicate_parameters) |
| 1727 : Expression(isolate), | 1728 : Expression(isolate), |
| 1728 name_(name), | 1729 name_(name), |
| 1729 scope_(scope), | 1730 scope_(scope), |
| 1730 body_(body), | 1731 body_(body), |
| 1731 materialized_literal_count_(materialized_literal_count), | 1732 materialized_literal_count_(materialized_literal_count), |
| 1732 expected_property_count_(expected_property_count), | 1733 expected_property_count_(expected_property_count), |
| 1733 has_only_simple_this_property_assignments_( | 1734 has_only_simple_this_property_assignments_( |
| 1734 has_only_simple_this_property_assignments), | 1735 has_only_simple_this_property_assignments), |
| 1735 this_property_assignments_(this_property_assignments), | 1736 this_property_assignments_(this_property_assignments), |
| 1736 num_parameters_(num_parameters), | 1737 num_parameters_(num_parameters), |
| 1737 start_position_(start_position), | 1738 start_position_(start_position), |
| 1738 end_position_(end_position), | 1739 end_position_(end_position), |
| 1739 function_token_position_(RelocInfo::kNoPosition), | 1740 function_token_position_(RelocInfo::kNoPosition), |
| 1740 inferred_name_(HEAP->empty_string()), | 1741 inferred_name_(HEAP->empty_string()), |
| 1741 is_expression_(is_expression), | 1742 is_expression_(is_expression), |
| 1743 is_anonymous_(is_anonymous), |
| 1742 pretenure_(false), | 1744 pretenure_(false), |
| 1743 has_duplicate_parameters_(has_duplicate_parameters) { | 1745 has_duplicate_parameters_(has_duplicate_parameters) { |
| 1744 } | 1746 } |
| 1745 | 1747 |
| 1746 DECLARE_NODE_TYPE(FunctionLiteral) | 1748 DECLARE_NODE_TYPE(FunctionLiteral) |
| 1747 | 1749 |
| 1748 Handle<String> name() const { return name_; } | 1750 Handle<String> name() const { return name_; } |
| 1749 Scope* scope() const { return scope_; } | 1751 Scope* scope() const { return scope_; } |
| 1750 ZoneList<Statement*>* body() const { return body_; } | 1752 ZoneList<Statement*>* body() const { return body_; } |
| 1751 void set_function_token_position(int pos) { function_token_position_ = pos; } | 1753 void set_function_token_position(int pos) { function_token_position_ = pos; } |
| 1752 int function_token_position() const { return function_token_position_; } | 1754 int function_token_position() const { return function_token_position_; } |
| 1753 int start_position() const { return start_position_; } | 1755 int start_position() const { return start_position_; } |
| 1754 int end_position() const { return end_position_; } | 1756 int end_position() const { return end_position_; } |
| 1755 bool is_expression() const { return is_expression_; } | 1757 bool is_expression() const { return is_expression_; } |
| 1758 bool is_anonymous() const { return is_anonymous_; } |
| 1756 bool strict_mode() const; | 1759 bool strict_mode() const; |
| 1757 | 1760 |
| 1758 int materialized_literal_count() { return materialized_literal_count_; } | 1761 int materialized_literal_count() { return materialized_literal_count_; } |
| 1759 int expected_property_count() { return expected_property_count_; } | 1762 int expected_property_count() { return expected_property_count_; } |
| 1760 bool has_only_simple_this_property_assignments() { | 1763 bool has_only_simple_this_property_assignments() { |
| 1761 return has_only_simple_this_property_assignments_; | 1764 return has_only_simple_this_property_assignments_; |
| 1762 } | 1765 } |
| 1763 Handle<FixedArray> this_property_assignments() { | 1766 Handle<FixedArray> this_property_assignments() { |
| 1764 return this_property_assignments_; | 1767 return this_property_assignments_; |
| 1765 } | 1768 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1790 int materialized_literal_count_; | 1793 int materialized_literal_count_; |
| 1791 int expected_property_count_; | 1794 int expected_property_count_; |
| 1792 bool has_only_simple_this_property_assignments_; | 1795 bool has_only_simple_this_property_assignments_; |
| 1793 Handle<FixedArray> this_property_assignments_; | 1796 Handle<FixedArray> this_property_assignments_; |
| 1794 int num_parameters_; | 1797 int num_parameters_; |
| 1795 int start_position_; | 1798 int start_position_; |
| 1796 int end_position_; | 1799 int end_position_; |
| 1797 int function_token_position_; | 1800 int function_token_position_; |
| 1798 Handle<String> inferred_name_; | 1801 Handle<String> inferred_name_; |
| 1799 bool is_expression_; | 1802 bool is_expression_; |
| 1803 bool is_anonymous_; |
| 1800 bool pretenure_; | 1804 bool pretenure_; |
| 1801 bool has_duplicate_parameters_; | 1805 bool has_duplicate_parameters_; |
| 1802 }; | 1806 }; |
| 1803 | 1807 |
| 1804 | 1808 |
| 1805 class SharedFunctionInfoLiteral: public Expression { | 1809 class SharedFunctionInfoLiteral: public Expression { |
| 1806 public: | 1810 public: |
| 1807 SharedFunctionInfoLiteral( | 1811 SharedFunctionInfoLiteral( |
| 1808 Isolate* isolate, | 1812 Isolate* isolate, |
| 1809 Handle<SharedFunctionInfo> shared_function_info) | 1813 Handle<SharedFunctionInfo> shared_function_info) |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2227 | 2231 |
| 2228 private: | 2232 private: |
| 2229 Isolate* isolate_; | 2233 Isolate* isolate_; |
| 2230 bool stack_overflow_; | 2234 bool stack_overflow_; |
| 2231 }; | 2235 }; |
| 2232 | 2236 |
| 2233 | 2237 |
| 2234 } } // namespace v8::internal | 2238 } } // namespace v8::internal |
| 2235 | 2239 |
| 2236 #endif // V8_AST_H_ | 2240 #endif // V8_AST_H_ |
| OLD | NEW |