Changeset 51928 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Dec 9, 2009, 3:01:31 PM (15 years ago)
Author:
[email protected]
Message:

2009-12-09 Zoltan Herczeg <[email protected]>

Reviewed by Eric Seidel.

https://bugs.webkit.org/show_bug.cgi?id=31930

Update to r51457. ASSERTs changed to COMPILE_ASSERTs.
The speedup is 25%.

  • runtime/JSGlobalData.cpp: (JSC::VPtrSet::VPtrSet):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r51926 r51928  
     12009-12-09  Zoltan Herczeg  <[email protected]>
     2
     3        Reviewed by Eric Seidel.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=31930
     6
     7        Update to r51457. ASSERTs changed to COMPILE_ASSERTs.
     8        The speedup is 25%.
     9
     10        * runtime/JSGlobalData.cpp:
     11        (JSC::VPtrSet::VPtrSet):
     12
    1132009-12-09  Steve Block  <[email protected]>
    214
  • trunk/JavaScriptCore/runtime/JSGlobalData.cpp

    r51512 r51928  
    8686    void* storage = &cell;
    8787
    88     ASSERT(sizeof(JSArray) <= sizeof(CollectorCell));
     88    COMPILE_ASSERT(sizeof(JSArray) <= sizeof(CollectorCell), sizeof_JSArray_must_be_less_than_CollectorCell);
    8989    JSCell* jsArray = new (storage) JSArray(JSArray::createStructure(jsNull()));
    9090    jsArrayVPtr = jsArray->vptr();
    9191    jsArray->~JSCell();
    9292
    93     ASSERT(sizeof(JSByteArray) <= sizeof(CollectorCell));
     93    COMPILE_ASSERT(sizeof(JSByteArray) <= sizeof(CollectorCell), sizeof_JSByteArray_must_be_less_than_CollectorCell);
    9494    JSCell* jsByteArray = new (storage) JSByteArray(JSByteArray::VPtrStealingHack);
    9595    jsByteArrayVPtr = jsByteArray->vptr();
    9696    jsByteArray->~JSCell();
    9797
    98     ASSERT(sizeof(JSString) <= sizeof(CollectorCell));
     98    COMPILE_ASSERT(sizeof(JSString) <= sizeof(CollectorCell), sizeof_JSString_must_be_less_than_CollectorCell);
    9999    JSCell* jsString = new (storage) JSString(JSString::VPtrStealingHack);
    100100    jsStringVPtr = jsString->vptr();
    101101    jsString->~JSCell();
    102102
    103     ASSERT(sizeof(JSFunction) <= sizeof(CollectorCell));
     103    COMPILE_ASSERT(sizeof(JSFunction) <= sizeof(CollectorCell), sizeof_JSFunction_must_be_less_than_CollectorCell);
    104104    JSCell* jsFunction = new (storage) JSFunction(JSFunction::createStructure(jsNull()));
    105105    jsFunctionVPtr = jsFunction->vptr();
Note: See TracChangeset for help on using the changeset viewer.