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 7096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7107 return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number(); | 7107 return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number(); |
7108 } | 7108 } |
7109 | 7109 |
7110 | 7110 |
7111 int CpuProfileNode::GetColumnNumber() const { | 7111 int CpuProfileNode::GetColumnNumber() const { |
7112 return reinterpret_cast<const i::ProfileNode*>(this)-> | 7112 return reinterpret_cast<const i::ProfileNode*>(this)-> |
7113 entry()->column_number(); | 7113 entry()->column_number(); |
7114 } | 7114 } |
7115 | 7115 |
7116 | 7116 |
7117 unsigned int CpuProfileNode::GetHitLineCount() const { | |
7118 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); | |
7119 return node->GetHitLineCount(); | |
7120 } | |
7121 | |
7122 | |
7123 bool CpuProfileNode::GetLineTicks(LineTick* entries, | |
7124 unsigned int length) const { | |
7125 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); | |
7126 return node->GetLineTicks(entries, length); | |
7127 } | |
7128 | |
7129 | |
7130 const char* CpuProfileNode::GetBailoutReason() const { | 7117 const char* CpuProfileNode::GetBailoutReason() const { |
7131 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); | 7118 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
7132 return node->entry()->bailout_reason(); | 7119 return node->entry()->bailout_reason(); |
7133 } | 7120 } |
7134 | 7121 |
7135 | 7122 |
7136 unsigned CpuProfileNode::GetHitCount() const { | 7123 unsigned CpuProfileNode::GetHitCount() const { |
7137 return reinterpret_cast<const i::ProfileNode*>(this)->self_ticks(); | 7124 return reinterpret_cast<const i::ProfileNode*>(this)->self_ticks(); |
7138 } | 7125 } |
7139 | 7126 |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7726 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 7713 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
7727 Address callback_address = | 7714 Address callback_address = |
7728 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 7715 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
7729 VMState<EXTERNAL> state(isolate); | 7716 VMState<EXTERNAL> state(isolate); |
7730 ExternalCallbackScope call_scope(isolate, callback_address); | 7717 ExternalCallbackScope call_scope(isolate, callback_address); |
7731 callback(info); | 7718 callback(info); |
7732 } | 7719 } |
7733 | 7720 |
7734 | 7721 |
7735 } } // namespace v8::internal | 7722 } } // namespace v8::internal |
OLD | NEW |