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

Side by Side Diff: src/parser.h

Issue 7549008: Preliminary code for block scopes and block contexts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Next iteration 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
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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 // All ParseXXX functions take as the last argument an *ok parameter 476 // All ParseXXX functions take as the last argument an *ok parameter
477 // which is set to false if parsing failed; it is unchanged otherwise. 477 // which is set to false if parsing failed; it is unchanged otherwise.
478 // By making the 'exception handling' explicit, we are forced to check 478 // By making the 'exception handling' explicit, we are forced to check
479 // for failure at the call sites. 479 // for failure at the call sites.
480 void* ParseSourceElements(ZoneList<Statement*>* processor, 480 void* ParseSourceElements(ZoneList<Statement*>* processor,
481 int end_token, bool* ok); 481 int end_token, bool* ok);
482 Statement* ParseStatement(ZoneStringList* labels, bool* ok); 482 Statement* ParseStatement(ZoneStringList* labels, bool* ok);
483 Statement* ParseFunctionDeclaration(bool* ok); 483 Statement* ParseFunctionDeclaration(bool* ok);
484 Statement* ParseNativeDeclaration(bool* ok); 484 Statement* ParseNativeDeclaration(bool* ok);
485 Block* ParseBlock(ZoneStringList* labels, bool* ok); 485 Block* ParseBlock(ZoneStringList* labels, bool* ok);
486 Statement* ParseScopedBlock(ZoneStringList* labels, bool* ok);
486 Block* ParseVariableStatement(bool* ok); 487 Block* ParseVariableStatement(bool* ok);
487 Block* ParseVariableDeclarations(bool accept_IN, 488 Block* ParseVariableDeclarations(bool accept_IN,
488 Handle<String>* out, 489 Handle<String>* out,
489 bool* ok); 490 bool* ok);
490 Statement* ParseExpressionOrLabelledStatement(ZoneStringList* labels, 491 Statement* ParseExpressionOrLabelledStatement(ZoneStringList* labels,
491 bool* ok); 492 bool* ok);
492 IfStatement* ParseIfStatement(ZoneStringList* labels, bool* ok); 493 IfStatement* ParseIfStatement(ZoneStringList* labels, bool* ok);
493 Statement* ParseContinueStatement(bool* ok); 494 Statement* ParseContinueStatement(bool* ok);
494 Statement* ParseBreakStatement(ZoneStringList* labels, bool* ok); 495 Statement* ParseBreakStatement(ZoneStringList* labels, bool* ok);
495 Statement* ParseReturnStatement(bool* ok); 496 Statement* ParseReturnStatement(bool* ok);
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 private: 747 private:
747 static const int kTypeSlot = 0; 748 static const int kTypeSlot = 0;
748 static const int kElementsSlot = 1; 749 static const int kElementsSlot = 1;
749 750
750 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 751 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
751 }; 752 };
752 753
753 } } // namespace v8::internal 754 } } // namespace v8::internal
754 755
755 #endif // V8_PARSER_H_ 756 #endif // V8_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698