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 9607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9618 | 9618 |
9619 debug::Coverage::ScriptData debug::Coverage::GetScriptData(size_t i) { | 9619 debug::Coverage::ScriptData debug::Coverage::GetScriptData(size_t i) { |
9620 return ScriptData(&coverage_->at(i)); | 9620 return ScriptData(&coverage_->at(i)); |
9621 } | 9621 } |
9622 | 9622 |
9623 debug::Coverage debug::Coverage::Collect(Isolate* isolate, bool reset_count) { | 9623 debug::Coverage debug::Coverage::Collect(Isolate* isolate, bool reset_count) { |
9624 return Coverage(i::Coverage::Collect(reinterpret_cast<i::Isolate*>(isolate), | 9624 return Coverage(i::Coverage::Collect(reinterpret_cast<i::Isolate*>(isolate), |
9625 reset_count)); | 9625 reset_count)); |
9626 } | 9626 } |
9627 | 9627 |
9628 void debug::Coverage::TogglePrecise(Isolate* isolate, bool enable) { | 9628 void debug::Coverage::SelectMode(Isolate* isolate, debug::Coverage::Mode mode) { |
9629 i::Coverage::TogglePrecise(reinterpret_cast<i::Isolate*>(isolate), enable); | 9629 i::Coverage::SelectMode(reinterpret_cast<i::Isolate*>(isolate), mode); |
9630 } | 9630 } |
9631 | 9631 |
9632 const char* CpuProfileNode::GetFunctionNameStr() const { | 9632 const char* CpuProfileNode::GetFunctionNameStr() const { |
9633 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); | 9633 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
9634 return node->entry()->name(); | 9634 return node->entry()->name(); |
9635 } | 9635 } |
9636 | 9636 |
9637 int CpuProfileNode::GetScriptId() const { | 9637 int CpuProfileNode::GetScriptId() const { |
9638 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); | 9638 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
9639 const i::CodeEntry* entry = node->entry(); | 9639 const i::CodeEntry* entry = node->entry(); |
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10290 Address callback_address = | 10290 Address callback_address = |
10291 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 10291 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
10292 VMState<EXTERNAL> state(isolate); | 10292 VMState<EXTERNAL> state(isolate); |
10293 ExternalCallbackScope call_scope(isolate, callback_address); | 10293 ExternalCallbackScope call_scope(isolate, callback_address); |
10294 callback(info); | 10294 callback(info); |
10295 } | 10295 } |
10296 | 10296 |
10297 | 10297 |
10298 } // namespace internal | 10298 } // namespace internal |
10299 } // namespace v8 | 10299 } // namespace v8 |
OLD | NEW |