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

Unified Diff: src/parser.h

Issue 1429173002: Add strict mode, sloppy mode and strong mode UseCounters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | « include/v8.h ('k') | src/parser.cc » ('j') | src/parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index 35a6f3af20bdc7022e7ff5ac065b132533afe4c6..b75059fe6f1cf3265a6fcdc3d30ea23c43820f0f 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -1200,6 +1200,9 @@ class Parser : public ParserBase<ParserTraits> {
Expression* SpreadCallNew(Expression* function,
ZoneList<v8::internal::Expression*>* args, int pos);
+ void SetLanguageMode(Scope* scope, LanguageMode mode);
+ void EnableLanguageMode(LanguageMode mode);
adamk 2015/11/03 22:23:15 These names don't help me understand the differenc
Dan Ehrenberg 2015/11/03 22:38:34 I'd like to measure how many webpages are pure str
adamk 2015/11/03 23:04:17 I don't follow: how can a page be "pure strict" wi
+
Scanner scanner_;
PreParser* reusable_preparser_;
Scope* original_scope_; // for ES5 function declarations in sloppy eval
« no previous file with comments | « include/v8.h ('k') | src/parser.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698