Changeset 227609 in webkit for trunk/Source/JavaScriptCore/bytecode/ObjectAllocationProfileInlines.h
- Timestamp:
- Jan 25, 2018, 9:21:09 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/ObjectAllocationProfileInlines.h
r227592 r227609 54 54 if (Structure* structure = executable->cachedPolyProtoStructure()) { 55 55 RELEASE_ASSERT(structure->typeInfo().type() == FinalObjectType); 56 m_allocator = Allocator();56 m_allocator = nullptr; 57 57 m_structure.set(vm, owner, structure); 58 58 m_inlineCapacity = structure->inlineCapacity(); … … 100 100 101 101 size_t allocationSize = JSFinalObject::allocationSize(inlineCapacity); 102 Allocatorallocator = vm.cellSpace.allocatorForNonVirtual(allocationSize, AllocatorForMode::EnsureAllocator);102 BlockDirectory* allocator = vm.cellSpace.allocatorForNonVirtual(allocationSize, AllocatorForMode::EnsureAllocator); 103 103 104 104 // Take advantage of extra inline capacity available in the size class. 105 105 if (allocator) { 106 size_t slop = (allocator .cellSize(vm.heap) - allocationSize) / sizeof(WriteBarrier<Unknown>);106 size_t slop = (allocator->cellSize() - allocationSize) / sizeof(WriteBarrier<Unknown>); 107 107 inlineCapacity += slop; 108 108 if (inlineCapacity > JSFinalObject::maxInlineCapacity()) … … 114 114 if (isPolyProto) { 115 115 ASSERT(structure->hasPolyProto()); 116 m_allocator = Allocator();116 m_allocator = nullptr; 117 117 executable->setCachedPolyProtoStructure(vm, structure); 118 118 } else {
Note:
See TracChangeset
for help on using the changeset viewer.