Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 193 | 193 |
| 194 static void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); | 194 static void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); |
| 195 | 195 |
| 196 // Log an event reported from generated code | 196 // Log an event reported from generated code |
| 197 static void LogRuntime(Vector<const char> format, JSArray* args); | 197 static void LogRuntime(Vector<const char> format, JSArray* args); |
| 198 | 198 |
| 199 #ifdef ENABLE_LOGGING_AND_PROFILING | 199 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 200 static StateTag state() { | 200 static StateTag state() { |
| 201 return current_state_ ? current_state_->state() : OTHER; | 201 return current_state_ ? current_state_->state() : OTHER; |
| 202 } | 202 } |
| 203 #endif | |
| 204 | 203 |
| 205 static bool is_enabled() { return logfile_ != NULL; } | 204 static bool is_enabled() { return logfile_ != NULL; } |
| 205 #endif | |
|
Søren Thygesen Gjesse
2009/01/07 14:22:09
This #endif (for #ifdef ENABLE_LOGGING_AND_PROFILI
| |
| 206 | 206 |
| 207 #ifdef ENABLE_LOGGING_AND_PROFILING | 207 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 208 private: | 208 private: |
| 209 | 209 |
| 210 // Emits the source code of a regexp. Used by regexp events. | 210 // Emits the source code of a regexp. Used by regexp events. |
| 211 static void LogRegExpSource(Handle<JSRegExp> regexp); | 211 static void LogRegExpSource(Handle<JSRegExp> regexp); |
| 212 | 212 |
| 213 static void LogString(Handle<String> str, bool show_impl_info); | 213 static void LogString(Handle<String> str, bool show_impl_info); |
| 214 | 214 |
| 215 // Emits a profiler tick event. Used by the profiler thread. | 215 // Emits a profiler tick event. Used by the profiler thread. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 247 friend class Profiler; | 247 friend class Profiler; |
| 248 friend class SlidingStateWindow; | 248 friend class SlidingStateWindow; |
| 249 friend class VMState; | 249 friend class VMState; |
| 250 #endif | 250 #endif |
| 251 }; | 251 }; |
| 252 | 252 |
| 253 | 253 |
| 254 } } // namespace v8::internal | 254 } } // namespace v8::internal |
| 255 | 255 |
| 256 #endif // V8_LOG_H_ | 256 #endif // V8_LOG_H_ |
| OLD | NEW |