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

Unified Diff: src/parser.h

Issue 389573006: Change ScriptCompiler::CompileOptions and add d8 --cache. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index d0b67b7a79332c31ea267042ed2c6779c567b52c..7b2ad9706a5ded83afd7f146b407b498a3ffc468 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -617,7 +617,9 @@ class Parser : public ParserBase<ParserTraits> {
void SetCachedData();
bool inside_with() const { return scope_->inside_with(); }
- CachedDataMode cached_data_mode() const { return info_->cached_data_mode(); }
+ ScriptCompiler::CompileOptions compile_options() const {
+ return info_->compile_options();
+ }
Scope* DeclarationScope(VariableMode mode) {
return IsLexicalVariableMode(mode)
? scope_ : scope_->DeclarationScope();
@@ -765,7 +767,7 @@ class Parser : public ParserBase<ParserTraits> {
Scope* original_scope_; // for ES5 function declarations in sloppy eval
Target* target_stack_; // for break, continue statements
ParseData* cached_parse_data_;
- CachedDataMode cached_data_mode_;
+ ScriptCompiler::CompileOptions compile_options_;
AstValueFactory* ast_value_factory_;
CompilationInfo* info_;

Powered by Google App Engine
This is Rietveld 408576698