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

Side by Side Diff: src/interpreter/bytecode-generator.h

Issue 2557593004: [ignition] desugar GetIterator() via bytecode rather than via AST (Closed)
Patch Set: georg's comments 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/interpreter/bytecode-array-writer.cc ('k') | src/interpreter/bytecode-generator.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_INTERPRETER_BYTECODE_GENERATOR_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_GENERATOR_H_
6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_ 6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/interpreter/bytecode-array-builder.h" 9 #include "src/interpreter/bytecode-array-builder.h"
10 #include "src/interpreter/bytecode-label.h" 10 #include "src/interpreter/bytecode-label.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 ExpressionResultScope* execution_result() const { return execution_result_; } 187 ExpressionResultScope* execution_result() const { return execution_result_; }
188 BytecodeRegisterAllocator* register_allocator() const { 188 BytecodeRegisterAllocator* register_allocator() const {
189 return builder()->register_allocator(); 189 return builder()->register_allocator();
190 } 190 }
191 191
192 GlobalDeclarationsBuilder* globals_builder() { return globals_builder_; } 192 GlobalDeclarationsBuilder* globals_builder() { return globals_builder_; }
193 inline LanguageMode language_mode() const; 193 inline LanguageMode language_mode() const;
194 int feedback_index(FeedbackVectorSlot slot) const; 194 int feedback_index(FeedbackVectorSlot slot) const;
195 195
196 Handle<Name> home_object_symbol() const { return home_object_symbol_; } 196 Handle<Name> home_object_symbol() const { return home_object_symbol_; }
197 Handle<Name> iterator_symbol() const { return iterator_symbol_; }
197 Handle<Name> prototype_string() const { return prototype_string_; } 198 Handle<Name> prototype_string() const { return prototype_string_; }
198 Handle<FixedArray> empty_fixed_array() const { return empty_fixed_array_; } 199 Handle<FixedArray> empty_fixed_array() const { return empty_fixed_array_; }
199 const AstRawString* undefined_string() const { return undefined_string_; } 200 const AstRawString* undefined_string() const { return undefined_string_; }
200 201
201 Zone* zone_; 202 Zone* zone_;
202 BytecodeArrayBuilder* builder_; 203 BytecodeArrayBuilder* builder_;
203 CompilationInfo* info_; 204 CompilationInfo* info_;
204 DeclarationScope* scope_; 205 DeclarationScope* scope_;
205 206
206 GlobalDeclarationsBuilder* globals_builder_; 207 GlobalDeclarationsBuilder* globals_builder_;
207 ZoneVector<GlobalDeclarationsBuilder*> global_declarations_; 208 ZoneVector<GlobalDeclarationsBuilder*> global_declarations_;
208 ZoneVector<std::pair<FunctionLiteral*, size_t>> function_literals_; 209 ZoneVector<std::pair<FunctionLiteral*, size_t>> function_literals_;
209 ZoneVector<std::pair<NativeFunctionLiteral*, size_t>> 210 ZoneVector<std::pair<NativeFunctionLiteral*, size_t>>
210 native_function_literals_; 211 native_function_literals_;
211 212
212 ControlScope* execution_control_; 213 ControlScope* execution_control_;
213 ContextScope* execution_context_; 214 ContextScope* execution_context_;
214 ExpressionResultScope* execution_result_; 215 ExpressionResultScope* execution_result_;
215 216
216 ZoneVector<BytecodeLabel> generator_resume_points_; 217 ZoneVector<BytecodeLabel> generator_resume_points_;
217 Register generator_state_; 218 Register generator_state_;
218 int loop_depth_; 219 int loop_depth_;
219 220
220 Handle<Name> home_object_symbol_; 221 Handle<Name> home_object_symbol_;
222 Handle<Name> iterator_symbol_;
221 Handle<Name> prototype_string_; 223 Handle<Name> prototype_string_;
222 Handle<FixedArray> empty_fixed_array_; 224 Handle<FixedArray> empty_fixed_array_;
223 const AstRawString* undefined_string_; 225 const AstRawString* undefined_string_;
224 }; 226 };
225 227
226 } // namespace interpreter 228 } // namespace interpreter
227 } // namespace internal 229 } // namespace internal
228 } // namespace v8 230 } // namespace v8
229 231
230 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 232 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-writer.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698