| OLD | NEW |
| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 | 30 |
| 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) { |
| 40 CodeEntry* entry = code_map->FindEntry(start); |
| 41 if (entry != NULL) { |
| 42 entry->set_deopt_reason(deopt_reason); |
| 43 entry->set_deopt_location(raw_position); |
| 44 } |
| 45 } |
| 46 |
| 47 |
| 39 void SharedFunctionInfoMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { | 48 void SharedFunctionInfoMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { |
| 40 code_map->MoveCode(from, to); | 49 code_map->MoveCode(from, to); |
| 41 } | 50 } |
| 42 | 51 |
| 43 | 52 |
| 44 void ReportBuiltinEventRecord::UpdateCodeMap(CodeMap* code_map) { | 53 void ReportBuiltinEventRecord::UpdateCodeMap(CodeMap* code_map) { |
| 45 CodeEntry* entry = code_map->FindEntry(start); | 54 CodeEntry* entry = code_map->FindEntry(start); |
| 46 if (!entry) { | 55 if (!entry) { |
| 47 // Code objects for builtins should already have been added to the map but | 56 // Code objects for builtins should already have been added to the map but |
| 48 // some of them have been filtered out by CpuProfiler. | 57 // some of them have been filtered out by CpuProfiler. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 72 } | 81 } |
| 73 | 82 |
| 74 | 83 |
| 75 void ProfilerEventsProcessor::FinishTickSample() { | 84 void ProfilerEventsProcessor::FinishTickSample() { |
| 76 ticks_buffer_.FinishEnqueue(); | 85 ticks_buffer_.FinishEnqueue(); |
| 77 } | 86 } |
| 78 | 87 |
| 79 } } // namespace v8::internal | 88 } } // namespace v8::internal |
| 80 | 89 |
| 81 #endif // V8_CPU_PROFILER_INL_H_ | 90 #endif // V8_CPU_PROFILER_INL_H_ |
| OLD | NEW |