Index: src/interpreter/bytecode-generator.h |
diff --git a/src/interpreter/bytecode-generator.h b/src/interpreter/bytecode-generator.h |
index 0447aa8f4522e161c3502e95710f5e02364ddeb2..38edee9297cb2871cfa2cb1397c50ad391b22861 100644 |
--- a/src/interpreter/bytecode-generator.h |
+++ b/src/interpreter/bytecode-generator.h |
@@ -15,6 +15,7 @@ namespace v8 { |
namespace internal { |
class CompilationInfo; |
+enum class ShouldCompile; |
namespace interpreter { |
@@ -25,7 +26,8 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> { |
explicit BytecodeGenerator(CompilationInfo* info); |
void GenerateBytecode(uintptr_t stack_limit); |
- Handle<BytecodeArray> FinalizeBytecode(Isolate* isolate); |
+ Handle<BytecodeArray> FinalizeBytecode(Isolate* isolate, |
+ ShouldCompile should_compile); |
#define DECLARE_VISIT(type) void Visit##type(type* node); |
AST_NODE_LIST(DECLARE_VISIT) |
@@ -53,7 +55,7 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> { |
enum class TestFallthrough { kThen, kElse, kNone }; |
void GenerateBytecodeBody(); |
- void AllocateDeferredConstants(); |
+ void AllocateDeferredConstants(ShouldCompile should_compile); |
DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); |