| 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 Isolate* isolate_; | 342 Isolate* isolate_; |
| 343 const char* name_; | 343 const char* name_; |
| 344 }; | 344 }; |
| 345 | 345 |
| 346 // ==== Events logged by --log-regexp ==== | 346 // ==== Events logged by --log-regexp ==== |
| 347 // Regexp compilation and execution events. | 347 // Regexp compilation and execution events. |
| 348 | 348 |
| 349 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); | 349 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); |
| 350 | 350 |
| 351 // Log an event reported from generated code | 351 // Log an event reported from generated code |
| 352 void LogRuntime(Vector<const char> format, JSArray* args); | 352 void LogRuntime(Vector<const char> format, Handle<JSArray> args); |
| 353 | 353 |
| 354 bool is_logging() { | 354 bool is_logging() { |
| 355 return is_logging_; | 355 return is_logging_; |
| 356 } | 356 } |
| 357 | 357 |
| 358 bool is_logging_code_events() { | 358 bool is_logging_code_events() { |
| 359 return is_logging() || jit_logger_ != NULL; | 359 return is_logging() || jit_logger_ != NULL; |
| 360 } | 360 } |
| 361 | 361 |
| 362 // Stop collection of profiling data. | 362 // Stop collection of profiling data. |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 int length) = 0; | 540 int length) = 0; |
| 541 | 541 |
| 542 NameBuffer* name_buffer_; | 542 NameBuffer* name_buffer_; |
| 543 }; | 543 }; |
| 544 | 544 |
| 545 | 545 |
| 546 } } // namespace v8::internal | 546 } } // namespace v8::internal |
| 547 | 547 |
| 548 | 548 |
| 549 #endif // V8_LOG_H_ | 549 #endif // V8_LOG_H_ |
| OLD | NEW |