Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index bf1b9a7e9a944c87b0cb05df7dd7b8437dad00f8..b1b56a79aa23d3344624fc605d36b646d674ea41 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -442,10 +442,7 @@ void FullCodeGenerator::VisitSloppyBlockFunctionStatement( |
int FullCodeGenerator::DeclareGlobalsFlags() { |
- DCHECK(DeclareGlobalsLanguageMode::is_valid(language_mode())); |
- return DeclareGlobalsEvalFlag::encode(is_eval()) | |
- DeclareGlobalsNativeFlag::encode(is_native()) | |
- DeclareGlobalsLanguageMode::encode(language_mode()); |
+ return info_->GetDeclareGlobalsFlags(); |
} |
void FullCodeGenerator::PushOperand(Handle<Object> handle) { |