diff options
| author | Feng Qian <fqian@google.com> | 2009-06-29 15:50:38 -0700 |
|---|---|---|
| committer | Feng Qian <fqian@google.com> | 2009-06-29 15:50:38 -0700 |
| commit | 8ab7353e4b5239eb3cf7ab57747808a66c7056ad (patch) | |
| tree | 24386a9529e97905346a724d2044da7fd78a7c57 /V8Binding/v8 | |
| parent | c6e6c5df58bb3affa6188cf88839c0086ed6e6ff (diff) | |
| download | external_webkit-8ab7353e4b5239eb3cf7ab57747808a66c7056ad.zip external_webkit-8ab7353e4b5239eb3cf7ab57747808a66c7056ad.tar.gz external_webkit-8ab7353e4b5239eb3cf7ab57747808a66c7056ad.tar.bz2 | |
Add logging.
Diffstat (limited to 'V8Binding/v8')
| -rw-r--r-- | V8Binding/v8/src/objects-debug.cc | 2 | ||||
| -rw-r--r-- | V8Binding/v8/src/platform-posix.cc | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/V8Binding/v8/src/objects-debug.cc b/V8Binding/v8/src/objects-debug.cc index ba07af7..f42adf9 100644 --- a/V8Binding/v8/src/objects-debug.cc +++ b/V8Binding/v8/src/objects-debug.cc @@ -948,6 +948,7 @@ void Script::ScriptPrint() { } +#ifdef ENABLE_DEBUGGER_SUPPORT void DebugInfo::DebugInfoVerify() { CHECK(IsDebugInfo()); VerifyPointer(shared()); @@ -987,6 +988,7 @@ void BreakPointInfo::BreakPointInfoPrint() { PrintF("\n - break_point_objects: "); break_point_objects()->ShortPrint(); } +#endif void JSObject::IncrementSpillStatistics(SpillInformation* info) { diff --git a/V8Binding/v8/src/platform-posix.cc b/V8Binding/v8/src/platform-posix.cc index d628a51..741ba28 100644 --- a/V8Binding/v8/src/platform-posix.cc +++ b/V8Binding/v8/src/platform-posix.cc @@ -46,6 +46,11 @@ #include "platform.h" +#if defined(ANDROID) +#define LOG_TAG "v8" +#undef LOG +#include <utils/Log.h> +#endif namespace v8 { namespace internal { @@ -126,7 +131,11 @@ void OS::Print(const char* format, ...) { void OS::VPrint(const char* format, va_list args) { +#if defined(ANDROID) + LOGV(format, args); +#else vprintf(format, args); +#endif } @@ -139,7 +148,11 @@ void OS::PrintError(const char* format, ...) { void OS::VPrintError(const char* format, va_list args) { +#if defined(ANDROID) + LOGV(format, args); +#else vfprintf(stderr, format, args); +#endif } |
