[stubs] Add AllocationFlags parameter to AllocateJSObjectFromMap
Review-Url: https://codereview.chromium.org/2581443002 Cr-Commit-Position: refs/heads/master@{#41702}
This commit is contained in:
parent
bbc68d4110
commit
6876165072
@ -1899,12 +1899,13 @@ Node* CodeStubAssembler::AllocateNameDictionary(Node* at_least_space_for) {
|
||||
}
|
||||
|
||||
Node* CodeStubAssembler::AllocateJSObjectFromMap(Node* map, Node* properties,
|
||||
Node* elements) {
|
||||
Node* elements,
|
||||
AllocationFlags flags) {
|
||||
CSA_ASSERT(this, IsMap(map));
|
||||
Node* size =
|
||||
IntPtrMul(LoadMapInstanceSize(map), IntPtrConstant(kPointerSize));
|
||||
CSA_ASSERT(this, IsRegularHeapObjectSize(size));
|
||||
Node* object = Allocate(size);
|
||||
Node* object = Allocate(size, flags);
|
||||
StoreMapNoWriteBarrier(object, map);
|
||||
InitializeJSObjectFromMap(object, map, size, properties, elements);
|
||||
return object;
|
||||
|
@ -503,7 +503,8 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler {
|
||||
Node* AllocateNameDictionary(Node* capacity);
|
||||
|
||||
Node* AllocateJSObjectFromMap(Node* map, Node* properties = nullptr,
|
||||
Node* elements = nullptr);
|
||||
Node* elements = nullptr,
|
||||
AllocationFlags flags = kNone);
|
||||
|
||||
void InitializeJSObjectFromMap(Node* object, Node* map, Node* size,
|
||||
Node* properties = nullptr,
|
||||
|
Loading…
Reference in New Issue
Block a user