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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 Expression* ParseMemberExpression(bool* ok); | 526 Expression* ParseMemberExpression(bool* ok); |
527 Expression* ParseNewPrefix(PositionStack* stack, bool* ok); | 527 Expression* ParseNewPrefix(PositionStack* stack, bool* ok); |
528 Expression* ParseMemberWithNewPrefixesExpression(PositionStack* stack, | 528 Expression* ParseMemberWithNewPrefixesExpression(PositionStack* stack, |
529 bool* ok); | 529 bool* ok); |
530 Expression* ParsePrimaryExpression(bool* ok); | 530 Expression* ParsePrimaryExpression(bool* ok); |
531 Expression* ParseArrayLiteral(bool* ok); | 531 Expression* ParseArrayLiteral(bool* ok); |
532 Expression* ParseObjectLiteral(bool* ok); | 532 Expression* ParseObjectLiteral(bool* ok); |
533 ObjectLiteral::Property* ParseObjectLiteralGetSet(bool is_getter, bool* ok); | 533 ObjectLiteral::Property* ParseObjectLiteralGetSet(bool is_getter, bool* ok); |
534 Expression* ParseRegExpLiteral(bool seen_equal, bool* ok); | 534 Expression* ParseRegExpLiteral(bool seen_equal, bool* ok); |
535 | 535 |
536 Expression* NewCompareNode(Token::Value op, | |
537 Expression* x, | |
538 Expression* y, | |
539 int position); | |
540 | |
541 // Populate the constant properties fixed array for a materialized object | 536 // Populate the constant properties fixed array for a materialized object |
542 // literal. | 537 // literal. |
543 void BuildObjectLiteralConstantProperties( | 538 void BuildObjectLiteralConstantProperties( |
544 ZoneList<ObjectLiteral::Property*>* properties, | 539 ZoneList<ObjectLiteral::Property*>* properties, |
545 Handle<FixedArray> constants, | 540 Handle<FixedArray> constants, |
546 bool* is_simple, | 541 bool* is_simple, |
547 bool* fast_elements, | 542 bool* fast_elements, |
548 int* depth); | 543 int* depth); |
549 | 544 |
550 // Populate the literals fixed array for a materialized array literal. | 545 // Populate the literals fixed array for a materialized array literal. |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 private: | 763 private: |
769 static const int kTypeSlot = 0; | 764 static const int kTypeSlot = 0; |
770 static const int kElementsSlot = 1; | 765 static const int kElementsSlot = 1; |
771 | 766 |
772 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 767 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
773 }; | 768 }; |
774 | 769 |
775 } } // namespace v8::internal | 770 } } // namespace v8::internal |
776 | 771 |
777 #endif // V8_PARSER_H_ | 772 #endif // V8_PARSER_H_ |
OLD | NEW |