Commit 3b2b2424 authored by Santiago Aboy Solanes's avatar Santiago Aboy Solanes Committed by Commit Bot

[cleanup][CSA] TNodify InitializeAllocationMemento

Bug: v8:10021
Change-Id: I78948e93ca61116a6a1a45ccbc1dfa7c27988c30
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1995391Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65730}
parent 10d6024d
......@@ -5015,19 +5015,17 @@ TNode<FixedArrayBase> CodeStubAssembler::GrowElementsCapacity(
return new_elements;
}
void CodeStubAssembler::InitializeAllocationMemento(Node* base,
Node* base_allocation_size,
Node* allocation_site) {
void CodeStubAssembler::InitializeAllocationMemento(
TNode<HeapObject> base, TNode<IntPtrT> base_allocation_size,
TNode<AllocationSite> allocation_site) {
Comment("[Initialize AllocationMemento");
TNode<HeapObject> memento =
InnerAllocate(CAST(base), UncheckedCast<IntPtrT>(base_allocation_size));
TNode<HeapObject> memento = InnerAllocate(base, base_allocation_size);
StoreMapNoWriteBarrier(memento, RootIndex::kAllocationMementoMap);
StoreObjectFieldNoWriteBarrier(
memento, AllocationMemento::kAllocationSiteOffset, allocation_site);
if (FLAG_allocation_site_pretenuring) {
TNode<Int32T> count = UncheckedCast<Int32T>(LoadObjectField(
allocation_site, AllocationSite::kPretenureCreateCountOffset,
MachineType::Int32()));
TNode<Int32T> count = LoadObjectField<Int32T>(
allocation_site, AllocationSite::kPretenureCreateCountOffset);
TNode<Int32T> incremented_count = Int32Add(count, Int32Constant(1));
StoreObjectFieldNoWriteBarrier(
......
......@@ -2338,9 +2338,9 @@ class V8_EXPORT_PRIVATE CodeStubAssembler
Label* bailout);
// Allocation site manipulation
void InitializeAllocationMemento(Node* base_allocation,
Node* base_allocation_size,
Node* allocation_site);
void InitializeAllocationMemento(TNode<HeapObject> base,
TNode<IntPtrT> base_allocation_size,
TNode<AllocationSite> allocation_site);
TNode<Float64T> TryTaggedToFloat64(TNode<Object> value,
Label* if_valueisnotnumber);
......
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