Chromium Code Reviews| Index: src/interpreter/bytecode-generator.h |
| diff --git a/src/interpreter/bytecode-generator.h b/src/interpreter/bytecode-generator.h |
| index 573ad673efce2cd1f8968e25957824a088c4fb5e..e004cd26a67f6d73ed302b6c3fc400ab59162187 100644 |
| --- a/src/interpreter/bytecode-generator.h |
| +++ b/src/interpreter/bytecode-generator.h |
| @@ -24,7 +24,7 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> { |
| public: |
| explicit BytecodeGenerator(CompilationInfo* info); |
| - Handle<BytecodeArray> MakeBytecode(); |
| + Handle<BytecodeArray> MakeBytecode(Isolate* isolate); |
| #define DECLARE_VISIT(type) void Visit##type(type* node); |
| AST_NODE_LIST(DECLARE_VISIT) |
| @@ -54,7 +54,7 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> { |
| void GenerateBytecode(); |
| void GenerateBytecodeBody(); |
| - void FinalizeBytecode(); |
| + void FinalizeBytecode(Isolate* isolate); |
| DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); |
| @@ -177,7 +177,6 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> { |
| void InitializeWithConsecutiveRegisters(Register (®isters)[N]); |
| inline BytecodeArrayBuilder* builder() const { return builder_; } |
| - inline Isolate* isolate() const { return isolate_; } |
| inline Zone* zone() const { return zone_; } |
| inline DeclarationScope* scope() const { return scope_; } |
| inline CompilationInfo* info() const { return info_; } |
| @@ -206,23 +205,32 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> { |
| inline LanguageMode language_mode() const; |
| int feedback_index(FeedbackVectorSlot slot) const; |
| - Isolate* isolate_; |
| + Handle<Name> home_object_symbol() const { return home_object_symbol_; } |
| + Handle<Name> prototype_string() const { return prototype_string_; } |
| + |
| Zone* zone_; |
| BytecodeArrayBuilder* builder_; |
| CompilationInfo* info_; |
| DeclarationScope* scope_; |
| + bool isolate_access_allowed_; |
|
Michael Starzinger
2016/08/16 12:26:50
nit: Field should no longer be required. Lets drop
rmcilroy
2016/08/16 14:22:30
Done.
|
| + |
| GlobalDeclarationsBuilder* globals_builder_; |
| ZoneVector<GlobalDeclarationsBuilder*> global_declarations_; |
| ZoneVector<std::pair<FunctionLiteral*, size_t>> function_literals_; |
| ZoneVector<std::pair<NativeFunctionLiteral*, size_t>> |
| native_function_literals_; |
| + |
| ControlScope* execution_control_; |
| ContextScope* execution_context_; |
| ExpressionResultScope* execution_result_; |
| RegisterAllocationScope* register_allocator_; |
| + |
| ZoneVector<BytecodeLabel> generator_resume_points_; |
| Register generator_state_; |
| int loop_depth_; |
| + |
| + Handle<Name> home_object_symbol_; |
| + Handle<Name> prototype_string_; |
| }; |
| } // namespace interpreter |