From: lrn@chromium.org Date: Tue, 1 Nov 2011 07:47:15 +0000 (+0000) Subject: Merged Scanner and JavaScriptScanner. X-Git-Tag: upstream/4.7.83~18027 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65b9ab93aff585d6bcab1206fec7ca1a5663ef84;p=platform%2Fupstream%2Fv8.git Merged Scanner and JavaScriptScanner. JavaScriptScanner had become the only concrete subclass of Scanner, so there was no longer a need for the distinction. Also fixed up comments. Review URL: http://codereview.chromium.org/8384003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9854 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/parser.cc b/src/parser.cc index 52ba66a45..0a635fcbb 100644 --- a/src/parser.cc +++ b/src/parser.cc @@ -5302,7 +5302,7 @@ static ScriptDataImpl* DoPreParse(UC16CharacterStream* source, int flags, ParserRecorder* recorder) { Isolate* isolate = Isolate::Current(); - JavaScriptScanner scanner(isolate->unicode_cache()); + Scanner scanner(isolate->unicode_cache()); scanner.SetHarmonyScoping((flags & kHarmonyScoping) != 0); scanner.Initialize(source); intptr_t stack_limit = isolate->stack_guard()->real_climit(); diff --git a/src/parser.h b/src/parser.h index 2e82d4ebb..9624301fc 100644 --- a/src/parser.h +++ b/src/parser.h @@ -486,7 +486,7 @@ class Parser { void ReportMessage(const char* message, Vector args); bool inside_with() const { return top_scope_->inside_with(); } - JavaScriptScanner& scanner() { return scanner_; } + Scanner& scanner() { return scanner_; } Mode mode() const { return mode_; } ScriptDataImpl* pre_data() const { return pre_data_; } @@ -726,7 +726,7 @@ class Parser { ZoneList > symbol_cache_; Handle