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

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

Issue 960493003: Remove JITCodeEvent::CODE_REMOVED (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Created 5 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/cpu-profiler.h ('k') | src/gdb-jit.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/cpu-profiler-inl.h" 7 #include "src/cpu-profiler-inl.h"
8 8
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 CodeDeoptEventRecord* rec = &evt_rec.CodeDeoptEventRecord_; 335 CodeDeoptEventRecord* rec = &evt_rec.CodeDeoptEventRecord_;
336 Deoptimizer::DeoptInfo info = Deoptimizer::GetDeoptInfo(code, bailout_id); 336 Deoptimizer::DeoptInfo info = Deoptimizer::GetDeoptInfo(code, bailout_id);
337 rec->start = code->address(); 337 rec->start = code->address();
338 rec->deopt_reason = Deoptimizer::GetDeoptReason(info.deopt_reason); 338 rec->deopt_reason = Deoptimizer::GetDeoptReason(info.deopt_reason);
339 rec->raw_position = info.raw_position; 339 rec->raw_position = info.raw_position;
340 processor_->Enqueue(evt_rec); 340 processor_->Enqueue(evt_rec);
341 processor_->AddDeoptStack(isolate_, pc, fp_to_sp_delta); 341 processor_->AddDeoptStack(isolate_, pc, fp_to_sp_delta);
342 } 342 }
343 343
344 344
345 void CpuProfiler::CodeDeleteEvent(Address from) {
346 }
347
348
349 void CpuProfiler::GetterCallbackEvent(Name* name, Address entry_point) { 345 void CpuProfiler::GetterCallbackEvent(Name* name, Address entry_point) {
350 if (FilterOutCodeCreateEvent(Logger::CALLBACK_TAG)) return; 346 if (FilterOutCodeCreateEvent(Logger::CALLBACK_TAG)) return;
351 CodeEventsContainer evt_rec(CodeEventRecord::CODE_CREATION); 347 CodeEventsContainer evt_rec(CodeEventRecord::CODE_CREATION);
352 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; 348 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_;
353 rec->start = entry_point; 349 rec->start = entry_point;
354 rec->entry = profiles_->NewCodeEntry( 350 rec->entry = profiles_->NewCodeEntry(
355 Logger::CALLBACK_TAG, 351 Logger::CALLBACK_TAG,
356 profiles_->GetName(name), 352 profiles_->GetName(name),
357 "get "); 353 "get ");
358 rec->size = 1; 354 rec->size = 1;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 ReportBuiltinEventRecord* rec = &evt_rec.ReportBuiltinEventRecord_; 516 ReportBuiltinEventRecord* rec = &evt_rec.ReportBuiltinEventRecord_;
521 Builtins::Name id = static_cast<Builtins::Name>(i); 517 Builtins::Name id = static_cast<Builtins::Name>(i);
522 rec->start = builtins->builtin(id)->address(); 518 rec->start = builtins->builtin(id)->address();
523 rec->builtin_id = id; 519 rec->builtin_id = id;
524 processor_->Enqueue(evt_rec); 520 processor_->Enqueue(evt_rec);
525 } 521 }
526 } 522 }
527 523
528 524
529 } } // namespace v8::internal 525 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/cpu-profiler.h ('k') | src/gdb-jit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698