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/runtime/MachineContext.h

    r218080 r222495  
    147147#endif
    148148
    149 #elif defined(__GLIBC__)
     149#elif defined(__GLIBC__) || defined(__BIONIC__)
    150150
    151151#if CPU(X86)
     
    252252#endif
    253253
    254 #elif defined(__GLIBC__)
     254#elif defined(__GLIBC__) || defined(__BIONIC__)
    255255
    256256// The following sequence depends on glibc's sys/ucontext.h.
     
    355355#endif
    356356
    357 #elif defined(__GLIBC__)
     357#elif defined(__GLIBC__) || defined(__BIONIC__)
    358358
    359359// The following sequence depends on glibc's sys/ucontext.h.
     
    467467#endif
    468468
    469 #elif defined(__GLIBC__)
     469#elif defined(__GLIBC__) || defined(__BIONIC__)
    470470
    471471// The following sequence depends on glibc's sys/ucontext.h.
     
    584584#endif
    585585
    586 #elif defined(__GLIBC__)
     586#elif defined(__GLIBC__) || defined(__BIONIC__)
    587587
    588588// The following sequence depends on glibc's sys/ucontext.h.
Note: See TracChangeset for help on using the changeset viewer.