OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 Isolate* isolate_; | 317 Isolate* isolate_; |
318 const char* name_; | 318 const char* name_; |
319 }; | 319 }; |
320 | 320 |
321 // ==== Events logged by --log-regexp ==== | 321 // ==== Events logged by --log-regexp ==== |
322 // Regexp compilation and execution events. | 322 // Regexp compilation and execution events. |
323 | 323 |
324 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); | 324 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); |
325 | 325 |
326 // Log an event reported from generated code | 326 // Log an event reported from generated code |
327 void LogRuntime(Isolate* isolate, Vector<const char> format, JSArray* args); | 327 void LogRuntime(Vector<const char> format, JSArray* args); |
328 | 328 |
329 bool is_logging() { | 329 bool is_logging() { |
330 return logging_nesting_ > 0; | 330 return logging_nesting_ > 0; |
331 } | 331 } |
332 | 332 |
333 bool is_code_event_handler_enabled() { | 333 bool is_code_event_handler_enabled() { |
334 return code_event_handler_ != NULL; | 334 return code_event_handler_ != NULL; |
335 } | 335 } |
336 | 336 |
337 bool is_logging_code_events() { | 337 bool is_logging_code_events() { |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 // Class that extracts stack trace, used for profiling. | 541 // Class that extracts stack trace, used for profiling. |
542 class StackTracer : public AllStatic { | 542 class StackTracer : public AllStatic { |
543 public: | 543 public: |
544 static void Trace(Isolate* isolate, TickSample* sample); | 544 static void Trace(Isolate* isolate, TickSample* sample); |
545 }; | 545 }; |
546 | 546 |
547 } } // namespace v8::internal | 547 } } // namespace v8::internal |
548 | 548 |
549 | 549 |
550 #endif // V8_LOG_H_ | 550 #endif // V8_LOG_H_ |
OLD | NEW |