OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1810 inferred_name_ = inferred_name; | 1810 inferred_name_ = inferred_name; |
1811 } | 1811 } |
1812 | 1812 |
1813 bool pretenure() { return Pretenure::decode(bitfield_); } | 1813 bool pretenure() { return Pretenure::decode(bitfield_); } |
1814 void set_pretenure() { bitfield_ |= Pretenure::encode(true); } | 1814 void set_pretenure() { bitfield_ |= Pretenure::encode(true); } |
1815 | 1815 |
1816 bool has_duplicate_parameters() { | 1816 bool has_duplicate_parameters() { |
1817 return HasDuplicateParameters::decode(bitfield_); | 1817 return HasDuplicateParameters::decode(bitfield_); |
1818 } | 1818 } |
1819 | 1819 |
1820 bool ShouldSelfOptimize(); | |
1821 | |
1822 int ast_node_count() { return ast_properties_.node_count(); } | 1820 int ast_node_count() { return ast_properties_.node_count(); } |
1823 AstProperties::Flags* flags() { return ast_properties_.flags(); } | 1821 AstProperties::Flags* flags() { return ast_properties_.flags(); } |
1824 void set_ast_properties(AstProperties* ast_properties) { | 1822 void set_ast_properties(AstProperties* ast_properties) { |
1825 ast_properties_ = *ast_properties; | 1823 ast_properties_ = *ast_properties; |
1826 } | 1824 } |
1827 | 1825 |
1828 protected: | 1826 protected: |
1829 template<class> friend class AstNodeFactory; | 1827 template<class> friend class AstNodeFactory; |
1830 | 1828 |
1831 FunctionLiteral(Isolate* isolate, | 1829 FunctionLiteral(Isolate* isolate, |
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2648 private: | 2646 private: |
2649 Isolate* isolate_; | 2647 Isolate* isolate_; |
2650 Zone* zone_; | 2648 Zone* zone_; |
2651 Visitor visitor_; | 2649 Visitor visitor_; |
2652 }; | 2650 }; |
2653 | 2651 |
2654 | 2652 |
2655 } } // namespace v8::internal | 2653 } } // namespace v8::internal |
2656 | 2654 |
2657 #endif // V8_AST_H_ | 2655 #endif // V8_AST_H_ |
OLD | NEW |