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

Unified Diff: src/parser.cc

Issue 13496008: fix bogus uses of preparser API (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 7 years, 9 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 | « src/parser.h ('k') | test/cctest/test-parsing.cc » ('j') | 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 e468cb970c09bc75a32f21938c9a7cb839124b4c..107cd275d61db29f9ea69dac98cf477d09b3ca47 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -5925,11 +5925,9 @@ static ScriptDataImpl* DoPreParse(Utf16CharacterStream* source,
}
-ScriptDataImpl* ParserApi::PreParse(Utf16CharacterStream* source,
- v8::Extension* extension,
- int flags) {
- Handle<Script> no_script;
- if (FLAG_lazy && (extension == NULL)) {
+ScriptDataImpl* ParserApi::PreParse(Utf16CharacterStream* source) {
+ int flags = kNoParsingFlags;
+ if (FLAG_lazy) {
flags |= kAllowLazy;
}
if (FLAG_harmony_generators) {
« no previous file with comments | « src/parser.h ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698