| 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 "cpu-profiler.h" | 8 #include "cpu-profiler.h" |
| 9 | 9 |
| 10 #include <new> | 10 #include <new> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 entry->set_shared_id(code_map->GetSharedId(shared)); | 21 entry->set_shared_id(code_map->GetSharedId(shared)); |
| 22 } | 22 } |
| 23 } | 23 } |
| 24 | 24 |
| 25 | 25 |
| 26 void CodeMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { | 26 void CodeMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { |
| 27 code_map->MoveCode(from, to); | 27 code_map->MoveCode(from, to); |
| 28 } | 28 } |
| 29 | 29 |
| 30 | 30 |
| 31 void CodeDeoptEventRecord::UpdateCodeMap(CodeMap* code_map) { |
| 32 CodeEntry* entry = code_map->FindEntry(start); |
| 33 if (entry != NULL) { |
| 34 entry->set_bailout_reason(bailout_reason); |
| 35 } |
| 36 } |
| 37 |
| 38 |
| 31 void SharedFunctionInfoMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { | 39 void SharedFunctionInfoMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { |
| 32 code_map->MoveCode(from, to); | 40 code_map->MoveCode(from, to); |
| 33 } | 41 } |
| 34 | 42 |
| 35 | 43 |
| 36 void ReportBuiltinEventRecord::UpdateCodeMap(CodeMap* code_map) { | 44 void ReportBuiltinEventRecord::UpdateCodeMap(CodeMap* code_map) { |
| 37 CodeEntry* entry = code_map->FindEntry(start); | 45 CodeEntry* entry = code_map->FindEntry(start); |
| 38 if (!entry) { | 46 if (!entry) { |
| 39 // Code objects for builtins should already have been added to the map but | 47 // Code objects for builtins should already have been added to the map but |
| 40 // some of them have been filtered out by CpuProfiler. | 48 // some of them have been filtered out by CpuProfiler. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 64 } | 72 } |
| 65 | 73 |
| 66 | 74 |
| 67 void ProfilerEventsProcessor::FinishTickSample() { | 75 void ProfilerEventsProcessor::FinishTickSample() { |
| 68 ticks_buffer_.FinishEnqueue(); | 76 ticks_buffer_.FinishEnqueue(); |
| 69 } | 77 } |
| 70 | 78 |
| 71 } } // namespace v8::internal | 79 } } // namespace v8::internal |
| 72 | 80 |
| 73 #endif // V8_CPU_PROFILER_INL_H_ | 81 #endif // V8_CPU_PROFILER_INL_H_ |
| OLD | NEW |