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

Side by Side Diff: src/log.h

Issue 1901353003: [profiler] Remove obsolete CompilationInfo argument. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-compiler-simplify-27
Patch Set: Created 4 years, 8 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
OLDNEW
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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 217
218 // Emits a code event for a callback function. 218 // Emits a code event for a callback function.
219 void CallbackEvent(Name* name, Address entry_point); 219 void CallbackEvent(Name* name, Address entry_point);
220 void GetterCallbackEvent(Name* name, Address entry_point); 220 void GetterCallbackEvent(Name* name, Address entry_point);
221 void SetterCallbackEvent(Name* name, Address entry_point); 221 void SetterCallbackEvent(Name* name, Address entry_point);
222 // Emits a code create event. 222 // Emits a code create event.
223 void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, 223 void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code,
224 const char* source); 224 const char* source);
225 void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, Name* name); 225 void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, Name* name);
226 void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, 226 void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code,
227 SharedFunctionInfo* shared, CompilationInfo* info, 227 SharedFunctionInfo* shared, Name* name);
228 Name* name);
229 void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, 228 void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code,
230 SharedFunctionInfo* shared, CompilationInfo* info, 229 SharedFunctionInfo* shared, CompilationInfo* info,
231 Name* source, int line, int column); 230 Name* source, int line, int column);
232 void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, 231 void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code,
233 int args_count); 232 int args_count);
234 // Emits a code deoptimization event. 233 // Emits a code deoptimization event.
235 void CodeDisableOptEvent(AbstractCode* code, SharedFunctionInfo* shared); 234 void CodeDisableOptEvent(AbstractCode* code, SharedFunctionInfo* shared);
236 void CodeMovingGCEvent(); 235 void CodeMovingGCEvent();
237 // Emits a code create event for a RegExp. 236 // Emits a code create event for a RegExp.
238 void RegExpCodeCreateEvent(AbstractCode* code, String* source); 237 void RegExpCodeCreateEvent(AbstractCode* code, String* source);
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 462
464 class CodeEventListener { 463 class CodeEventListener {
465 public: 464 public:
466 virtual ~CodeEventListener() {} 465 virtual ~CodeEventListener() {}
467 466
468 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, 467 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code,
469 const char* comment) = 0; 468 const char* comment) = 0;
470 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, 469 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code,
471 Name* name) = 0; 470 Name* name) = 0;
472 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, 471 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code,
473 SharedFunctionInfo* shared, 472 SharedFunctionInfo* shared, Name* name) = 0;
474 CompilationInfo* info, Name* name) = 0;
475 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, 473 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code,
476 SharedFunctionInfo* shared, 474 SharedFunctionInfo* shared,
477 CompilationInfo* info, Name* source, int line, 475 CompilationInfo* info, Name* source, int line,
478 int column) = 0; 476 int column) = 0;
479 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, 477 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code,
480 int args_count) = 0; 478 int args_count) = 0;
481 virtual void CallbackEvent(Name* name, Address entry_point) = 0; 479 virtual void CallbackEvent(Name* name, Address entry_point) = 0;
482 virtual void GetterCallbackEvent(Name* name, Address entry_point) = 0; 480 virtual void GetterCallbackEvent(Name* name, Address entry_point) = 0;
483 virtual void SetterCallbackEvent(Name* name, Address entry_point) = 0; 481 virtual void SetterCallbackEvent(Name* name, Address entry_point) = 0;
484 virtual void RegExpCodeCreateEvent(AbstractCode* code, String* source) = 0; 482 virtual void RegExpCodeCreateEvent(AbstractCode* code, String* source) = 0;
(...skipping 10 matching lines...) Expand all
495 CodeEventLogger(); 493 CodeEventLogger();
496 ~CodeEventLogger() override; 494 ~CodeEventLogger() override;
497 495
498 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, 496 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code,
499 const char* comment) override; 497 const char* comment) override;
500 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, 498 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code,
501 Name* name) override; 499 Name* name) override;
502 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, 500 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code,
503 int args_count) override; 501 int args_count) override;
504 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, 502 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code,
505 SharedFunctionInfo* shared, CompilationInfo* info, 503 SharedFunctionInfo* shared, Name* name) override;
506 Name* name) override;
507 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, 504 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code,
508 SharedFunctionInfo* shared, CompilationInfo* info, 505 SharedFunctionInfo* shared, CompilationInfo* info,
509 Name* source, int line, int column) override; 506 Name* source, int line, int column) override;
510 void RegExpCodeCreateEvent(AbstractCode* code, String* source) override; 507 void RegExpCodeCreateEvent(AbstractCode* code, String* source) override;
511 508
512 void CallbackEvent(Name* name, Address entry_point) override {} 509 void CallbackEvent(Name* name, Address entry_point) override {}
513 void GetterCallbackEvent(Name* name, Address entry_point) override {} 510 void GetterCallbackEvent(Name* name, Address entry_point) override {}
514 void SetterCallbackEvent(Name* name, Address entry_point) override {} 511 void SetterCallbackEvent(Name* name, Address entry_point) override {}
515 void SharedFunctionInfoMoveEvent(Address from, Address to) override {} 512 void SharedFunctionInfoMoveEvent(Address from, Address to) override {}
516 void CodeMovingGCEvent() override {} 513 void CodeMovingGCEvent() override {}
517 514
518 private: 515 private:
519 class NameBuffer; 516 class NameBuffer;
520 517
521 virtual void LogRecordedBuffer(AbstractCode* code, SharedFunctionInfo* shared, 518 virtual void LogRecordedBuffer(AbstractCode* code, SharedFunctionInfo* shared,
522 const char* name, int length) = 0; 519 const char* name, int length) = 0;
523 520
524 NameBuffer* name_buffer_; 521 NameBuffer* name_buffer_;
525 }; 522 };
526 523
527 524
528 } // namespace internal 525 } // namespace internal
529 } // namespace v8 526 } // namespace v8
530 527
531 528
532 #endif // V8_LOG_H_ 529 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/log.cc » ('j') | src/profiler/cpu-profiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698