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

Side by Side Diff: src/log.h

Issue 18096: Experimental: merge from bleeding_edge. Merge up to and including... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
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 | Annotate | Revision Log
« no previous file with comments | « src/jsregexp.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; }
206 205
207 #ifdef ENABLE_LOGGING_AND_PROFILING
208 private: 206 private:
209 207
210 // Emits the source code of a regexp. Used by regexp events. 208 // Emits the source code of a regexp. Used by regexp events.
211 static void LogRegExpSource(Handle<JSRegExp> regexp); 209 static void LogRegExpSource(Handle<JSRegExp> regexp);
212 210
213 static void LogString(Handle<String> str, bool show_impl_info); 211 static void LogString(Handle<String> str, bool show_impl_info);
214 212
215 // Emits a profiler tick event. Used by the profiler thread. 213 // Emits a profiler tick event. Used by the profiler thread.
216 static void TickEvent(TickSample* sample, bool overflow); 214 static void TickEvent(TickSample* sample, bool overflow);
217 215
(...skipping 29 matching lines...) Expand all
247 friend class Profiler; 245 friend class Profiler;
248 friend class SlidingStateWindow; 246 friend class SlidingStateWindow;
249 friend class VMState; 247 friend class VMState;
250 #endif 248 #endif
251 }; 249 };
252 250
253 251
254 } } // namespace v8::internal 252 } } // namespace v8::internal
255 253
256 #endif // V8_LOG_H_ 254 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/jsregexp.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698