OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 PROTOTYPE // Property is __proto__. | 740 PROTOTYPE // Property is __proto__. |
741 }; | 741 }; |
742 | 742 |
743 Property(Literal* key, Expression* value); | 743 Property(Literal* key, Expression* value); |
744 Property(bool is_getter, FunctionLiteral* value); | 744 Property(bool is_getter, FunctionLiteral* value); |
745 | 745 |
746 Literal* key() { return key_; } | 746 Literal* key() { return key_; } |
747 Expression* value() { return value_; } | 747 Expression* value() { return value_; } |
748 Kind kind() { return kind_; } | 748 Kind kind() { return kind_; } |
749 | 749 |
| 750 bool IsCompileTimeValue(); |
| 751 |
750 private: | 752 private: |
751 Literal* key_; | 753 Literal* key_; |
752 Expression* value_; | 754 Expression* value_; |
753 Kind kind_; | 755 Kind kind_; |
754 }; | 756 }; |
755 | 757 |
756 ObjectLiteral(Handle<FixedArray> constant_properties, | 758 ObjectLiteral(Handle<FixedArray> constant_properties, |
757 ZoneList<Property*>* properties, | 759 ZoneList<Property*>* properties, |
758 int literal_index, | 760 int literal_index, |
759 bool is_simple, | 761 bool is_simple, |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1760 #undef DEF_VISIT | 1762 #undef DEF_VISIT |
1761 | 1763 |
1762 private: | 1764 private: |
1763 bool stack_overflow_; | 1765 bool stack_overflow_; |
1764 }; | 1766 }; |
1765 | 1767 |
1766 | 1768 |
1767 } } // namespace v8::internal | 1769 } } // namespace v8::internal |
1768 | 1770 |
1769 #endif // V8_AST_H_ | 1771 #endif // V8_AST_H_ |
OLD | NEW |