Changeset 51928 in webkit for trunk/JavaScriptCore
- Timestamp:
- Dec 9, 2009, 3:01:31 PM (15 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r51926 r51928 1 2009-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 1 13 2009-12-09 Steve Block <[email protected]> 2 14 -
trunk/JavaScriptCore/runtime/JSGlobalData.cpp
r51512 r51928 86 86 void* storage = &cell; 87 87 88 ASSERT(sizeof(JSArray) <= sizeof(CollectorCell));88 COMPILE_ASSERT(sizeof(JSArray) <= sizeof(CollectorCell), sizeof_JSArray_must_be_less_than_CollectorCell); 89 89 JSCell* jsArray = new (storage) JSArray(JSArray::createStructure(jsNull())); 90 90 jsArrayVPtr = jsArray->vptr(); 91 91 jsArray->~JSCell(); 92 92 93 ASSERT(sizeof(JSByteArray) <= sizeof(CollectorCell));93 COMPILE_ASSERT(sizeof(JSByteArray) <= sizeof(CollectorCell), sizeof_JSByteArray_must_be_less_than_CollectorCell); 94 94 JSCell* jsByteArray = new (storage) JSByteArray(JSByteArray::VPtrStealingHack); 95 95 jsByteArrayVPtr = jsByteArray->vptr(); 96 96 jsByteArray->~JSCell(); 97 97 98 ASSERT(sizeof(JSString) <= sizeof(CollectorCell));98 COMPILE_ASSERT(sizeof(JSString) <= sizeof(CollectorCell), sizeof_JSString_must_be_less_than_CollectorCell); 99 99 JSCell* jsString = new (storage) JSString(JSString::VPtrStealingHack); 100 100 jsStringVPtr = jsString->vptr(); 101 101 jsString->~JSCell(); 102 102 103 ASSERT(sizeof(JSFunction) <= sizeof(CollectorCell));103 COMPILE_ASSERT(sizeof(JSFunction) <= sizeof(CollectorCell), sizeof_JSFunction_must_be_less_than_CollectorCell); 104 104 JSCell* jsFunction = new (storage) JSFunction(JSFunction::createStructure(jsNull())); 105 105 jsFunctionVPtr = jsFunction->vptr();
Note:
See TracChangeset
for help on using the changeset viewer.