Commit 1a543700 authored by Santiago Aboy Solanes's avatar Santiago Aboy Solanes Committed by Commit Bot

[compiler] Updated NotHasBoilerplate to HasBoilerplate

Change-Id: I1df5bbb5f974e09967a7e904556dd109235ecace
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2366780Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69533}
parent 4027f59f
...@@ -352,7 +352,7 @@ TNode<JSRegExp> ConstructorBuiltinsAssembler::CreateRegExpLiteral( ...@@ -352,7 +352,7 @@ TNode<JSRegExp> ConstructorBuiltinsAssembler::CreateRegExpLiteral(
TNode<FeedbackVector> feedback_vector = CAST(maybe_feedback_vector); TNode<FeedbackVector> feedback_vector = CAST(maybe_feedback_vector);
TNode<Object> literal_site = TNode<Object> literal_site =
CAST(LoadFeedbackVectorSlot(feedback_vector, slot)); CAST(LoadFeedbackVectorSlot(feedback_vector, slot));
GotoIf(NotHasBoilerplate(literal_site), &call_runtime); GotoIfNot(HasBoilerplate(literal_site), &call_runtime);
{ {
TNode<JSRegExp> boilerplate = CAST(literal_site); TNode<JSRegExp> boilerplate = CAST(literal_site);
int size = int size =
...@@ -386,7 +386,7 @@ TNode<JSArray> ConstructorBuiltinsAssembler::CreateShallowArrayLiteral( ...@@ -386,7 +386,7 @@ TNode<JSArray> ConstructorBuiltinsAssembler::CreateShallowArrayLiteral(
TNode<Object> maybe_allocation_site = TNode<Object> maybe_allocation_site =
CAST(LoadFeedbackVectorSlot(feedback_vector, slot)); CAST(LoadFeedbackVectorSlot(feedback_vector, slot));
GotoIf(NotHasBoilerplate(maybe_allocation_site), call_runtime); GotoIfNot(HasBoilerplate(maybe_allocation_site), call_runtime);
TNode<AllocationSite> allocation_site = CAST(maybe_allocation_site); TNode<AllocationSite> allocation_site = CAST(maybe_allocation_site);
TNode<JSArray> boilerplate = CAST(LoadBoilerplate(allocation_site)); TNode<JSArray> boilerplate = CAST(LoadBoilerplate(allocation_site));
...@@ -447,7 +447,7 @@ TNode<HeapObject> ConstructorBuiltinsAssembler::CreateShallowObjectLiteral( ...@@ -447,7 +447,7 @@ TNode<HeapObject> ConstructorBuiltinsAssembler::CreateShallowObjectLiteral(
Label* call_runtime) { Label* call_runtime) {
TNode<Object> maybe_allocation_site = TNode<Object> maybe_allocation_site =
CAST(LoadFeedbackVectorSlot(feedback_vector, slot)); CAST(LoadFeedbackVectorSlot(feedback_vector, slot));
GotoIf(NotHasBoilerplate(maybe_allocation_site), call_runtime); GotoIfNot(HasBoilerplate(maybe_allocation_site), call_runtime);
TNode<AllocationSite> allocation_site = CAST(maybe_allocation_site); TNode<AllocationSite> allocation_site = CAST(maybe_allocation_site);
TNode<JSObject> boilerplate = LoadBoilerplate(allocation_site); TNode<JSObject> boilerplate = LoadBoilerplate(allocation_site);
......
...@@ -10222,9 +10222,9 @@ TNode<MaybeObject> CodeStubAssembler::StoreWeakReferenceInFeedbackVector( ...@@ -10222,9 +10222,9 @@ TNode<MaybeObject> CodeStubAssembler::StoreWeakReferenceInFeedbackVector(
return weak_value; return weak_value;
} }
TNode<BoolT> CodeStubAssembler::NotHasBoilerplate( TNode<BoolT> CodeStubAssembler::HasBoilerplate(
TNode<Object> maybe_literal_site) { TNode<Object> maybe_literal_site) {
return TaggedIsSmi(maybe_literal_site); return TaggedIsNotSmi(maybe_literal_site);
} }
TNode<Smi> CodeStubAssembler::LoadTransitionInfo( TNode<Smi> CodeStubAssembler::LoadTransitionInfo(
......
...@@ -3180,8 +3180,7 @@ class V8_EXPORT_PRIVATE CodeStubAssembler ...@@ -3180,8 +3180,7 @@ class V8_EXPORT_PRIVATE CodeStubAssembler
TNode<AllocationSite> CreateAllocationSiteInFeedbackVector( TNode<AllocationSite> CreateAllocationSiteInFeedbackVector(
TNode<FeedbackVector> feedback_vector, TNode<UintPtrT> slot); TNode<FeedbackVector> feedback_vector, TNode<UintPtrT> slot);
// TODO(ishell, cbruni): Change to HasBoilerplate. TNode<BoolT> HasBoilerplate(TNode<Object> maybe_literal_site);
TNode<BoolT> NotHasBoilerplate(TNode<Object> maybe_literal_site);
TNode<Smi> LoadTransitionInfo(TNode<AllocationSite> allocation_site); TNode<Smi> LoadTransitionInfo(TNode<AllocationSite> allocation_site);
TNode<JSObject> LoadBoilerplate(TNode<AllocationSite> allocation_site); TNode<JSObject> LoadBoilerplate(TNode<AllocationSite> allocation_site);
TNode<Int32T> LoadElementsKind(TNode<AllocationSite> allocation_site); TNode<Int32T> LoadElementsKind(TNode<AllocationSite> allocation_site);
......
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