| Index: src/interpreter/bytecode-generator.h
|
| diff --git a/src/interpreter/bytecode-generator.h b/src/interpreter/bytecode-generator.h
|
| index 03067de08d47967c134cb23dd38f9b78ace8103f..482c0445752aae77e9d1e17c2060014d34e23058 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();
|
|
|
|
|