Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: src/preparser.h

Issue 7992005: Block scoped const variables. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed redundant code. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 Statement ParseReturnStatement(bool* ok); 514 Statement ParseReturnStatement(bool* ok);
515 Statement ParseWithStatement(bool* ok); 515 Statement ParseWithStatement(bool* ok);
516 Statement ParseSwitchStatement(bool* ok); 516 Statement ParseSwitchStatement(bool* ok);
517 Statement ParseDoWhileStatement(bool* ok); 517 Statement ParseDoWhileStatement(bool* ok);
518 Statement ParseWhileStatement(bool* ok); 518 Statement ParseWhileStatement(bool* ok);
519 Statement ParseForStatement(bool* ok); 519 Statement ParseForStatement(bool* ok);
520 Statement ParseThrowStatement(bool* ok); 520 Statement ParseThrowStatement(bool* ok);
521 Statement ParseTryStatement(bool* ok); 521 Statement ParseTryStatement(bool* ok);
522 Statement ParseDebuggerStatement(bool* ok); 522 Statement ParseDebuggerStatement(bool* ok);
523 523
524 // Support for hamony block scoped bindings.
525 Statement ParseHarmonyConstDeclaration(bool* ok);
526
524 Expression ParseExpression(bool accept_IN, bool* ok); 527 Expression ParseExpression(bool accept_IN, bool* ok);
525 Expression ParseAssignmentExpression(bool accept_IN, bool* ok); 528 Expression ParseAssignmentExpression(bool accept_IN, bool* ok);
526 Expression ParseConditionalExpression(bool accept_IN, bool* ok); 529 Expression ParseConditionalExpression(bool accept_IN, bool* ok);
527 Expression ParseBinaryExpression(int prec, bool accept_IN, bool* ok); 530 Expression ParseBinaryExpression(int prec, bool accept_IN, bool* ok);
528 Expression ParseUnaryExpression(bool* ok); 531 Expression ParseUnaryExpression(bool* ok);
529 Expression ParsePostfixExpression(bool* ok); 532 Expression ParsePostfixExpression(bool* ok);
530 Expression ParseLeftHandSideExpression(bool* ok); 533 Expression ParseLeftHandSideExpression(bool* ok);
531 Expression ParseNewExpression(bool* ok); 534 Expression ParseNewExpression(bool* ok);
532 Expression ParseMemberExpression(bool* ok); 535 Expression ParseMemberExpression(bool* ok);
533 Expression ParseMemberWithNewPrefixesExpression(unsigned new_count, bool* ok); 536 Expression ParseMemberWithNewPrefixesExpression(unsigned new_count, bool* ok);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 const char* strict_mode_violation_type_; 622 const char* strict_mode_violation_type_;
620 bool stack_overflow_; 623 bool stack_overflow_;
621 bool allow_lazy_; 624 bool allow_lazy_;
622 bool allow_natives_syntax_; 625 bool allow_natives_syntax_;
623 bool parenthesized_function_; 626 bool parenthesized_function_;
624 bool harmony_scoping_; 627 bool harmony_scoping_;
625 }; 628 };
626 } } // v8::preparser 629 } } // v8::preparser
627 630
628 #endif // V8_PREPARSER_H 631 #endif // V8_PREPARSER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698