| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 } | 899 } |
| 900 | 900 |
| 901 | 901 |
| 902 void Logger::TimerEventScope::LogTimerEvent(StartEnd se) { | 902 void Logger::TimerEventScope::LogTimerEvent(StartEnd se) { |
| 903 LOG(isolate_, TimerEvent(se, name_)); | 903 LOG(isolate_, TimerEvent(se, name_)); |
| 904 } | 904 } |
| 905 | 905 |
| 906 | 906 |
| 907 const char* Logger::TimerEventScope::v8_recompile_synchronous = | 907 const char* Logger::TimerEventScope::v8_recompile_synchronous = |
| 908 "V8.RecompileSynchronous"; | 908 "V8.RecompileSynchronous"; |
| 909 const char* Logger::TimerEventScope::v8_recompile_parallel = | 909 const char* Logger::TimerEventScope::v8_recompile_concurrent = |
| 910 "V8.RecompileParallel"; | 910 "V8.RecompileConcurrent"; |
| 911 const char* Logger::TimerEventScope::v8_compile_full_code = | 911 const char* Logger::TimerEventScope::v8_compile_full_code = |
| 912 "V8.CompileFullCode"; | 912 "V8.CompileFullCode"; |
| 913 const char* Logger::TimerEventScope::v8_execute = "V8.Execute"; | 913 const char* Logger::TimerEventScope::v8_execute = "V8.Execute"; |
| 914 const char* Logger::TimerEventScope::v8_external = "V8.External"; | 914 const char* Logger::TimerEventScope::v8_external = "V8.External"; |
| 915 | 915 |
| 916 | 916 |
| 917 void Logger::LogRegExpSource(Handle<JSRegExp> regexp) { | 917 void Logger::LogRegExpSource(Handle<JSRegExp> regexp) { |
| 918 // Prints "/" + re.source + "/" + | 918 // Prints "/" + re.source + "/" + |
| 919 // (re.global?"g":"") + (re.ignorecase?"i":"") + (re.multiline?"m":"") | 919 // (re.global?"g":"") + (re.ignorecase?"i":"") + (re.multiline?"m":"") |
| 920 Log::MessageBuilder msg(log_); | 920 Log::MessageBuilder msg(log_); |
| (...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1947 if (jit_logger_) { | 1947 if (jit_logger_) { |
| 1948 removeCodeEventListener(jit_logger_); | 1948 removeCodeEventListener(jit_logger_); |
| 1949 delete jit_logger_; | 1949 delete jit_logger_; |
| 1950 jit_logger_ = NULL; | 1950 jit_logger_ = NULL; |
| 1951 } | 1951 } |
| 1952 | 1952 |
| 1953 return log_->Close(); | 1953 return log_->Close(); |
| 1954 } | 1954 } |
| 1955 | 1955 |
| 1956 } } // namespace v8::internal | 1956 } } // namespace v8::internal |
| OLD | NEW |