Ignore:
Timestamp:
Sep 26, 2017, 12:07:45 AM (8 years ago)
Author:
[email protected]
Message:

Support building JavaScriptCore with the Bionic C library
https://bugs.webkit.org/show_bug.cgi?id=177427

Reviewed by Michael Catanzaro.

Source/JavaScriptCore:

When compiling with the Bionic C library, the MachineContext.h header
should enable the same code paths that are enabled for the GNU C library.

The Bionic C library defines the BIONIC macro, but unlike other C
libraries that mimic the GNU one, it doesn't define GLIBC. So the
BIONIC macro checks have to match the GLIBC ones.

  • runtime/MachineContext.h:

(JSC::MachineContext::stackPointer):
(JSC::MachineContext::framePointer):
(JSC::MachineContext::instructionPointer):
(JSC::MachineContext::argumentPointer<1>):
(JSC::MachineContext::llintInstructionPointer):

Source/WTF:

  • wtf/Platform.h: Define HAVE_MACHINE_CONTEXT when BIONIC

is defined, i.e. when building with the Bionic C library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r222486 r222495  
     12017-09-26  Zan Dobersek  <[email protected]>
     2
     3        Support building JavaScriptCore with the Bionic C library
     4        https://bugs.webkit.org/show_bug.cgi?id=177427
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        When compiling with the Bionic C library, the MachineContext.h header
     9        should enable the same code paths that are enabled for the GNU C library.
     10
     11        The Bionic C library defines the __BIONIC__ macro, but unlike other C
     12        libraries that mimic the GNU one, it doesn't define __GLIBC__. So the
     13        __BIONIC__ macro checks have to match the __GLIBC__ ones.
     14
     15        * runtime/MachineContext.h:
     16        (JSC::MachineContext::stackPointer):
     17        (JSC::MachineContext::framePointer):
     18        (JSC::MachineContext::instructionPointer):
     19        (JSC::MachineContext::argumentPointer<1>):
     20        (JSC::MachineContext::llintInstructionPointer):
     21
    1222017-09-25  Devin Rousso  <[email protected]>
    223
Note: See TracChangeset for help on using the changeset viewer.