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

Side by Side Diff: src/parser.h

Issue 7309002: Fix a bug in with and catch context allocation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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/mips/full-codegen-mips.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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 // Report syntax error 463 // Report syntax error
464 void ReportUnexpectedToken(Token::Value token); 464 void ReportUnexpectedToken(Token::Value token);
465 void ReportInvalidPreparseData(Handle<String> name, bool* ok); 465 void ReportInvalidPreparseData(Handle<String> name, bool* ok);
466 void ReportMessage(const char* message, Vector<const char*> args); 466 void ReportMessage(const char* message, Vector<const char*> args);
467 467
468 bool inside_with() const { return with_nesting_level_ > 0; } 468 bool inside_with() const { return with_nesting_level_ > 0; }
469 JavaScriptScanner& scanner() { return scanner_; } 469 JavaScriptScanner& scanner() { return scanner_; }
470 Mode mode() const { return mode_; } 470 Mode mode() const { return mode_; }
471 ScriptDataImpl* pre_data() const { return pre_data_; } 471 ScriptDataImpl* pre_data() const { return pre_data_; }
472 472
473 Scope* DeclarationScope();
474
475 // Check if the given string is 'eval' or 'arguments'. 473 // Check if the given string is 'eval' or 'arguments'.
476 bool IsEvalOrArguments(Handle<String> string); 474 bool IsEvalOrArguments(Handle<String> string);
477 475
478 // All ParseXXX functions take as the last argument an *ok parameter 476 // All ParseXXX functions take as the last argument an *ok parameter
479 // 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.
480 // By making the 'exception handling' explicit, we are forced to check 478 // By making the 'exception handling' explicit, we are forced to check
481 // for failure at the call sites. 479 // for failure at the call sites.
482 void* ParseSourceElements(ZoneList<Statement*>* processor, 480 void* ParseSourceElements(ZoneList<Statement*>* processor,
483 int end_token, bool* ok); 481 int end_token, bool* ok);
484 Statement* ParseStatement(ZoneStringList* labels, bool* ok); 482 Statement* ParseStatement(ZoneStringList* labels, bool* ok);
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 private: 749 private:
752 static const int kTypeSlot = 0; 750 static const int kTypeSlot = 0;
753 static const int kElementsSlot = 1; 751 static const int kElementsSlot = 1;
754 752
755 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 753 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
756 }; 754 };
757 755
758 } } // namespace v8::internal 756 } } // namespace v8::internal
759 757
760 #endif // V8_PARSER_H_ 758 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698