| 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 7128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7139 return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number(); | 7139 return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number(); |
| 7140 } | 7140 } |
| 7141 | 7141 |
| 7142 | 7142 |
| 7143 int CpuProfileNode::GetColumnNumber() const { | 7143 int CpuProfileNode::GetColumnNumber() const { |
| 7144 return reinterpret_cast<const i::ProfileNode*>(this)-> | 7144 return reinterpret_cast<const i::ProfileNode*>(this)-> |
| 7145 entry()->column_number(); | 7145 entry()->column_number(); |
| 7146 } | 7146 } |
| 7147 | 7147 |
| 7148 | 7148 |
| 7149 unsigned int CpuProfileNode::GetHitLineCount() const { |
| 7150 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
| 7151 return node->GetHitLineCount(); |
| 7152 } |
| 7153 |
| 7154 |
| 7155 bool CpuProfileNode::GetLineTicks(LineTick* entries, |
| 7156 unsigned int length) const { |
| 7157 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
| 7158 return node->GetLineTicks(entries, length); |
| 7159 } |
| 7160 |
| 7161 |
| 7149 const char* CpuProfileNode::GetBailoutReason() const { | 7162 const char* CpuProfileNode::GetBailoutReason() const { |
| 7150 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); | 7163 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
| 7151 return node->entry()->bailout_reason(); | 7164 return node->entry()->bailout_reason(); |
| 7152 } | 7165 } |
| 7153 | 7166 |
| 7154 | 7167 |
| 7155 unsigned CpuProfileNode::GetHitCount() const { | 7168 unsigned CpuProfileNode::GetHitCount() const { |
| 7156 return reinterpret_cast<const i::ProfileNode*>(this)->self_ticks(); | 7169 return reinterpret_cast<const i::ProfileNode*>(this)->self_ticks(); |
| 7157 } | 7170 } |
| 7158 | 7171 |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7745 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 7758 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
| 7746 Address callback_address = | 7759 Address callback_address = |
| 7747 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 7760 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
| 7748 VMState<EXTERNAL> state(isolate); | 7761 VMState<EXTERNAL> state(isolate); |
| 7749 ExternalCallbackScope call_scope(isolate, callback_address); | 7762 ExternalCallbackScope call_scope(isolate, callback_address); |
| 7750 callback(info); | 7763 callback(info); |
| 7751 } | 7764 } |
| 7752 | 7765 |
| 7753 | 7766 |
| 7754 } } // namespace v8::internal | 7767 } } // namespace v8::internal |
| OLD | NEW |