Ignore:
Timestamp:
Jan 25, 2018, 9:21:09 AM (8 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r227592.
https://bugs.webkit.org/show_bug.cgi?id=182110

it made ARM64 (Linux and iOS) crash (Requested by pizlo-mbp on
#webkit).

Reverted changeset:

"JSC GC should support TLCs (thread local caches)"
https://bugs.webkit.org/show_bug.cgi?id=181559
https://trac.webkit.org/changeset/227592

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/AccessCase.cpp

    r227592 r227609  
    11/*
    2  * Copyright (C) 2017-2018 Apple Inc. All rights reserved.
     2 * Copyright (C) 2017 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    956956
    957957            if (allocatingInline) {
    958                 Allocator allocator = vm.jsValueGigacageAuxiliarySpace.allocatorFor(newSize, AllocatorForMode::AllocatorIfExists);
    959 
    960                 jit.emitAllocate(scratchGPR, JITAllocator::constant(allocator), scratchGPR2, scratchGPR3, slowPath);
     958                BlockDirectory* allocator = vm.jsValueGigacageAuxiliarySpace.allocatorFor(newSize, AllocatorForMode::AllocatorIfExists);
     959
     960                if (!allocator) {
     961                    // Yuck, this case would suck!
     962                    slowPath.append(jit.jump());
     963                }
     964
     965                jit.move(CCallHelpers::TrustedImmPtr(allocator), scratchGPR2);
     966                jit.emitAllocate(scratchGPR, allocator, scratchGPR2, scratchGPR3, slowPath);
    961967                jit.addPtr(CCallHelpers::TrustedImm32(newSize + sizeof(IndexingHeader)), scratchGPR);
    962968
Note: See TracChangeset for help on using the changeset viewer.