Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: src/api.cc

Issue 2396193002: [inspector] move changeBreakpointState from debugger-script to native (Closed)
Patch Set: rebased Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/debug/debug-interface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 8787 matching lines...) Expand 10 before | Expand all | Expand 10 after
8798 8798
8799 void DebugInterface::CancelDebugBreak(Isolate* isolate) { 8799 void DebugInterface::CancelDebugBreak(Isolate* isolate) {
8800 Debug::CancelDebugBreak(isolate); 8800 Debug::CancelDebugBreak(isolate);
8801 } 8801 }
8802 8802
8803 MaybeLocal<Array> DebugInterface::GetInternalProperties(Isolate* isolate, 8803 MaybeLocal<Array> DebugInterface::GetInternalProperties(Isolate* isolate,
8804 Local<Value> value) { 8804 Local<Value> value) {
8805 return Debug::GetInternalProperties(isolate, value); 8805 return Debug::GetInternalProperties(isolate, value);
8806 } 8806 }
8807 8807
8808 void DebugInterface::ChangeBreakOnException(Isolate* isolate,
8809 ExceptionBreakState type) {
8810 i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate);
8811 internal_isolate->debug()->ChangeBreakOnException(
8812 i::BreakException, type == BreakOnAnyException);
8813 internal_isolate->debug()->ChangeBreakOnException(i::BreakUncaughtException,
8814 type != NoBreakOnException);
8815 }
8816
8808 Local<String> CpuProfileNode::GetFunctionName() const { 8817 Local<String> CpuProfileNode::GetFunctionName() const {
8809 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); 8818 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this);
8810 i::Isolate* isolate = node->isolate(); 8819 i::Isolate* isolate = node->isolate();
8811 const i::CodeEntry* entry = node->entry(); 8820 const i::CodeEntry* entry = node->entry();
8812 i::Handle<i::String> name = 8821 i::Handle<i::String> name =
8813 isolate->factory()->InternalizeUtf8String(entry->name()); 8822 isolate->factory()->InternalizeUtf8String(entry->name());
8814 if (!entry->has_name_prefix()) { 8823 if (!entry->has_name_prefix()) {
8815 return ToApiHandle<String>(name); 8824 return ToApiHandle<String>(name);
8816 } else { 8825 } else {
8817 // We do not expect this to fail. Change this if it does. 8826 // We do not expect this to fail. Change this if it does.
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
9486 Address callback_address = 9495 Address callback_address =
9487 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 9496 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
9488 VMState<EXTERNAL> state(isolate); 9497 VMState<EXTERNAL> state(isolate);
9489 ExternalCallbackScope call_scope(isolate, callback_address); 9498 ExternalCallbackScope call_scope(isolate, callback_address);
9490 callback(info); 9499 callback(info);
9491 } 9500 }
9492 9501
9493 9502
9494 } // namespace internal 9503 } // namespace internal
9495 } // namespace v8 9504 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/debug/debug-interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698