Commit 03c169f9 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

[compiler] Deprecate CompilationInfo::has_context predicate.

R=bmeurer@chromium.org

Review URL: https://codereview.chromium.org/1863793004

Cr-Commit-Position: refs/heads/master@{#35348}
parent 03975bef
...@@ -60,7 +60,8 @@ PARSE_INFO_GETTER_WITH_DEFAULT(LanguageMode, language_mode, STRICT) ...@@ -60,7 +60,8 @@ PARSE_INFO_GETTER_WITH_DEFAULT(LanguageMode, language_mode, STRICT)
PARSE_INFO_GETTER_WITH_DEFAULT(Handle<JSFunction>, closure, PARSE_INFO_GETTER_WITH_DEFAULT(Handle<JSFunction>, closure,
Handle<JSFunction>::null()) Handle<JSFunction>::null())
PARSE_INFO_GETTER_WITH_DEFAULT(Scope*, scope, nullptr) 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) PARSE_INFO_GETTER(Handle<SharedFunctionInfo>, shared_info)
#undef PARSE_INFO_GETTER #undef PARSE_INFO_GETTER
...@@ -110,11 +111,6 @@ bool CompilationInfo::has_shared_info() const { ...@@ -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::CompilationInfo(ParseInfo* parse_info)
: CompilationInfo(parse_info, nullptr, Code::ComputeFlags(Code::FUNCTION), : CompilationInfo(parse_info, nullptr, Code::ComputeFlags(Code::FUNCTION),
BASE, parse_info->isolate(), parse_info->zone()) { BASE, parse_info->isolate(), parse_info->zone()) {
......
...@@ -184,7 +184,6 @@ class CompilationInfo { ...@@ -184,7 +184,6 @@ class CompilationInfo {
Handle<Context> context() const; Handle<Context> context() const;
Handle<SharedFunctionInfo> shared_info() const; Handle<SharedFunctionInfo> shared_info() const;
bool has_shared_info() const; bool has_shared_info() const;
bool has_context() const;
// ----------------------------------------------------------- // -----------------------------------------------------------
Isolate* isolate() const { Isolate* isolate() const {
......
...@@ -274,8 +274,7 @@ void CodeGenerator::RecordSafepoint(ReferenceMap* references, ...@@ -274,8 +274,7 @@ void CodeGenerator::RecordSafepoint(ReferenceMap* references,
bool CodeGenerator::IsMaterializableFromFrame(Handle<HeapObject> object, bool CodeGenerator::IsMaterializableFromFrame(Handle<HeapObject> object,
int* slot_return) { int* slot_return) {
if (linkage()->GetIncomingDescriptor()->IsJSFunctionCall()) { if (linkage()->GetIncomingDescriptor()->IsJSFunctionCall()) {
if (info()->has_context() && object.is_identical_to(info()->context()) && if (object.is_identical_to(info()->context()) && !info()->is_osr()) {
!info()->is_osr()) {
*slot_return = Frame::kContextSlot; *slot_return = Frame::kContextSlot;
return true; return true;
} else if (object.is_identical_to(info()->closure())) { } else if (object.is_identical_to(info()->closure())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment