Fix --trace-parse.
authortitzer@chromium.org <titzer@chromium.org>
Fri, 5 Sep 2014 12:27:28 +0000 (12:27 +0000)
committertitzer@chromium.org <titzer@chromium.org>
Fri, 5 Sep 2014 12:27:28 +0000 (12:27 +0000)
R=yangguo@chromium.org
BUG=

Review URL: https://codereview.chromium.org/545193002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23734 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/parser.cc

index e518bad..d385efe 100644 (file)
@@ -4826,7 +4826,7 @@ bool Parser::Parse() {
   DCHECK(info()->function() == NULL);
   FunctionLiteral* result = NULL;
   pre_parse_timer_ = isolate()->counters()->pre_parse();
-  if (allow_natives_syntax() || extension_ != NULL) {
+  if (FLAG_trace_parse || allow_natives_syntax() || extension_ != NULL) {
     // If intrinsics are allowed, the Parser cannot operate independent of the
     // V8 heap because of Runtime. Tell the string table to internalize strings
     // and values right after they're created.