Commit a215645f authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[turbofan] Remove redundant AllocationSiteData::IsFastLiteral.

R=jarin@chromium.org

Bug: v8:7790
Change-Id: Id057b31fca7db4c63ae3dd6bb111f8a7e5a1f78b
Reviewed-on: https://chromium-review.googlesource.com/1184925
Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55324}
parent fd3506cd
......@@ -240,9 +240,8 @@ class AllocationSiteData : public HeapObjectData {
GetPretenureMode(object_->GetPretenureMode()),
nested_site(GET_OR_CREATE(nested_site)) {
if (PointsToLiteral) {
IsFastLiteral = IsInlinableFastLiteral(
handle(object_->boilerplate(), broker->isolate()));
if (IsFastLiteral) {
if (IsInlinableFastLiteral(
handle(object_->boilerplate(), broker->isolate()))) {
boilerplate = GET_OR_CREATE(boilerplate)->AsJSObject();
}
} else {
......@@ -254,9 +253,6 @@ class AllocationSiteData : public HeapObjectData {
bool const PointsToLiteral;
PretenureFlag const GetPretenureMode;
ObjectData* const nested_site;
// These are only valid if PointsToLiteral is true.
bool IsFastLiteral = false;
JSObjectData* boilerplate = nullptr;
// These are only valid if PointsToLiteral is false.
......@@ -778,7 +774,7 @@ bool AllocationSiteRef::IsFastLiteral() const {
return IsInlinableFastLiteral(
handle(object<AllocationSite>()->boilerplate(), broker()->isolate()));
} else {
return data()->AsAllocationSite()->IsFastLiteral;
return data()->AsAllocationSite()->boilerplate != nullptr;
}
}
......
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