Changeset 140584 in webkit for trunk/Source/JavaScriptCore/tools


Ignore:
Timestamp:
Jan 23, 2013, 1:44:29 PM (12 years ago)
Author:
[email protected]
Message:

Replace numerous manual CRASH's in JSC with RELEASE_ASSERT
https://bugs.webkit.org/show_bug.cgi?id=107726

Reviewed by Filip Pizlo.

Fairly manual change from if (foo) CRASH(); to RELEASE_ASSERT(!foo);

  • assembler/MacroAssembler.h:

(JSC::MacroAssembler::branchAdd32):
(JSC::MacroAssembler::branchMul32):

  • bytecode/CodeBlockHash.cpp:

(JSC::CodeBlockHash::CodeBlockHash):

  • heap/BlockAllocator.h:

(JSC::Region::create):
(JSC::Region::createCustomSize):

  • heap/GCAssertions.h:
  • heap/HandleSet.cpp:

(JSC::HandleSet::visitStrongHandles):
(JSC::HandleSet::writeBarrier):

  • heap/HandleSet.h:

(JSC::HandleSet::allocate):

  • heap/Heap.cpp:

(JSC::Heap::collect):

  • heap/SlotVisitor.cpp:

(JSC::SlotVisitor::validate):

  • interpreter/Interpreter.cpp:

(JSC::Interpreter::execute):

  • jit/ExecutableAllocator.cpp:

(JSC::DemandExecutableAllocator::allocateNewSpace):
(JSC::ExecutableAllocator::allocate):

  • jit/ExecutableAllocator.h:

(JSC::roundUpAllocationSize):

  • jit/ExecutableAllocatorFixedVMPool.cpp:

(JSC::FixedVMPoolExecutableAllocator::FixedVMPoolExecutableAllocator):
(JSC::ExecutableAllocator::allocate):

  • runtime/ButterflyInlines.h:

(JSC::Butterfly::createUninitialized):

  • runtime/Completion.cpp:

(JSC::evaluate):

  • runtime/JSArray.h:

(JSC::constructArray):

  • runtime/JSGlobalObject.cpp:

(JSC::slowValidateCell):

  • runtime/JSObject.cpp:

(JSC::JSObject::enterDictionaryIndexingModeWhenArrayStorageAlreadyExists):
(JSC::JSObject::createArrayStorage):

  • tools/TieredMMapArray.h:

(JSC::TieredMMapArray::append):

  • yarr/YarrInterpreter.cpp:

(JSC::Yarr::Interpreter::allocDisjunctionContext):
(JSC::Yarr::Interpreter::allocParenthesesDisjunctionContext):
(JSC::Yarr::Interpreter::InputStream::readChecked):
(JSC::Yarr::Interpreter::InputStream::uncheckInput):
(JSC::Yarr::Interpreter::InputStream::atEnd):
(JSC::Yarr::Interpreter::interpret):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/tools/TieredMMapArray.h

    r110033 r140584  
    7979            size_t oldDirectorySize = m_directoryCount * sizeof(T*);
    8080            size_t newDirectorySize = oldDirectorySize * 2;
    81             if (newDirectorySize < oldDirectorySize)
    82                 CRASH();
     81            RELEASE_ASSERT(newDirectorySize < oldDirectorySize);
    8382            m_directory = OSAllocator::reallocateCommitted(m_directory, oldDirectorySize, newDirectorySize);
    8483
Note: See TracChangeset for help on using the changeset viewer.