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

Side by Side Diff: src/cpu-profiler.cc

Issue 290093005: Introduce a separate event for CodeDisableOpt (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: removed extra line Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/cpu-profiler.h ('k') | src/cpu-profiler-inl.h » ('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 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "cpu-profiler-inl.h" 7 #include "cpu-profiler-inl.h"
8 8
9 #include "compiler.h" 9 #include "compiler.h"
10 #include "frames-inl.h" 10 #include "frames-inl.h"
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 297
298 void CpuProfiler::CodeMoveEvent(Address from, Address to) { 298 void CpuProfiler::CodeMoveEvent(Address from, Address to) {
299 CodeEventsContainer evt_rec(CodeEventRecord::CODE_MOVE); 299 CodeEventsContainer evt_rec(CodeEventRecord::CODE_MOVE);
300 CodeMoveEventRecord* rec = &evt_rec.CodeMoveEventRecord_; 300 CodeMoveEventRecord* rec = &evt_rec.CodeMoveEventRecord_;
301 rec->from = from; 301 rec->from = from;
302 rec->to = to; 302 rec->to = to;
303 processor_->Enqueue(evt_rec); 303 processor_->Enqueue(evt_rec);
304 } 304 }
305 305
306 306
307 void CpuProfiler::CodeDisableOptEvent(Code* code, SharedFunctionInfo* shared) {
308 CodeEventsContainer evt_rec(CodeEventRecord::CODE_DISABLE_OPT);
309 CodeDisableOptEventRecord* rec = &evt_rec.CodeDisableOptEventRecord_;
310 rec->start = code->address();
311 rec->bailout_reason = GetBailoutReason(shared->DisableOptimizationReason());
312 processor_->Enqueue(evt_rec);
313 }
314
315
307 void CpuProfiler::CodeDeleteEvent(Address from) { 316 void CpuProfiler::CodeDeleteEvent(Address from) {
308 } 317 }
309 318
310 319
311 void CpuProfiler::SharedFunctionInfoMoveEvent(Address from, Address to) { 320 void CpuProfiler::SharedFunctionInfoMoveEvent(Address from, Address to) {
312 CodeEventsContainer evt_rec(CodeEventRecord::SHARED_FUNC_MOVE); 321 CodeEventsContainer evt_rec(CodeEventRecord::SHARED_FUNC_MOVE);
313 SharedFunctionInfoMoveEventRecord* rec = 322 SharedFunctionInfoMoveEventRecord* rec =
314 &evt_rec.SharedFunctionInfoMoveEventRecord_; 323 &evt_rec.SharedFunctionInfoMoveEventRecord_;
315 rec->from = from; 324 rec->from = from;
316 rec->to = to; 325 rec->to = to;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 ReportBuiltinEventRecord* rec = &evt_rec.ReportBuiltinEventRecord_; 503 ReportBuiltinEventRecord* rec = &evt_rec.ReportBuiltinEventRecord_;
495 Builtins::Name id = static_cast<Builtins::Name>(i); 504 Builtins::Name id = static_cast<Builtins::Name>(i);
496 rec->start = builtins->builtin(id)->address(); 505 rec->start = builtins->builtin(id)->address();
497 rec->builtin_id = id; 506 rec->builtin_id = id;
498 processor_->Enqueue(evt_rec); 507 processor_->Enqueue(evt_rec);
499 } 508 }
500 } 509 }
501 510
502 511
503 } } // namespace v8::internal 512 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/cpu-profiler.h ('k') | src/cpu-profiler-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698