Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 88196f6605d5e6e22ca90e032268ba2c94827b29..36a0ecea8dcaba5dbf79d390e13a4eda544b9e73 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -2951,9 +2951,7 @@ void AstGraphBuilder::VisitDeclarations(ZoneList<Declaration*>* declarations) { |
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(); |
Node* flags = jsgraph()->Constant(encoded_flags); |
Node* pairs = jsgraph()->Constant(data); |
const Operator* op = javascript()->CallRuntime(Runtime::kDeclareGlobals); |