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 7014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7025 return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number(); | 7025 return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number(); |
7026 } | 7026 } |
7027 | 7027 |
7028 | 7028 |
7029 int CpuProfileNode::GetColumnNumber() const { | 7029 int CpuProfileNode::GetColumnNumber() const { |
7030 return reinterpret_cast<const i::ProfileNode*>(this)-> | 7030 return reinterpret_cast<const i::ProfileNode*>(this)-> |
7031 entry()->column_number(); | 7031 entry()->column_number(); |
7032 } | 7032 } |
7033 | 7033 |
7034 | 7034 |
| 7035 unsigned int CpuProfileNode::GetHitLineCount() const { |
| 7036 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
| 7037 return node->GetHitLineCount(); |
| 7038 } |
| 7039 |
| 7040 |
| 7041 bool CpuProfileNode::GetLineTicks(LineTick* entries, |
| 7042 unsigned int length) const { |
| 7043 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
| 7044 return node->GetLineTicks(entries, length); |
| 7045 } |
| 7046 |
| 7047 |
7035 const char* CpuProfileNode::GetBailoutReason() const { | 7048 const char* CpuProfileNode::GetBailoutReason() const { |
7036 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); | 7049 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
7037 return node->entry()->bailout_reason(); | 7050 return node->entry()->bailout_reason(); |
7038 } | 7051 } |
7039 | 7052 |
7040 | 7053 |
7041 unsigned CpuProfileNode::GetHitCount() const { | 7054 unsigned CpuProfileNode::GetHitCount() const { |
7042 return reinterpret_cast<const i::ProfileNode*>(this)->self_ticks(); | 7055 return reinterpret_cast<const i::ProfileNode*>(this)->self_ticks(); |
7043 } | 7056 } |
7044 | 7057 |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7631 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 7644 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
7632 Address callback_address = | 7645 Address callback_address = |
7633 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 7646 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
7634 VMState<EXTERNAL> state(isolate); | 7647 VMState<EXTERNAL> state(isolate); |
7635 ExternalCallbackScope call_scope(isolate, callback_address); | 7648 ExternalCallbackScope call_scope(isolate, callback_address); |
7636 callback(info); | 7649 callback(info); |
7637 } | 7650 } |
7638 | 7651 |
7639 | 7652 |
7640 } } // namespace v8::internal | 7653 } } // namespace v8::internal |
OLD | NEW |