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

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

Issue 2398023002: [wasm] asm.js - Parse and convert asm.js to wasm a function at a time. (Closed)
Patch Set: fix Created 4 years 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/factory.cc ('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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 } 98 }
99 void set_compile_options(ScriptCompiler::CompileOptions compile_options) { 99 void set_compile_options(ScriptCompiler::CompileOptions compile_options) {
100 compile_options_ = compile_options; 100 compile_options_ = compile_options;
101 } 101 }
102 102
103 DeclarationScope* script_scope() const { return script_scope_; } 103 DeclarationScope* script_scope() const { return script_scope_; }
104 void set_script_scope(DeclarationScope* script_scope) { 104 void set_script_scope(DeclarationScope* script_scope) {
105 script_scope_ = script_scope; 105 script_scope_ = script_scope;
106 } 106 }
107 107
108 DeclarationScope* asm_function_scope() const { return asm_function_scope_; }
109 void set_asm_function_scope(DeclarationScope* scope) {
110 asm_function_scope_ = scope;
111 }
112
108 AstValueFactory* ast_value_factory() const { return ast_value_factory_; } 113 AstValueFactory* ast_value_factory() const { return ast_value_factory_; }
109 void set_ast_value_factory(AstValueFactory* ast_value_factory) { 114 void set_ast_value_factory(AstValueFactory* ast_value_factory) {
110 ast_value_factory_ = ast_value_factory; 115 ast_value_factory_ = ast_value_factory;
111 } 116 }
112 117
113 const AstRawString* function_name() const { return function_name_; } 118 const AstRawString* function_name() const { return function_name_; }
114 void set_function_name(const AstRawString* function_name) { 119 void set_function_name(const AstRawString* function_name) {
115 function_name_ = function_name; 120 function_name_ = function_name;
116 } 121 }
117 122
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 221
217 //------------- Inputs to parsing and scope analysis ----------------------- 222 //------------- Inputs to parsing and scope analysis -----------------------
218 Zone* zone_; 223 Zone* zone_;
219 unsigned flags_; 224 unsigned flags_;
220 ScriptCompiler::ExternalSourceStream* source_stream_; 225 ScriptCompiler::ExternalSourceStream* source_stream_;
221 ScriptCompiler::StreamedSource::Encoding source_stream_encoding_; 226 ScriptCompiler::StreamedSource::Encoding source_stream_encoding_;
222 Utf16CharacterStream* character_stream_; 227 Utf16CharacterStream* character_stream_;
223 v8::Extension* extension_; 228 v8::Extension* extension_;
224 ScriptCompiler::CompileOptions compile_options_; 229 ScriptCompiler::CompileOptions compile_options_;
225 DeclarationScope* script_scope_; 230 DeclarationScope* script_scope_;
231 DeclarationScope* asm_function_scope_;
226 UnicodeCache* unicode_cache_; 232 UnicodeCache* unicode_cache_;
227 uintptr_t stack_limit_; 233 uintptr_t stack_limit_;
228 uint32_t hash_seed_; 234 uint32_t hash_seed_;
229 int compiler_hints_; 235 int compiler_hints_;
230 int start_position_; 236 int start_position_;
231 int end_position_; 237 int end_position_;
232 int function_literal_id_; 238 int function_literal_id_;
233 239
234 // TODO(titzer): Move handles and isolate out of ParseInfo. 240 // TODO(titzer): Move handles and isolate out of ParseInfo.
235 Isolate* isolate_; 241 Isolate* isolate_;
(...skipping 11 matching lines...) Expand all
247 253
248 void SetFlag(Flag f) { flags_ |= f; } 254 void SetFlag(Flag f) { flags_ |= f; }
249 void SetFlag(Flag f, bool v) { flags_ = v ? flags_ | f : flags_ & ~f; } 255 void SetFlag(Flag f, bool v) { flags_ = v ? flags_ | f : flags_ & ~f; }
250 bool GetFlag(Flag f) const { return (flags_ & f) != 0; } 256 bool GetFlag(Flag f) const { return (flags_ & f) != 0; }
251 }; 257 };
252 258
253 } // namespace internal 259 } // namespace internal
254 } // namespace v8 260 } // namespace v8
255 261
256 #endif // V8_PARSING_PARSE_INFO_H_ 262 #endif // V8_PARSING_PARSE_INFO_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/parsing/parse-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698