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 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1645 | 1645 |
1646 Handle<String> name() const { return name_; } | 1646 Handle<String> name() const { return name_; } |
1647 Scope* scope() const { return scope_; } | 1647 Scope* scope() const { return scope_; } |
1648 ZoneList<Statement*>* body() const { return body_; } | 1648 ZoneList<Statement*>* body() const { return body_; } |
1649 void set_function_token_position(int pos) { function_token_position_ = pos; } | 1649 void set_function_token_position(int pos) { function_token_position_ = pos; } |
1650 int function_token_position() const { return function_token_position_; } | 1650 int function_token_position() const { return function_token_position_; } |
1651 int start_position() const { return start_position_; } | 1651 int start_position() const { return start_position_; } |
1652 int end_position() const { return end_position_; } | 1652 int end_position() const { return end_position_; } |
1653 bool is_expression() const { return is_expression_; } | 1653 bool is_expression() const { return is_expression_; } |
1654 bool is_anonymous() const { return is_anonymous_; } | 1654 bool is_anonymous() const { return is_anonymous_; } |
1655 bool strict_mode() const; | 1655 bool strict_mode() const { return strict_mode_flag() == kStrictMode; } |
| 1656 StrictModeFlag strict_mode_flag() const; |
1656 | 1657 |
1657 int materialized_literal_count() { return materialized_literal_count_; } | 1658 int materialized_literal_count() { return materialized_literal_count_; } |
1658 int expected_property_count() { return expected_property_count_; } | 1659 int expected_property_count() { return expected_property_count_; } |
1659 bool has_only_simple_this_property_assignments() { | 1660 bool has_only_simple_this_property_assignments() { |
1660 return has_only_simple_this_property_assignments_; | 1661 return has_only_simple_this_property_assignments_; |
1661 } | 1662 } |
1662 Handle<FixedArray> this_property_assignments() { | 1663 Handle<FixedArray> this_property_assignments() { |
1663 return this_property_assignments_; | 1664 return this_property_assignments_; |
1664 } | 1665 } |
1665 int num_parameters() { return num_parameters_; } | 1666 int num_parameters() { return num_parameters_; } |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2124 | 2125 |
2125 private: | 2126 private: |
2126 Isolate* isolate_; | 2127 Isolate* isolate_; |
2127 bool stack_overflow_; | 2128 bool stack_overflow_; |
2128 }; | 2129 }; |
2129 | 2130 |
2130 | 2131 |
2131 } } // namespace v8::internal | 2132 } } // namespace v8::internal |
2132 | 2133 |
2133 #endif // V8_AST_H_ | 2134 #endif // V8_AST_H_ |
OLD | NEW |