diff options
Diffstat (limited to 'Source/JavaScriptCore')
| -rw-r--r-- | Source/JavaScriptCore/wtf/Assertions.cpp | 8 | ||||
| -rw-r--r-- | Source/JavaScriptCore/wtf/Platform.h | 5 | 
2 files changed, 11 insertions, 2 deletions
| diff --git a/Source/JavaScriptCore/wtf/Assertions.cpp b/Source/JavaScriptCore/wtf/Assertions.cpp index 930368c..0642414 100644 --- a/Source/JavaScriptCore/wtf/Assertions.cpp +++ b/Source/JavaScriptCore/wtf/Assertions.cpp @@ -66,6 +66,10 @@  #include <execinfo.h>  #endif +#if OS(ANDROID) +#include <utils/Log.h> +#endif +  extern "C" {  #if PLATFORM(BREWMP) @@ -124,7 +128,9 @@ static void vprintf_stderr_common(const char* format, va_list args)          vsnprintf(buffer.data(), size, format, args);          printLog(buffer);      } - +#elif OS(ANDROID) +    LOG_PRI_VA(ANDROID_LOG_DEBUG, "WebKit", format, args); +    return;  #elif HAVE(ISDEBUGGERPRESENT)      if (IsDebuggerPresent()) {          size_t size = 1024; diff --git a/Source/JavaScriptCore/wtf/Platform.h b/Source/JavaScriptCore/wtf/Platform.h index e92af89..d7cd222 100644 --- a/Source/JavaScriptCore/wtf/Platform.h +++ b/Source/JavaScriptCore/wtf/Platform.h @@ -676,7 +676,10 @@  #if PLATFORM(ANDROID)  #define WEBCORE_NAVIGATOR_VENDOR "Google Inc." -#define LOG_DISABLED 1 +// Force LOG_ERROR() to be enabled in all builds. All other logging and +// assertions are enabled in debug builds only. +#define ERROR_DISABLED 0 +  // This must be defined before we include FastMalloc.h in config.h.  #define USE_SYSTEM_MALLOC 1 | 
