| Index: src/compilation-info.cc
|
| diff --git a/src/compilation-info.cc b/src/compilation-info.cc
|
| index 9f210a6785603ff81510f3bf5ef76b58ba947a91..4962f5ec0629d3cc99211efd13c25f84b6286c5a 100644
|
| --- a/src/compilation-info.cc
|
| +++ b/src/compilation-info.cc
|
| @@ -27,8 +27,6 @@ namespace internal {
|
| PARSE_INFO_GETTER(Handle<Script>, script)
|
| PARSE_INFO_GETTER(FunctionLiteral*, literal)
|
| PARSE_INFO_GETTER_WITH_DEFAULT(DeclarationScope*, scope, nullptr)
|
| -PARSE_INFO_GETTER_WITH_DEFAULT(Handle<Context>, context,
|
| - Handle<Context>::null())
|
| PARSE_INFO_GETTER(Handle<SharedFunctionInfo>, shared_info)
|
|
|
| #undef PARSE_INFO_GETTER
|
| @@ -178,6 +176,12 @@ bool CompilationInfo::ExpectsJSReceiverAsReceiver() {
|
| return is_sloppy(parse_info()->language_mode()) && !parse_info()->is_native();
|
| }
|
|
|
| +bool CompilationInfo::has_context() const { return !closure().is_null(); }
|
| +
|
| +Context* CompilationInfo::context() const {
|
| + return has_context() ? closure()->context() : nullptr;
|
| +}
|
| +
|
| bool CompilationInfo::has_native_context() const {
|
| return !closure().is_null() && (closure()->native_context() != nullptr);
|
| }
|
|
|