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

Side by Side Diff: src/parser.h

Issue 6335013: Strict mode eval/arguments LHS. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: CR Feedback Created 9 years, 11 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
« no previous file with comments | « src/messages.js ('k') | src/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 Literal* GetLiteralUndefined(); 606 Literal* GetLiteralUndefined();
607 Literal* GetLiteralTheHole(); 607 Literal* GetLiteralTheHole();
608 Literal* GetLiteralNumber(double value); 608 Literal* GetLiteralNumber(double value);
609 609
610 Handle<String> ParseIdentifier(bool* ok); 610 Handle<String> ParseIdentifier(bool* ok);
611 Handle<String> ParseIdentifierName(bool* ok); 611 Handle<String> ParseIdentifierName(bool* ok);
612 Handle<String> ParseIdentifierOrGetOrSet(bool* is_get, 612 Handle<String> ParseIdentifierOrGetOrSet(bool* is_get,
613 bool* is_set, 613 bool* is_set,
614 bool* ok); 614 bool* ok);
615 615
616 // Strict mode validation of LValue expressions
617 void CheckStrictModeLValue(Expression* expression,
618 const char* error,
619 bool* ok);
620
616 // Strict mode octal literal validation. 621 // Strict mode octal literal validation.
617 void CheckOctalLiteral(int beg_pos, int end_pos, bool* ok); 622 void CheckOctalLiteral(int beg_pos, int end_pos, bool* ok);
618 623
619 // Parser support 624 // Parser support
620 VariableProxy* Declare(Handle<String> name, Variable::Mode mode, 625 VariableProxy* Declare(Handle<String> name, Variable::Mode mode,
621 FunctionLiteral* fun, 626 FunctionLiteral* fun,
622 bool resolve, 627 bool resolve,
623 bool* ok); 628 bool* ok);
624 629
625 bool TargetStackContainsLabel(Handle<String> label); 630 bool TargetStackContainsLabel(Handle<String> label);
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 Handle<Object> ReportUnexpectedToken() { return Handle<Object>::null(); } 782 Handle<Object> ReportUnexpectedToken() { return Handle<Object>::null(); }
778 // Converts the currently parsed literal to a JavaScript String. 783 // Converts the currently parsed literal to a JavaScript String.
779 Handle<String> GetString(); 784 Handle<String> GetString();
780 785
781 JsonScanner scanner_; 786 JsonScanner scanner_;
782 bool stack_overflow_; 787 bool stack_overflow_;
783 }; 788 };
784 } } // namespace v8::internal 789 } } // namespace v8::internal
785 790
786 #endif // V8_PARSER_H_ 791 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698