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

Side by Side Diff: src/api.cc

Issue 300553008: Some debugger-related clean-ups and renamings. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('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 "api.h" 5 #include "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 6888 matching lines...) Expand 10 before | Expand all | Expand 10 after
6899 v8::Handle<v8::Value> argv[kArgc] = { obj }; 6899 v8::Handle<v8::Value> argv[kArgc] = { obj };
6900 result = v8_fun->Call(Utils::ToLocal(debug), kArgc, argv); 6900 result = v8_fun->Call(Utils::ToLocal(debug), kArgc, argv);
6901 has_pending_exception = result.IsEmpty(); 6901 has_pending_exception = result.IsEmpty();
6902 } 6902 }
6903 EXCEPTION_BAILOUT_CHECK(isolate, Local<Value>()); 6903 EXCEPTION_BAILOUT_CHECK(isolate, Local<Value>());
6904 return scope.Escape(result); 6904 return scope.Escape(result);
6905 } 6905 }
6906 6906
6907 6907
6908 void Debug::ProcessDebugMessages() { 6908 void Debug::ProcessDebugMessages() {
6909 i::Execution::ProcessDebugMessages(i::Isolate::Current(), true); 6909 i::Isolate::Current()->debug()->ProcessDebugMessages(true);
6910 } 6910 }
6911 6911
6912 6912
6913 Local<Context> Debug::GetDebugContext() { 6913 Local<Context> Debug::GetDebugContext() {
6914 i::Isolate* isolate = i::Isolate::Current(); 6914 i::Isolate* isolate = i::Isolate::Current();
6915 EnsureInitializedForIsolate(isolate, "v8::Debug::GetDebugContext()"); 6915 EnsureInitializedForIsolate(isolate, "v8::Debug::GetDebugContext()");
6916 ENTER_V8(isolate); 6916 ENTER_V8(isolate);
6917 return Utils::ToLocal(i::Isolate::Current()->debug()->GetDebugContext()); 6917 return Utils::ToLocal(i::Isolate::Current()->debug()->GetDebugContext());
6918 } 6918 }
6919 6919
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
7566 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); 7566 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
7567 Address callback_address = 7567 Address callback_address =
7568 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 7568 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
7569 VMState<EXTERNAL> state(isolate); 7569 VMState<EXTERNAL> state(isolate);
7570 ExternalCallbackScope call_scope(isolate, callback_address); 7570 ExternalCallbackScope call_scope(isolate, callback_address);
7571 callback(info); 7571 callback(info);
7572 } 7572 }
7573 7573
7574 7574
7575 } } // namespace v8::internal 7575 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698