| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_LOG_H_ | 5 #ifndef V8_LOG_H_ |
| 6 #define V8_LOG_H_ | 6 #define V8_LOG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 uintptr_t end); | 293 uintptr_t end); |
| 294 | 294 |
| 295 void CodeDeoptEvent(Code* code); | 295 void CodeDeoptEvent(Code* code); |
| 296 void CurrentTimeEvent(); | 296 void CurrentTimeEvent(); |
| 297 | 297 |
| 298 void TimerEvent(StartEnd se, const char* name); | 298 void TimerEvent(StartEnd se, const char* name); |
| 299 | 299 |
| 300 static void EnterExternal(Isolate* isolate); | 300 static void EnterExternal(Isolate* isolate); |
| 301 static void LeaveExternal(Isolate* isolate); | 301 static void LeaveExternal(Isolate* isolate); |
| 302 | 302 |
| 303 static inline void CallEventLogger(Isolate* isolate, const char* name, | 303 static void DefaultEventLoggerSentinel(const char* name, int event) {} |
| 304 StartEnd se, bool expose_to_api); | 304 |
| 305 INLINE(static void CallEventLogger(Isolate* isolate, const char* name, |
| 306 StartEnd se, bool expose_to_api)); |
| 305 | 307 |
| 306 // ==== Events logged by --log-regexp ==== | 308 // ==== Events logged by --log-regexp ==== |
| 307 // Regexp compilation and execution events. | 309 // Regexp compilation and execution events. |
| 308 | 310 |
| 309 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); | 311 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); |
| 310 | 312 |
| 311 bool is_logging() { | 313 bool is_logging() { |
| 312 return is_logging_; | 314 return is_logging_; |
| 313 } | 315 } |
| 314 | 316 |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 int length) = 0; | 534 int length) = 0; |
| 533 | 535 |
| 534 NameBuffer* name_buffer_; | 536 NameBuffer* name_buffer_; |
| 535 }; | 537 }; |
| 536 | 538 |
| 537 | 539 |
| 538 } } // namespace v8::internal | 540 } } // namespace v8::internal |
| 539 | 541 |
| 540 | 542 |
| 541 #endif // V8_LOG_H_ | 543 #endif // V8_LOG_H_ |
| OLD | NEW |