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

Side by Side Diff: src/parsing/parse-info.h

Issue 2513563002: Remove FLAG_min_preparse_length. (Closed)
Patch Set: test262 expectations Created 4 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 unified diff | Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | src/parsing/parse-info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PARSING_PARSE_INFO_H_ 5 #ifndef V8_PARSING_PARSE_INFO_H_
6 #define V8_PARSING_PARSE_INFO_H_ 6 #define V8_PARSING_PARSE_INFO_H_
7 7
8 #include "include/v8.h" 8 #include "include/v8.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/handles.h" 10 #include "src/handles.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 v8::Extension* extension() const { return extension_; } 90 v8::Extension* extension() const { return extension_; }
91 void set_extension(v8::Extension* extension) { extension_ = extension; } 91 void set_extension(v8::Extension* extension) { extension_ = extension; }
92 92
93 ScriptData** cached_data() const { return cached_data_; } 93 ScriptData** cached_data() const { return cached_data_; }
94 void set_cached_data(ScriptData** cached_data) { cached_data_ = cached_data; } 94 void set_cached_data(ScriptData** cached_data) { cached_data_ = cached_data; }
95 95
96 ScriptCompiler::CompileOptions compile_options() const { 96 ScriptCompiler::CompileOptions compile_options() const {
97 return compile_options_; 97 return compile_options_;
98 } 98 }
99 void set_compile_options(ScriptCompiler::CompileOptions compile_options) { 99 void set_compile_options(ScriptCompiler::CompileOptions compile_options) {
100 if (compile_options == ScriptCompiler::kConsumeParserCache) {
101 set_allow_lazy_parsing();
102 }
103 compile_options_ = compile_options; 100 compile_options_ = compile_options;
104 } 101 }
105 102
106 DeclarationScope* script_scope() const { return script_scope_; } 103 DeclarationScope* script_scope() const { return script_scope_; }
107 void set_script_scope(DeclarationScope* script_scope) { 104 void set_script_scope(DeclarationScope* script_scope) {
108 script_scope_ = script_scope; 105 script_scope_ = script_scope;
109 } 106 }
110 107
111 AstValueFactory* ast_value_factory() const { return ast_value_factory_; } 108 AstValueFactory* ast_value_factory() const { return ast_value_factory_; }
112 void set_ast_value_factory(AstValueFactory* ast_value_factory) { 109 void set_ast_value_factory(AstValueFactory* ast_value_factory) {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 241
245 void SetFlag(Flag f) { flags_ |= f; } 242 void SetFlag(Flag f) { flags_ |= f; }
246 void SetFlag(Flag f, bool v) { flags_ = v ? flags_ | f : flags_ & ~f; } 243 void SetFlag(Flag f, bool v) { flags_ = v ? flags_ | f : flags_ & ~f; }
247 bool GetFlag(Flag f) const { return (flags_ & f) != 0; } 244 bool GetFlag(Flag f) const { return (flags_ & f) != 0; }
248 }; 245 };
249 246
250 } // namespace internal 247 } // namespace internal
251 } // namespace v8 248 } // namespace v8
252 249
253 #endif // V8_PARSING_PARSE_INFO_H_ 250 #endif // V8_PARSING_PARSE_INFO_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/parsing/parse-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698