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 7045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7056 return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number(); | 7056 return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number(); |
7057 } | 7057 } |
7058 | 7058 |
7059 | 7059 |
7060 int CpuProfileNode::GetColumnNumber() const { | 7060 int CpuProfileNode::GetColumnNumber() const { |
7061 return reinterpret_cast<const i::ProfileNode*>(this)-> | 7061 return reinterpret_cast<const i::ProfileNode*>(this)-> |
7062 entry()->column_number(); | 7062 entry()->column_number(); |
7063 } | 7063 } |
7064 | 7064 |
7065 | 7065 |
| 7066 unsigned int CpuProfileNode::GetHitLineCount() const { |
| 7067 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
| 7068 return node->GetHitLineCount(); |
| 7069 } |
| 7070 |
| 7071 |
| 7072 bool CpuProfileNode::GetLineTicks(LineTick* entries, |
| 7073 unsigned int number) const { |
| 7074 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
| 7075 return node->GetLineTicks(entries, number); |
| 7076 } |
| 7077 |
| 7078 |
7066 const char* CpuProfileNode::GetBailoutReason() const { | 7079 const char* CpuProfileNode::GetBailoutReason() const { |
7067 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); | 7080 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
7068 return node->entry()->bailout_reason(); | 7081 return node->entry()->bailout_reason(); |
7069 } | 7082 } |
7070 | 7083 |
7071 | 7084 |
7072 unsigned CpuProfileNode::GetHitCount() const { | 7085 unsigned CpuProfileNode::GetHitCount() const { |
7073 return reinterpret_cast<const i::ProfileNode*>(this)->self_ticks(); | 7086 return reinterpret_cast<const i::ProfileNode*>(this)->self_ticks(); |
7074 } | 7087 } |
7075 | 7088 |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7662 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 7675 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
7663 Address callback_address = | 7676 Address callback_address = |
7664 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 7677 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
7665 VMState<EXTERNAL> state(isolate); | 7678 VMState<EXTERNAL> state(isolate); |
7666 ExternalCallbackScope call_scope(isolate, callback_address); | 7679 ExternalCallbackScope call_scope(isolate, callback_address); |
7667 callback(info); | 7680 callback(info); |
7668 } | 7681 } |
7669 | 7682 |
7670 | 7683 |
7671 } } // namespace v8::internal | 7684 } } // namespace v8::internal |
OLD | NEW |