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

Side by Side Diff: src/parser.h

Issue 7618007: Simplify handling of exits from with and catch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporate review comments Created 9 years, 4 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/ia32/macro-assembler-ia32.cc ('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 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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 Block* ParseVariableStatement(bool* ok); 488 Block* ParseVariableStatement(bool* ok);
489 Block* ParseVariableDeclarations(bool accept_IN, 489 Block* ParseVariableDeclarations(bool accept_IN,
490 Handle<String>* out, 490 Handle<String>* out,
491 bool* ok); 491 bool* ok);
492 Statement* ParseExpressionOrLabelledStatement(ZoneStringList* labels, 492 Statement* ParseExpressionOrLabelledStatement(ZoneStringList* labels,
493 bool* ok); 493 bool* ok);
494 IfStatement* ParseIfStatement(ZoneStringList* labels, bool* ok); 494 IfStatement* ParseIfStatement(ZoneStringList* labels, bool* ok);
495 Statement* ParseContinueStatement(bool* ok); 495 Statement* ParseContinueStatement(bool* ok);
496 Statement* ParseBreakStatement(ZoneStringList* labels, bool* ok); 496 Statement* ParseBreakStatement(ZoneStringList* labels, bool* ok);
497 Statement* ParseReturnStatement(bool* ok); 497 Statement* ParseReturnStatement(bool* ok);
498 Block* WithHelper(Expression* obj, ZoneStringList* labels, bool* ok);
499 Statement* ParseWithStatement(ZoneStringList* labels, bool* ok); 498 Statement* ParseWithStatement(ZoneStringList* labels, bool* ok);
500 CaseClause* ParseCaseClause(bool* default_seen_ptr, bool* ok); 499 CaseClause* ParseCaseClause(bool* default_seen_ptr, bool* ok);
501 SwitchStatement* ParseSwitchStatement(ZoneStringList* labels, bool* ok); 500 SwitchStatement* ParseSwitchStatement(ZoneStringList* labels, bool* ok);
502 DoWhileStatement* ParseDoWhileStatement(ZoneStringList* labels, bool* ok); 501 DoWhileStatement* ParseDoWhileStatement(ZoneStringList* labels, bool* ok);
503 WhileStatement* ParseWhileStatement(ZoneStringList* labels, bool* ok); 502 WhileStatement* ParseWhileStatement(ZoneStringList* labels, bool* ok);
504 Statement* ParseForStatement(ZoneStringList* labels, bool* ok); 503 Statement* ParseForStatement(ZoneStringList* labels, bool* ok);
505 Statement* ParseThrowStatement(bool* ok); 504 Statement* ParseThrowStatement(bool* ok);
506 Expression* MakeCatchContext(Handle<String> id, VariableProxy* value); 505 Expression* MakeCatchContext(Handle<String> id, VariableProxy* value);
507 TryStatement* ParseTryStatement(bool* ok); 506 TryStatement* ParseTryStatement(bool* ok);
508 DebuggerStatement* ParseDebuggerStatement(bool* ok); 507 DebuggerStatement* ParseDebuggerStatement(bool* ok);
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 private: 748 private:
750 static const int kTypeSlot = 0; 749 static const int kTypeSlot = 0;
751 static const int kElementsSlot = 1; 750 static const int kElementsSlot = 1;
752 751
753 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 752 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
754 }; 753 };
755 754
756 } } // namespace v8::internal 755 } } // namespace v8::internal
757 756
758 #endif // V8_PARSER_H_ 757 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698