[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:
gsathya 2016-12-14 17:08:00 -08:00 committed by Commit bot
parent bbc68d4110
commit 6876165072
2 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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,