Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: src/log.h

Issue 16573: Fixed build with no ENABLE_LOGGING_AND_PROFILING (Closed)
Patch Set: Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/codegen-ia32.cc ('k') | src/log.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/codegen-ia32.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698