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

Side by Side Diff: src/api.cc

Issue 2668613002: [inspector] added Debugger.moduleRequested notification
Patch Set: added missing test Created 3 years, 10 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.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 9310 matching lines...) Expand 10 before | Expand all | Expand 10 after
9321 if (script->type() != i::Script::TYPE_NORMAL) continue; 9321 if (script->type() != i::Script::TYPE_NORMAL) continue;
9322 if (script->HasValidSource()) { 9322 if (script->HasValidSource()) {
9323 i::HandleScope handle_scope(isolate); 9323 i::HandleScope handle_scope(isolate);
9324 i::Handle<i::Script> script_handle(script, isolate); 9324 i::Handle<i::Script> script_handle(script, isolate);
9325 scripts.Append(ToApiHandle<Script>(script_handle)); 9325 scripts.Append(ToApiHandle<Script>(script_handle));
9326 } 9326 }
9327 } 9327 }
9328 } 9328 }
9329 } 9329 }
9330 9330
9331 void debug::ReportRequestedModules(Isolate* v8_isolate) {
9332 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate);
9333 ENTER_V8(isolate);
9334 isolate->debug()->ReportRequestedModules();
9335 }
9336
9331 MaybeLocal<UnboundScript> debug::CompileInspectorScript(Isolate* v8_isolate, 9337 MaybeLocal<UnboundScript> debug::CompileInspectorScript(Isolate* v8_isolate,
9332 Local<String> source) { 9338 Local<String> source) {
9333 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); 9339 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate);
9334 PREPARE_FOR_DEBUG_INTERFACE_EXECUTION_WITH_ISOLATE(isolate, UnboundScript); 9340 PREPARE_FOR_DEBUG_INTERFACE_EXECUTION_WITH_ISOLATE(isolate, UnboundScript);
9335 i::ScriptData* script_data = NULL; 9341 i::ScriptData* script_data = NULL;
9336 i::Handle<i::String> str = Utils::OpenHandle(*source); 9342 i::Handle<i::String> str = Utils::OpenHandle(*source);
9337 i::Handle<i::SharedFunctionInfo> result; 9343 i::Handle<i::SharedFunctionInfo> result;
9338 { 9344 {
9339 ScriptOriginOptions origin_options; 9345 ScriptOriginOptions origin_options;
9340 result = i::Compiler::GetSharedFunctionInfoForScript( 9346 result = i::Compiler::GetSharedFunctionInfoForScript(
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
10059 Address callback_address = 10065 Address callback_address =
10060 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 10066 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
10061 VMState<EXTERNAL> state(isolate); 10067 VMState<EXTERNAL> state(isolate);
10062 ExternalCallbackScope call_scope(isolate, callback_address); 10068 ExternalCallbackScope call_scope(isolate, callback_address);
10063 callback(info); 10069 callback(info);
10064 } 10070 }
10065 10071
10066 10072
10067 } // namespace internal 10073 } // namespace internal
10068 } // namespace v8 10074 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/debug/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698