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 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1666 Scope* scope, | 1666 Scope* scope, |
1667 ZoneList<Statement*>* body, | 1667 ZoneList<Statement*>* body, |
1668 int materialized_literal_count, | 1668 int materialized_literal_count, |
1669 int expected_property_count, | 1669 int expected_property_count, |
1670 bool has_only_simple_this_property_assignments, | 1670 bool has_only_simple_this_property_assignments, |
1671 Handle<FixedArray> this_property_assignments, | 1671 Handle<FixedArray> this_property_assignments, |
1672 int num_parameters, | 1672 int num_parameters, |
1673 int start_position, | 1673 int start_position, |
1674 int end_position, | 1674 int end_position, |
1675 bool is_expression, | 1675 bool is_expression, |
1676 bool contains_loops, | 1676 bool contains_loops) |
1677 bool strict_mode) | |
1678 : name_(name), | 1677 : name_(name), |
1679 scope_(scope), | 1678 scope_(scope), |
1680 body_(body), | 1679 body_(body), |
1681 materialized_literal_count_(materialized_literal_count), | 1680 materialized_literal_count_(materialized_literal_count), |
1682 expected_property_count_(expected_property_count), | 1681 expected_property_count_(expected_property_count), |
1683 has_only_simple_this_property_assignments_( | 1682 has_only_simple_this_property_assignments_( |
1684 has_only_simple_this_property_assignments), | 1683 has_only_simple_this_property_assignments), |
1685 this_property_assignments_(this_property_assignments), | 1684 this_property_assignments_(this_property_assignments), |
1686 num_parameters_(num_parameters), | 1685 num_parameters_(num_parameters), |
1687 start_position_(start_position), | 1686 start_position_(start_position), |
1688 end_position_(end_position), | 1687 end_position_(end_position), |
1689 is_expression_(is_expression), | 1688 is_expression_(is_expression), |
1690 contains_loops_(contains_loops), | 1689 contains_loops_(contains_loops), |
Martin Maly
2011/03/06 22:40:38
Strict mode is now needed in scopes.cc so I had to
| |
1691 strict_mode_(strict_mode), | |
1692 function_token_position_(RelocInfo::kNoPosition), | 1690 function_token_position_(RelocInfo::kNoPosition), |
1693 inferred_name_(Heap::empty_string()), | 1691 inferred_name_(Heap::empty_string()), |
1694 try_full_codegen_(false), | 1692 try_full_codegen_(false), |
1695 pretenure_(false) { } | 1693 pretenure_(false) { } |
1696 | 1694 |
1697 DECLARE_NODE_TYPE(FunctionLiteral) | 1695 DECLARE_NODE_TYPE(FunctionLiteral) |
1698 | 1696 |
1699 Handle<String> name() const { return name_; } | 1697 Handle<String> name() const { return name_; } |
1700 Scope* scope() const { return scope_; } | 1698 Scope* scope() const { return scope_; } |
1701 ZoneList<Statement*>* body() const { return body_; } | 1699 ZoneList<Statement*>* body() const { return body_; } |
1702 void set_function_token_position(int pos) { function_token_position_ = pos; } | 1700 void set_function_token_position(int pos) { function_token_position_ = pos; } |
1703 int function_token_position() const { return function_token_position_; } | 1701 int function_token_position() const { return function_token_position_; } |
1704 int start_position() const { return start_position_; } | 1702 int start_position() const { return start_position_; } |
1705 int end_position() const { return end_position_; } | 1703 int end_position() const { return end_position_; } |
1706 bool is_expression() const { return is_expression_; } | 1704 bool is_expression() const { return is_expression_; } |
1707 bool contains_loops() const { return contains_loops_; } | 1705 bool contains_loops() const { return contains_loops_; } |
1708 bool strict_mode() const { return strict_mode_; } | 1706 bool strict_mode() const; |
1709 | 1707 |
1710 int materialized_literal_count() { return materialized_literal_count_; } | 1708 int materialized_literal_count() { return materialized_literal_count_; } |
1711 int expected_property_count() { return expected_property_count_; } | 1709 int expected_property_count() { return expected_property_count_; } |
1712 bool has_only_simple_this_property_assignments() { | 1710 bool has_only_simple_this_property_assignments() { |
1713 return has_only_simple_this_property_assignments_; | 1711 return has_only_simple_this_property_assignments_; |
1714 } | 1712 } |
1715 Handle<FixedArray> this_property_assignments() { | 1713 Handle<FixedArray> this_property_assignments() { |
1716 return this_property_assignments_; | 1714 return this_property_assignments_; |
1717 } | 1715 } |
1718 int num_parameters() { return num_parameters_; } | 1716 int num_parameters() { return num_parameters_; } |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2168 AST_NODE_LIST(DEF_VISIT) | 2166 AST_NODE_LIST(DEF_VISIT) |
2169 #undef DEF_VISIT | 2167 #undef DEF_VISIT |
2170 | 2168 |
2171 private: | 2169 private: |
2172 bool stack_overflow_; | 2170 bool stack_overflow_; |
2173 }; | 2171 }; |
2174 | 2172 |
2175 } } // namespace v8::internal | 2173 } } // namespace v8::internal |
2176 | 2174 |
2177 #endif // V8_AST_H_ | 2175 #endif // V8_AST_H_ |
OLD | NEW |