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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 static void CodeCreateEvent(const char* tag, Code* code, String* name, | 167 static void CodeCreateEvent(const char* tag, Code* code, String* name, |
168 String* source, int line); | 168 String* source, int line); |
169 static void CodeCreateEvent(const char* tag, Code* code, int args_count); | 169 static void CodeCreateEvent(const char* tag, Code* code, int args_count); |
170 // Emits a code create event for a RegExp. | 170 // Emits a code create event for a RegExp. |
171 static void RegExpCodeCreateEvent(Code* code, String* source); | 171 static void RegExpCodeCreateEvent(Code* code, String* source); |
172 static void CodeAllocateEvent(Code* code, Assembler* assem); | 172 static void CodeAllocateEvent(Code* code, Assembler* assem); |
173 // Emits a code move event. | 173 // Emits a code move event. |
174 static void CodeMoveEvent(Address from, Address to); | 174 static void CodeMoveEvent(Address from, Address to); |
175 // Emits a code delete event. | 175 // Emits a code delete event. |
176 static void CodeDeleteEvent(Address from); | 176 static void CodeDeleteEvent(Address from); |
177 // Emits region delimiters | |
178 static void BeginCodeRegionEvent(CodeRegion* region, | |
179 Assembler* masm, | |
180 const char* name); | |
181 static void EndCodeRegionEvent(CodeRegion* region, Assembler* masm); | |
182 | 177 |
183 // ==== Events logged by --log-gc. ==== | 178 // ==== Events logged by --log-gc. ==== |
184 // Heap sampling events: start, end, and individual types. | 179 // Heap sampling events: start, end, and individual types. |
185 static void HeapSampleBeginEvent(const char* space, const char* kind); | 180 static void HeapSampleBeginEvent(const char* space, const char* kind); |
186 static void HeapSampleEndEvent(const char* space, const char* kind); | 181 static void HeapSampleEndEvent(const char* space, const char* kind); |
187 static void HeapSampleItemEvent(const char* type, int number, int bytes); | 182 static void HeapSampleItemEvent(const char* type, int number, int bytes); |
188 | 183 |
189 static void SharedLibraryEvent(const char* library_path, | 184 static void SharedLibraryEvent(const char* library_path, |
190 unsigned start, | 185 unsigned start, |
191 unsigned end); | 186 unsigned end); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 void Trace(TickSample* sample); | 278 void Trace(TickSample* sample); |
284 private: | 279 private: |
285 | 280 |
286 unsigned int low_stack_bound_; | 281 unsigned int low_stack_bound_; |
287 }; | 282 }; |
288 | 283 |
289 | 284 |
290 } } // namespace v8::internal | 285 } } // namespace v8::internal |
291 | 286 |
292 #endif // V8_LOG_H_ | 287 #endif // V8_LOG_H_ |
OLD | NEW |