Reviewers: ulan,
Message:
Committed patchset #1 manually as r18694 (presubmit successful).
Description:
Experimental parser: add braces.
[email protected]
BUG=
Committed: https://code.google.com/p/v8/source/detail?r=18694
Please review this at https://codereview.chromium.org/133343003/
SVN Base: https://v8.googlecode.com/svn/branches/experimental/parser
Affected files (+3, -2 lines):
M src/parser.cc
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);
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.