| Index: src/log.h
|
| ===================================================================
|
| --- src/log.h (revision 8778)
|
| +++ src/log.h (working copy)
|
| @@ -79,7 +79,6 @@
|
| class Ticker;
|
|
|
| #undef LOG
|
| -#ifdef ENABLE_LOGGING_AND_PROFILING
|
| #define LOG(isolate, Call) \
|
| do { \
|
| v8::internal::Logger* logger = \
|
| @@ -87,9 +86,6 @@
|
| if (logger->is_logging()) \
|
| logger->Call; \
|
| } while (false)
|
| -#else
|
| -#define LOG(isolate, Call) ((void) 0)
|
| -#endif
|
|
|
| #define LOG_EVENTS_AND_TAGS_LIST(V) \
|
| V(CODE_CREATION_EVENT, "code-creation") \
|
| @@ -162,7 +158,9 @@
|
| Sampler* sampler();
|
|
|
| // Frees resources acquired in Setup.
|
| - void TearDown();
|
| + // When a temporary file is used for the log, returns its stream descriptor,
|
| + // leaving the file open.
|
| + FILE* TearDown();
|
|
|
| // Enable the computation of a sliding window of states.
|
| void EnableSlidingStateWindow();
|
| @@ -273,7 +271,6 @@
|
| // Log an event reported from generated code
|
| void LogRuntime(Vector<const char> format, JSArray* args);
|
|
|
| -#ifdef ENABLE_LOGGING_AND_PROFILING
|
| bool is_logging() {
|
| return logging_nesting_ > 0;
|
| }
|
| @@ -285,10 +282,6 @@
|
| void ResumeProfiler();
|
| bool IsProfilerPaused();
|
|
|
| - // If logging is performed into a memory buffer, allows to
|
| - // retrieve previously written messages. See v8.h.
|
| - int GetLogLines(int from_pos, char* dest_buf, int max_size);
|
| -
|
| // Logs all compiled functions found in the heap.
|
| void LogCompiledFunctions();
|
| // Logs all accessor callbacks found in the heap.
|
| @@ -425,9 +418,6 @@
|
| Address prev_code_;
|
|
|
| friend class CpuProfiler;
|
| -#else
|
| - bool is_logging() { return false; }
|
| -#endif
|
| };
|
|
|
|
|
|
|