| OLD | NEW |
| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 ExpressionResultScope* execution_result() const { return execution_result_; } | 186 ExpressionResultScope* execution_result() const { return execution_result_; } |
| 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> iterator_symbol() const { return iterator_symbol_; } |
| 196 Handle<Name> prototype_string() const { return prototype_string_; } | 197 Handle<Name> prototype_string() const { return prototype_string_; } |
| 197 Handle<FixedArray> empty_fixed_array() const { return empty_fixed_array_; } | 198 Handle<FixedArray> empty_fixed_array() const { return empty_fixed_array_; } |
| 198 | 199 |
| 199 Zone* zone_; | 200 Zone* zone_; |
| 200 BytecodeArrayBuilder* builder_; | 201 BytecodeArrayBuilder* builder_; |
| 201 CompilationInfo* info_; | 202 CompilationInfo* info_; |
| 202 DeclarationScope* scope_; | 203 DeclarationScope* scope_; |
| 203 | 204 |
| 204 GlobalDeclarationsBuilder* globals_builder_; | 205 GlobalDeclarationsBuilder* globals_builder_; |
| 205 ZoneVector<GlobalDeclarationsBuilder*> global_declarations_; | 206 ZoneVector<GlobalDeclarationsBuilder*> global_declarations_; |
| 206 ZoneVector<std::pair<FunctionLiteral*, size_t>> function_literals_; | 207 ZoneVector<std::pair<FunctionLiteral*, size_t>> function_literals_; |
| 207 ZoneVector<std::pair<NativeFunctionLiteral*, size_t>> | 208 ZoneVector<std::pair<NativeFunctionLiteral*, size_t>> |
| 208 native_function_literals_; | 209 native_function_literals_; |
| 209 | 210 |
| 210 ControlScope* execution_control_; | 211 ControlScope* execution_control_; |
| 211 ContextScope* execution_context_; | 212 ContextScope* execution_context_; |
| 212 ExpressionResultScope* execution_result_; | 213 ExpressionResultScope* execution_result_; |
| 213 | 214 |
| 214 ZoneVector<BytecodeLabel> generator_resume_points_; | 215 ZoneVector<BytecodeLabel> generator_resume_points_; |
| 215 Register generator_state_; | 216 Register generator_state_; |
| 216 int loop_depth_; | 217 int loop_depth_; |
| 217 | 218 |
| 218 Handle<Name> home_object_symbol_; | 219 Handle<Name> home_object_symbol_; |
| 220 Handle<Name> iterator_symbol_; |
| 219 Handle<Name> prototype_string_; | 221 Handle<Name> prototype_string_; |
| 220 Handle<FixedArray> empty_fixed_array_; | 222 Handle<FixedArray> empty_fixed_array_; |
| 221 }; | 223 }; |
| 222 | 224 |
| 223 } // namespace interpreter | 225 } // namespace interpreter |
| 224 } // namespace internal | 226 } // namespace internal |
| 225 } // namespace v8 | 227 } // namespace v8 |
| 226 | 228 |
| 227 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 229 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
| OLD | NEW |