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

Side by Side Diff: src/cpu-profiler-inl.h

Issue 919953002: CPUProfiler: Push deopt reason further to ProfileNode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: unnecessary changes were removed Created 5 years, 10 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/arm64/lithium-codegen-arm64.cc ('k') | src/deoptimizer.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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_CPU_PROFILER_INL_H_ 5 #ifndef V8_CPU_PROFILER_INL_H_
6 #define V8_CPU_PROFILER_INL_H_ 6 #define V8_CPU_PROFILER_INL_H_
7 7
8 #include "src/cpu-profiler.h" 8 #include "src/cpu-profiler.h"
9 9
10 #include <new> 10 #include <new>
(...skipping 20 matching lines...) Expand all
31 void CodeDisableOptEventRecord::UpdateCodeMap(CodeMap* code_map) { 31 void CodeDisableOptEventRecord::UpdateCodeMap(CodeMap* code_map) {
32 CodeEntry* entry = code_map->FindEntry(start); 32 CodeEntry* entry = code_map->FindEntry(start);
33 if (entry != NULL) { 33 if (entry != NULL) {
34 entry->set_bailout_reason(bailout_reason); 34 entry->set_bailout_reason(bailout_reason);
35 } 35 }
36 } 36 }
37 37
38 38
39 void CodeDeoptEventRecord::UpdateCodeMap(CodeMap* code_map) { 39 void CodeDeoptEventRecord::UpdateCodeMap(CodeMap* code_map) {
40 CodeEntry* entry = code_map->FindEntry(start); 40 CodeEntry* entry = code_map->FindEntry(start);
41 if (entry != NULL) { 41 if (entry != NULL) entry->set_deopt_info(deopt_reason, raw_position);
42 entry->set_deopt_reason(deopt_reason);
43 entry->set_deopt_location(raw_position);
44 }
45 } 42 }
46 43
47 44
48 void SharedFunctionInfoMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { 45 void SharedFunctionInfoMoveEventRecord::UpdateCodeMap(CodeMap* code_map) {
49 code_map->MoveCode(from, to); 46 code_map->MoveCode(from, to);
50 } 47 }
51 48
52 49
53 void ReportBuiltinEventRecord::UpdateCodeMap(CodeMap* code_map) { 50 void ReportBuiltinEventRecord::UpdateCodeMap(CodeMap* code_map) {
54 CodeEntry* entry = code_map->FindEntry(start); 51 CodeEntry* entry = code_map->FindEntry(start);
(...skipping 26 matching lines...) Expand all
81 } 78 }
82 79
83 80
84 void ProfilerEventsProcessor::FinishTickSample() { 81 void ProfilerEventsProcessor::FinishTickSample() {
85 ticks_buffer_.FinishEnqueue(); 82 ticks_buffer_.FinishEnqueue();
86 } 83 }
87 84
88 } } // namespace v8::internal 85 } } // namespace v8::internal
89 86
90 #endif // V8_CPU_PROFILER_INL_H_ 87 #endif // V8_CPU_PROFILER_INL_H_
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/deoptimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698