Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 7977bd04d3da23c6ef018fd343906bd241a27e86..997b3a6e19ebceef93d6abfaa6a2828ba44f023e 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -60,7 +60,8 @@ PARSE_INFO_GETTER_WITH_DEFAULT(LanguageMode, language_mode, STRICT) |
PARSE_INFO_GETTER_WITH_DEFAULT(Handle<JSFunction>, closure, |
Handle<JSFunction>::null()) |
PARSE_INFO_GETTER_WITH_DEFAULT(Scope*, scope, nullptr) |
-PARSE_INFO_GETTER(Handle<Context>, context) |
+PARSE_INFO_GETTER_WITH_DEFAULT(Handle<Context>, context, |
+ Handle<Context>::null()) |
PARSE_INFO_GETTER(Handle<SharedFunctionInfo>, shared_info) |
#undef PARSE_INFO_GETTER |
@@ -110,11 +111,6 @@ bool CompilationInfo::has_shared_info() const { |
} |
-bool CompilationInfo::has_context() const { |
- return parse_info_ && !parse_info_->context().is_null(); |
-} |
- |
- |
CompilationInfo::CompilationInfo(ParseInfo* parse_info) |
: CompilationInfo(parse_info, nullptr, Code::ComputeFlags(Code::FUNCTION), |
BASE, parse_info->isolate(), parse_info->zone()) { |