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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 String* source, int line); | 209 String* source, int line); |
210 static void CodeCreateEvent(LogEventsAndTags tag, Code* code, int args_count); | 210 static void CodeCreateEvent(LogEventsAndTags tag, Code* code, int args_count); |
211 // Emits a code create event for a RegExp. | 211 // Emits a code create event for a RegExp. |
212 static void RegExpCodeCreateEvent(Code* code, String* source); | 212 static void RegExpCodeCreateEvent(Code* code, String* source); |
213 // Emits a code move event. | 213 // Emits a code move event. |
214 static void CodeMoveEvent(Address from, Address to); | 214 static void CodeMoveEvent(Address from, Address to); |
215 // Emits a code delete event. | 215 // Emits a code delete event. |
216 static void CodeDeleteEvent(Address from); | 216 static void CodeDeleteEvent(Address from); |
217 // Emits a function object create event. | 217 // Emits a function object create event. |
218 static void FunctionCreateEvent(JSFunction* function); | 218 static void FunctionCreateEvent(JSFunction* function); |
| 219 static void FunctionCreateEventFromMove(JSFunction* function, |
| 220 HeapObject*); |
219 // Emits a function move event. | 221 // Emits a function move event. |
220 static void FunctionMoveEvent(Address from, Address to); | 222 static void FunctionMoveEvent(Address from, Address to); |
221 // Emits a function delete event. | 223 // Emits a function delete event. |
222 static void FunctionDeleteEvent(Address from); | 224 static void FunctionDeleteEvent(Address from); |
223 | 225 |
224 static void SnapshotPositionEvent(Address addr, int pos); | 226 static void SnapshotPositionEvent(Address addr, int pos); |
225 | 227 |
226 // ==== Events logged by --log-gc. ==== | 228 // ==== Events logged by --log-gc. ==== |
227 // Heap sampling events: start, end, and individual types. | 229 // Heap sampling events: start, end, and individual types. |
228 static void HeapSampleBeginEvent(const char* space, const char* kind); | 230 static void HeapSampleBeginEvent(const char* space, const char* kind); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 // Class that extracts stack trace, used for profiling. | 377 // Class that extracts stack trace, used for profiling. |
376 class StackTracer : public AllStatic { | 378 class StackTracer : public AllStatic { |
377 public: | 379 public: |
378 static void Trace(TickSample* sample); | 380 static void Trace(TickSample* sample); |
379 }; | 381 }; |
380 | 382 |
381 } } // namespace v8::internal | 383 } } // namespace v8::internal |
382 | 384 |
383 | 385 |
384 #endif // V8_LOG_H_ | 386 #endif // V8_LOG_H_ |
OLD | NEW |