Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index ac4a63628d11548e030ba9aa9c092fbf96f8bfc7..2a6448205f19a9b161d921521c763bbe1656b2e5 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -874,9 +874,7 @@ void BytecodeGenerator::VisitDeclarations( |
Handle<FixedArray> data = isolate()->factory()->NewFixedArray( |
static_cast<int>(globals()->size()), TENURED); |
for (Handle<Object> obj : *globals()) data->set(array_index++, *obj); |
- int encoded_flags = DeclareGlobalsEvalFlag::encode(info()->is_eval()) | |
- DeclareGlobalsNativeFlag::encode(info()->is_native()) | |
- DeclareGlobalsLanguageMode::encode(language_mode()); |
+ int encoded_flags = info()->GetDeclareGlobalsFlags(); |
Register pairs = register_allocator()->NewRegister(); |
builder()->LoadLiteral(data); |