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

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

Issue 2448323004: [Interpreter] Don't require a CanonicalHandleScope for parse / renumbering (Closed)
Patch Set: 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
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 BytecodeRegisterAllocator* register_allocator() const { 187 BytecodeRegisterAllocator* register_allocator() const {
188 return builder()->register_allocator(); 188 return builder()->register_allocator();
189 } 189 }
190 190
191 GlobalDeclarationsBuilder* globals_builder() { return globals_builder_; } 191 GlobalDeclarationsBuilder* globals_builder() { return globals_builder_; }
192 inline LanguageMode language_mode() const; 192 inline LanguageMode language_mode() const;
193 int feedback_index(FeedbackVectorSlot slot) const; 193 int feedback_index(FeedbackVectorSlot slot) const;
194 194
195 Handle<Name> home_object_symbol() const { return home_object_symbol_; } 195 Handle<Name> home_object_symbol() const { return home_object_symbol_; }
196 Handle<Name> prototype_string() const { return prototype_string_; } 196 Handle<Name> prototype_string() const { return prototype_string_; }
197 Handle<FixedArray> empty_fixed_array() const { return empty_fixed_array_; }
197 198
198 Zone* zone_; 199 Zone* zone_;
199 BytecodeArrayBuilder* builder_; 200 BytecodeArrayBuilder* builder_;
200 CompilationInfo* info_; 201 CompilationInfo* info_;
201 DeclarationScope* scope_; 202 DeclarationScope* scope_;
202 203
203 GlobalDeclarationsBuilder* globals_builder_; 204 GlobalDeclarationsBuilder* globals_builder_;
204 ZoneVector<GlobalDeclarationsBuilder*> global_declarations_; 205 ZoneVector<GlobalDeclarationsBuilder*> global_declarations_;
205 ZoneVector<std::pair<FunctionLiteral*, size_t>> function_literals_; 206 ZoneVector<std::pair<FunctionLiteral*, size_t>> function_literals_;
206 ZoneVector<std::pair<NativeFunctionLiteral*, size_t>> 207 ZoneVector<std::pair<NativeFunctionLiteral*, size_t>>
207 native_function_literals_; 208 native_function_literals_;
208 209
209 ControlScope* execution_control_; 210 ControlScope* execution_control_;
210 ContextScope* execution_context_; 211 ContextScope* execution_context_;
211 ExpressionResultScope* execution_result_; 212 ExpressionResultScope* execution_result_;
212 213
213 ZoneVector<BytecodeLabel> generator_resume_points_; 214 ZoneVector<BytecodeLabel> generator_resume_points_;
214 Register generator_state_; 215 Register generator_state_;
215 int loop_depth_; 216 int loop_depth_;
216 217
217 Handle<Name> home_object_symbol_; 218 Handle<Name> home_object_symbol_;
218 Handle<Name> prototype_string_; 219 Handle<Name> prototype_string_;
220 Handle<FixedArray> empty_fixed_array_;
219 }; 221 };
220 222
221 } // namespace interpreter 223 } // namespace interpreter
222 } // namespace internal 224 } // namespace internal
223 } // namespace v8 225 } // namespace v8
224 226
225 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 227 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler-dispatcher/compiler-dispatcher-job.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698