⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 242892 in webkit


Ignore:
Timestamp:
Mar 13, 2019, 11:09:00 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

Fix testbmalloc build
https://bugs.webkit.org/show_bug.cgi?id=195660

Patch by Sam Weinig <sam@webkit.org> on 2019-03-13
Reviewed by Geoffrey Garen.

  • bmalloc.xcodeproj/project.pbxproj:

Link Foundation in when building testbmalloc. Since bmalloc requires Foundation, and is a static
library, all clients of bmalloc are required to link it themselves.

  • bmalloc/IsoPageInlines.h:
  • bmalloc/StdLibExtras.h: Added.

(bmalloc::bitwise_cast):
Add bitwise_cast implementation, and use it in IsoPageInlines.h. It is a layering violation
to expect the one from WTF to be available, as seems to have been the case.

Location:
trunk/Source/bmalloc
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/bmalloc/ChangeLog

    r242812 r242892  
     12019-03-13  Sam Weinig  <sam@webkit.org>
     2
     3        Fix testbmalloc build
     4        https://bugs.webkit.org/show_bug.cgi?id=195660
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        * bmalloc.xcodeproj/project.pbxproj:
     9        Link Foundation in when building testbmalloc. Since bmalloc requires Foundation, and is a static
     10        library, all clients of bmalloc are required to link it themselves.
     11       
     12        * bmalloc/IsoPageInlines.h:
     13        * bmalloc/StdLibExtras.h: Added.
     14        (bmalloc::bitwise_cast):
     15        Add bitwise_cast implementation, and use it in IsoPageInlines.h. It is a layering violation
     16        to expect the one from WTF to be available, as seems to have been the case.
     17
    1182019-03-12  Robin Morisset  <rmorisset@apple.com>
    219
  • trunk/Source/bmalloc/bmalloc.xcodeproj/project.pbxproj

    r241841 r242892  
    138138                7939885B2076EEB60074A2E7 /* BulkDecommit.h in Headers */ = {isa = PBXBuildFile; fileRef = 7939885A2076EEB50074A2E7 /* BulkDecommit.h */; settings = {ATTRIBUTES = (Private, ); }; };
    139139                795AB3C7206E0D340074FE76 /* PhysicalPageMap.h in Headers */ = {isa = PBXBuildFile; fileRef = 795AB3C6206E0D250074FE76 /* PhysicalPageMap.h */; settings = {ATTRIBUTES = (Private, ); }; };
     140                7C571EFF22388B080077A3C7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 142FC6212096409E00A99362 /* Foundation.framework */; };
     141                7C571F0122388B840077A3C7 /* StdLibExtras.h in Headers */ = {isa = PBXBuildFile; fileRef = 7C571F0022388B840077A3C7 /* StdLibExtras.h */; settings = {ATTRIBUTES = (Private, ); }; };
    140142                AD0934331FCF406D00E85EB5 /* BCompiler.h in Headers */ = {isa = PBXBuildFile; fileRef = AD0934321FCF405000E85EB5 /* BCompiler.h */; settings = {ATTRIBUTES = (Private, ); }; };
    141143                AD14AD29202529C400890E3B /* ProcessCheck.h in Headers */ = {isa = PBXBuildFile; fileRef = AD14AD27202529A600890E3B /* ProcessCheck.h */; };
     
    302304                7939885A2076EEB50074A2E7 /* BulkDecommit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BulkDecommit.h; path = bmalloc/BulkDecommit.h; sourceTree = "<group>"; };
    303305                795AB3C6206E0D250074FE76 /* PhysicalPageMap.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = PhysicalPageMap.h; path = bmalloc/PhysicalPageMap.h; sourceTree = "<group>"; };
     306                7C571F0022388B840077A3C7 /* StdLibExtras.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = StdLibExtras.h; path = bmalloc/StdLibExtras.h; sourceTree = "<group>"; };
    304307                A1B89B86221DFFEE00EB4CEA /* SDKVariant.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = SDKVariant.xcconfig; sourceTree = "<group>"; };
    305308                AD0934321FCF405000E85EB5 /* BCompiler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BCompiler.h; path = bmalloc/BCompiler.h; sourceTree = "<group>"; };
     
    314317                        buildActionMask = 2147483647;
    315318                        files = (
     319                                7C571EFF22388B080077A3C7 /* Foundation.framework in Frameworks */,
    316320                                0F7EB7FA1F95414C00F1ABCB /* libbmalloc.a in Frameworks */,
    317321                        );
     
    549553                                145F6878179E3A4400D65598 /* Range.h */,
    550554                                148EFAE61D6B953B008E721E /* ScopeExit.h */,
     555                                7C571F0022388B840077A3C7 /* StdLibExtras.h */,
    551556                                1417F64F18B7280C0076FA3F /* Syscall.h */,
    552557                                1479E21217A1A255006D4E9D /* Vector.h */,
     
    661666                                14DD78BC18F48D6B00950702 /* SmallLine.h in Headers */,
    662667                                14DD78BD18F48D6B00950702 /* SmallPage.h in Headers */,
     668                                7C571F0122388B840077A3C7 /* StdLibExtras.h in Headers */,
    663669                                14DD78CE18F48D7500950702 /* Syscall.h in Headers */,
    664670                                14DD78CF18F48D7500950702 /* Vector.h in Headers */,
  • trunk/Source/bmalloc/bmalloc/IsoPageInlines.h

    r238414 r242892  
    2929#include "IsoDirectory.h"
    3030#include "IsoPage.h"
     31#include "StdLibExtras.h"
    3132#include "VMAllocate.h"
    3233
Note: See TracChangeset for help on using the changeset viewer.