OLD | NEW |
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/api.h" | 5 #include "src/api.h" |
6 | 6 |
7 #include <string.h> // For memcpy, strlen. | 7 #include <string.h> // For memcpy, strlen. |
8 #ifdef V8_USE_ADDRESS_SANITIZER | 8 #ifdef V8_USE_ADDRESS_SANITIZER |
9 #include <sanitizer/asan_interface.h> | 9 #include <sanitizer/asan_interface.h> |
10 #endif // V8_USE_ADDRESS_SANITIZER | 10 #endif // V8_USE_ADDRESS_SANITIZER |
(...skipping 7142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7153 return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number(); | 7153 return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number(); |
7154 } | 7154 } |
7155 | 7155 |
7156 | 7156 |
7157 int CpuProfileNode::GetColumnNumber() const { | 7157 int CpuProfileNode::GetColumnNumber() const { |
7158 return reinterpret_cast<const i::ProfileNode*>(this)-> | 7158 return reinterpret_cast<const i::ProfileNode*>(this)-> |
7159 entry()->column_number(); | 7159 entry()->column_number(); |
7160 } | 7160 } |
7161 | 7161 |
7162 | 7162 |
| 7163 unsigned int CpuProfileNode::GetHitLineCount() const { |
| 7164 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
| 7165 return node->GetHitLineCount(); |
| 7166 } |
| 7167 |
| 7168 |
| 7169 bool CpuProfileNode::GetLineTicks(LineTick* entries, |
| 7170 unsigned int length) const { |
| 7171 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
| 7172 return node->GetLineTicks(entries, length); |
| 7173 } |
| 7174 |
| 7175 |
7163 const char* CpuProfileNode::GetBailoutReason() const { | 7176 const char* CpuProfileNode::GetBailoutReason() const { |
7164 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); | 7177 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
7165 return node->entry()->bailout_reason(); | 7178 return node->entry()->bailout_reason(); |
7166 } | 7179 } |
7167 | 7180 |
7168 | 7181 |
7169 unsigned CpuProfileNode::GetHitCount() const { | 7182 unsigned CpuProfileNode::GetHitCount() const { |
7170 return reinterpret_cast<const i::ProfileNode*>(this)->self_ticks(); | 7183 return reinterpret_cast<const i::ProfileNode*>(this)->self_ticks(); |
7171 } | 7184 } |
7172 | 7185 |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7759 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 7772 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
7760 Address callback_address = | 7773 Address callback_address = |
7761 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 7774 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
7762 VMState<EXTERNAL> state(isolate); | 7775 VMState<EXTERNAL> state(isolate); |
7763 ExternalCallbackScope call_scope(isolate, callback_address); | 7776 ExternalCallbackScope call_scope(isolate, callback_address); |
7764 callback(info); | 7777 callback(info); |
7765 } | 7778 } |
7766 | 7779 |
7767 | 7780 |
7768 } } // namespace v8::internal | 7781 } } // namespace v8::internal |
OLD | NEW |