Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index d70b4805e1a66fc045f9612b0721add3d4328f91..ecfa118ebbce0b3c7f7ae7dfe8e4ad76d4832d7a 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -12266,9 +12266,7 @@ void HOptimizedGraphBuilder::VisitDeclarations( |
Handle<FixedArray> array = |
isolate()->factory()->NewFixedArray(globals_.length(), TENURED); |
for (int i = 0; i < globals_.length(); ++i) array->set(i, *globals_.at(i)); |
- int flags = DeclareGlobalsEvalFlag::encode(current_info()->is_eval()) | |
- DeclareGlobalsNativeFlag::encode(current_info()->is_native()) | |
- DeclareGlobalsLanguageMode::encode(function_language_mode()); |
+ int flags = current_info()->GetDeclareGlobalsFlags(); |
Add<HDeclareGlobals>(array, flags); |
globals_.Rewind(0); |
} |