OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_LOG_H_ | 5 #ifndef V8_LOG_H_ |
6 #define V8_LOG_H_ | 6 #define V8_LOG_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // Emits a code move event. | 178 // Emits a code move event. |
179 void CodeMoveEvent(AbstractCode* from, Address to); | 179 void CodeMoveEvent(AbstractCode* from, Address to); |
180 // Emits a code line info record event. | 180 // Emits a code line info record event. |
181 void CodeLinePosInfoRecordEvent(AbstractCode* code, | 181 void CodeLinePosInfoRecordEvent(AbstractCode* code, |
182 ByteArray* source_position_table); | 182 ByteArray* source_position_table); |
183 | 183 |
184 void SharedFunctionInfoMoveEvent(Address from, Address to); | 184 void SharedFunctionInfoMoveEvent(Address from, Address to); |
185 | 185 |
186 void CodeNameEvent(Address addr, int pos, const char* code_name); | 186 void CodeNameEvent(Address addr, int pos, const char* code_name); |
187 | 187 |
188 void CodeDeoptEvent(Code* code, Address pc, int fp_to_sp_delta); | 188 void CodeDeoptEvent(DeoptKind kind, Code* code, Address pc, |
| 189 int fp_to_sp_delta); |
189 | 190 |
190 void ICEvent(const char* type, bool keyed, const Address pc, int line, | 191 void ICEvent(const char* type, bool keyed, const Address pc, int line, |
191 int column, Map* map, Object* key, char old_state, | 192 int column, Map* map, Object* key, char old_state, |
192 char new_state, const char* modifier, | 193 char new_state, const char* modifier, |
193 const char* slow_stub_reason); | 194 const char* slow_stub_reason); |
194 void CompareIC(const Address pc, int line, int column, Code* stub, | 195 void CompareIC(const Address pc, int line, int column, Code* stub, |
195 const char* op, const char* old_left, const char* old_right, | 196 const char* op, const char* old_left, const char* old_right, |
196 const char* old_state, const char* new_left, | 197 const char* old_state, const char* new_left, |
197 const char* new_right, const char* new_state); | 198 const char* new_right, const char* new_state); |
198 void BinaryOpIC(const Address pc, int line, int column, Code* stub, | 199 void BinaryOpIC(const Address pc, int line, int column, Code* stub, |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, | 388 void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, |
388 SharedFunctionInfo* shared, Name* source, int line, | 389 SharedFunctionInfo* shared, Name* source, int line, |
389 int column) override; | 390 int column) override; |
390 void RegExpCodeCreateEvent(AbstractCode* code, String* source) override; | 391 void RegExpCodeCreateEvent(AbstractCode* code, String* source) override; |
391 | 392 |
392 void CallbackEvent(Name* name, Address entry_point) override {} | 393 void CallbackEvent(Name* name, Address entry_point) override {} |
393 void GetterCallbackEvent(Name* name, Address entry_point) override {} | 394 void GetterCallbackEvent(Name* name, Address entry_point) override {} |
394 void SetterCallbackEvent(Name* name, Address entry_point) override {} | 395 void SetterCallbackEvent(Name* name, Address entry_point) override {} |
395 void SharedFunctionInfoMoveEvent(Address from, Address to) override {} | 396 void SharedFunctionInfoMoveEvent(Address from, Address to) override {} |
396 void CodeMovingGCEvent() override {} | 397 void CodeMovingGCEvent() override {} |
397 void CodeDeoptEvent(Code* code, Address pc, int fp_to_sp_delta) override {} | 398 void CodeDeoptEvent(DeoptKind kind, Code* code, Address pc, |
| 399 int fp_to_sp_delta) override {} |
398 | 400 |
399 private: | 401 private: |
400 class NameBuffer; | 402 class NameBuffer; |
401 | 403 |
402 virtual void LogRecordedBuffer(AbstractCode* code, SharedFunctionInfo* shared, | 404 virtual void LogRecordedBuffer(AbstractCode* code, SharedFunctionInfo* shared, |
403 const char* name, int length) = 0; | 405 const char* name, int length) = 0; |
404 | 406 |
405 NameBuffer* name_buffer_; | 407 NameBuffer* name_buffer_; |
406 }; | 408 }; |
407 | 409 |
408 | 410 |
409 } // namespace internal | 411 } // namespace internal |
410 } // namespace v8 | 412 } // namespace v8 |
411 | 413 |
412 | 414 |
413 #endif // V8_LOG_H_ | 415 #endif // V8_LOG_H_ |
OLD | NEW |