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

Side by Side Diff: src/log.h

Issue 2753543006: [profiler] Web UI: add summary of opts/deopts. (Closed)
Patch Set: Address reviewer comments Created 3 years, 9 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
« no previous file with comments | « src/deoptimizer.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 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
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(Code* code, DeoptKind kind, 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
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(Code* code, DeoptKind kind, 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_
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698