| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 Scope* scope, | 1668 Scope* scope, |
| 1669 ZoneList<Statement*>* body, | 1669 ZoneList<Statement*>* body, |
| 1670 int materialized_literal_count, | 1670 int materialized_literal_count, |
| 1671 int expected_property_count, | 1671 int expected_property_count, |
| 1672 bool has_only_simple_this_property_assignments, | 1672 bool has_only_simple_this_property_assignments, |
| 1673 Handle<FixedArray> this_property_assignments, | 1673 Handle<FixedArray> this_property_assignments, |
| 1674 int num_parameters, | 1674 int num_parameters, |
| 1675 int start_position, | 1675 int start_position, |
| 1676 int end_position, | 1676 int end_position, |
| 1677 bool is_expression, | 1677 bool is_expression, |
| 1678 bool contains_loops) | 1678 bool contains_loops, |
| 1679 bool strict_mode) |
| 1679 : name_(name), | 1680 : name_(name), |
| 1680 scope_(scope), | 1681 scope_(scope), |
| 1681 body_(body), | 1682 body_(body), |
| 1682 materialized_literal_count_(materialized_literal_count), | 1683 materialized_literal_count_(materialized_literal_count), |
| 1683 expected_property_count_(expected_property_count), | 1684 expected_property_count_(expected_property_count), |
| 1684 has_only_simple_this_property_assignments_( | 1685 has_only_simple_this_property_assignments_( |
| 1685 has_only_simple_this_property_assignments), | 1686 has_only_simple_this_property_assignments), |
| 1686 this_property_assignments_(this_property_assignments), | 1687 this_property_assignments_(this_property_assignments), |
| 1687 num_parameters_(num_parameters), | 1688 num_parameters_(num_parameters), |
| 1688 start_position_(start_position), | 1689 start_position_(start_position), |
| 1689 end_position_(end_position), | 1690 end_position_(end_position), |
| 1690 is_expression_(is_expression), | 1691 is_expression_(is_expression), |
| 1691 contains_loops_(contains_loops), | 1692 contains_loops_(contains_loops), |
| 1693 strict_mode_(strict_mode), |
| 1692 function_token_position_(RelocInfo::kNoPosition), | 1694 function_token_position_(RelocInfo::kNoPosition), |
| 1693 inferred_name_(Heap::empty_string()), | 1695 inferred_name_(Heap::empty_string()), |
| 1694 try_full_codegen_(false), | 1696 try_full_codegen_(false), |
| 1695 pretenure_(false) { } | 1697 pretenure_(false) { } |
| 1696 | 1698 |
| 1697 DECLARE_NODE_TYPE(FunctionLiteral) | 1699 DECLARE_NODE_TYPE(FunctionLiteral) |
| 1698 | 1700 |
| 1699 Handle<String> name() const { return name_; } | 1701 Handle<String> name() const { return name_; } |
| 1700 Scope* scope() const { return scope_; } | 1702 Scope* scope() const { return scope_; } |
| 1701 ZoneList<Statement*>* body() const { return body_; } | 1703 ZoneList<Statement*>* body() const { return body_; } |
| 1702 void set_function_token_position(int pos) { function_token_position_ = pos; } | 1704 void set_function_token_position(int pos) { function_token_position_ = pos; } |
| 1703 int function_token_position() const { return function_token_position_; } | 1705 int function_token_position() const { return function_token_position_; } |
| 1704 int start_position() const { return start_position_; } | 1706 int start_position() const { return start_position_; } |
| 1705 int end_position() const { return end_position_; } | 1707 int end_position() const { return end_position_; } |
| 1706 bool is_expression() const { return is_expression_; } | 1708 bool is_expression() const { return is_expression_; } |
| 1707 bool contains_loops() const { return contains_loops_; } | 1709 bool contains_loops() const { return contains_loops_; } |
| 1710 bool strict_mode() const { return strict_mode_; } |
| 1708 | 1711 |
| 1709 int materialized_literal_count() { return materialized_literal_count_; } | 1712 int materialized_literal_count() { return materialized_literal_count_; } |
| 1710 int expected_property_count() { return expected_property_count_; } | 1713 int expected_property_count() { return expected_property_count_; } |
| 1711 bool has_only_simple_this_property_assignments() { | 1714 bool has_only_simple_this_property_assignments() { |
| 1712 return has_only_simple_this_property_assignments_; | 1715 return has_only_simple_this_property_assignments_; |
| 1713 } | 1716 } |
| 1714 Handle<FixedArray> this_property_assignments() { | 1717 Handle<FixedArray> this_property_assignments() { |
| 1715 return this_property_assignments_; | 1718 return this_property_assignments_; |
| 1716 } | 1719 } |
| 1717 int num_parameters() { return num_parameters_; } | 1720 int num_parameters() { return num_parameters_; } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1740 ZoneList<Statement*>* body_; | 1743 ZoneList<Statement*>* body_; |
| 1741 int materialized_literal_count_; | 1744 int materialized_literal_count_; |
| 1742 int expected_property_count_; | 1745 int expected_property_count_; |
| 1743 bool has_only_simple_this_property_assignments_; | 1746 bool has_only_simple_this_property_assignments_; |
| 1744 Handle<FixedArray> this_property_assignments_; | 1747 Handle<FixedArray> this_property_assignments_; |
| 1745 int num_parameters_; | 1748 int num_parameters_; |
| 1746 int start_position_; | 1749 int start_position_; |
| 1747 int end_position_; | 1750 int end_position_; |
| 1748 bool is_expression_; | 1751 bool is_expression_; |
| 1749 bool contains_loops_; | 1752 bool contains_loops_; |
| 1753 bool strict_mode_; |
| 1750 int function_token_position_; | 1754 int function_token_position_; |
| 1751 Handle<String> inferred_name_; | 1755 Handle<String> inferred_name_; |
| 1752 bool try_full_codegen_; | 1756 bool try_full_codegen_; |
| 1753 bool pretenure_; | 1757 bool pretenure_; |
| 1754 }; | 1758 }; |
| 1755 | 1759 |
| 1756 | 1760 |
| 1757 class SharedFunctionInfoLiteral: public Expression { | 1761 class SharedFunctionInfoLiteral: public Expression { |
| 1758 public: | 1762 public: |
| 1759 explicit SharedFunctionInfoLiteral( | 1763 explicit SharedFunctionInfoLiteral( |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2166 AST_NODE_LIST(DEF_VISIT) | 2170 AST_NODE_LIST(DEF_VISIT) |
| 2167 #undef DEF_VISIT | 2171 #undef DEF_VISIT |
| 2168 | 2172 |
| 2169 private: | 2173 private: |
| 2170 bool stack_overflow_; | 2174 bool stack_overflow_; |
| 2171 }; | 2175 }; |
| 2172 | 2176 |
| 2173 } } // namespace v8::internal | 2177 } } // namespace v8::internal |
| 2174 | 2178 |
| 2175 #endif // V8_AST_H_ | 2179 #endif // V8_AST_H_ |
| OLD | NEW |