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 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1624 | 1624 |
1625 Handle<String> name() const { return name_; } | 1625 Handle<String> name() const { return name_; } |
1626 Scope* scope() const { return scope_; } | 1626 Scope* scope() const { return scope_; } |
1627 ZoneList<Statement*>* body() const { return body_; } | 1627 ZoneList<Statement*>* body() const { return body_; } |
1628 void set_function_token_position(int pos) { function_token_position_ = pos; } | 1628 void set_function_token_position(int pos) { function_token_position_ = pos; } |
1629 int function_token_position() const { return function_token_position_; } | 1629 int function_token_position() const { return function_token_position_; } |
1630 int start_position() const; | 1630 int start_position() const; |
1631 int end_position() const; | 1631 int end_position() const; |
1632 bool is_expression() const { return is_expression_; } | 1632 bool is_expression() const { return is_expression_; } |
1633 bool is_anonymous() const { return is_anonymous_; } | 1633 bool is_anonymous() const { return is_anonymous_; } |
1634 bool strict_mode() const { return strict_mode_flag() == kStrictMode; } | 1634 bool is_classic_mode() const { return language_mode() == CLASSIC_MODE; } |
1635 StrictModeFlag strict_mode_flag() const; | 1635 bool is_strict_or_extended_mode() const { return !is_classic_mode(); } |
rossberg
2011/11/08 15:02:46
I forgot what exactly we concluded earlier, but th
Steven
2011/11/08 16:13:49
Done.
| |
1636 LanguageMode language_mode() const; | |
1636 | 1637 |
1637 int materialized_literal_count() { return materialized_literal_count_; } | 1638 int materialized_literal_count() { return materialized_literal_count_; } |
1638 int expected_property_count() { return expected_property_count_; } | 1639 int expected_property_count() { return expected_property_count_; } |
1639 bool has_only_simple_this_property_assignments() { | 1640 bool has_only_simple_this_property_assignments() { |
1640 return has_only_simple_this_property_assignments_; | 1641 return has_only_simple_this_property_assignments_; |
1641 } | 1642 } |
1642 Handle<FixedArray> this_property_assignments() { | 1643 Handle<FixedArray> this_property_assignments() { |
1643 return this_property_assignments_; | 1644 return this_property_assignments_; |
1644 } | 1645 } |
1645 int num_parameters() { return num_parameters_; } | 1646 int num_parameters() { return num_parameters_; } |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2104 | 2105 |
2105 private: | 2106 private: |
2106 Isolate* isolate_; | 2107 Isolate* isolate_; |
2107 bool stack_overflow_; | 2108 bool stack_overflow_; |
2108 }; | 2109 }; |
2109 | 2110 |
2110 | 2111 |
2111 } } // namespace v8::internal | 2112 } } // namespace v8::internal |
2112 | 2113 |
2113 #endif // V8_AST_H_ | 2114 #endif // V8_AST_H_ |
OLD | NEW |