Ignore:
Timestamp:
May 21, 2010, 4:06:09 PM (15 years ago)
Author:
[email protected]
Message:

Enforce size constraints on various data structures in JavaScriptCore/wtf.
https://bugs.webkit.org/show_bug.cgi?id=39327

Reviewed by Darin Adler.

I only modified the default build for OSX and Chromium's build file to include WTFCompileAsserts.cpp
as those should be sufficient to catch regressions on the size of the data structures.

  • JavaScriptCore.gypi: Added the WTFCompileAsserts.cpp file.
  • JavaScriptCore.xcodeproj/project.pbxproj: Added the WTFCompileAsserts.cpp file.
  • runtime/UString.cpp: Added a compile assert for UString size.
  • wtf/SizeLimits.cpp: Added compile asserts for data structures that didn't have cpp files.
  • wtf/text/StringImpl.cpp: Added a compile assert for StringImpl size.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.gypi

    r59955 r59969  
    404404            'wtf/RetainPtr.h',
    405405            'wtf/SegmentedVector.h',
     406            'wtf/SizeLimits.cpp',
    406407            'wtf/StaticConstructors.h',
    407408            'wtf/StdLibExtras.h',
Note: See TracChangeset for help on using the changeset viewer.