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

Unified Diff: src/parser.cc

Issue 133343003: Experimental parser: add braces. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 557fabb679d3c0551e6716ed8721cd9bad54971b..149de4dcf0c5effc3b607a1ec3e53dd279b9a0cd 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -568,10 +568,11 @@ FunctionLiteral* Parser::ParseProgram() {
FunctionLiteral* result;
delete reusable_preparser_;
delete scanner_;
- if (source->IsTwoByteRepresentation())
+ if (source->IsTwoByteRepresentation()) {
scanner_ = new ExperimentalScanner<uint16_t>(source, isolate());
- else
+ } else {
scanner_ = new ExperimentalScanner<uint8_t>(source, isolate());
+ }
SetScannerFlags();
scanner_->Init();
result = DoParseProgram(info(), source);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698