Changeset 170589 in webkit for trunk/Source/JavaScriptCore/API/JSContextRef.cpp
- Timestamp:
- Jun 30, 2014, 10:57:39 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSContextRef.cpp
r169139 r170589 26 26 #include "config.h" 27 27 #include "JSContextRef.h" 28 #include "JSContextRef Private.h"28 #include "JSContextRefInternal.h" 29 29 30 30 #include "APICast.h" … … 42 42 43 43 #if ENABLE(REMOTE_INSPECTOR) 44 #include "JSGlobalObjectDebuggable.h" 44 45 #include "JSGlobalObjectInspectorController.h" 45 46 #endif … … 368 369 } 369 370 371 #if USE(CF) 372 CFRunLoopRef JSGlobalContextGetDebuggerRunLoop(JSGlobalContextRef ctx) 373 { 374 #if ENABLE(REMOTE_INSPECTOR) 375 if (!ctx) { 376 ASSERT_NOT_REACHED(); 377 return nullptr; 378 } 379 380 ExecState* exec = toJS(ctx); 381 JSLockHolder lock(exec); 382 383 return exec->vmEntryGlobalObject()->inspectorDebuggable().debuggerRunLoop(); 384 #else 385 UNUSED_PARAM(ctx); 386 return nullptr; 387 #endif 388 } 389 390 void JSGlobalContextSetDebuggerRunLoop(JSGlobalContextRef ctx, CFRunLoopRef runLoop) 391 { 392 #if ENABLE(REMOTE_INSPECTOR) 393 if (!ctx) { 394 ASSERT_NOT_REACHED(); 395 return; 396 } 397 398 ExecState* exec = toJS(ctx); 399 JSLockHolder lock(exec); 400 401 exec->vmEntryGlobalObject()->inspectorDebuggable().setDebuggerRunLoop(runLoop); 402 #else 403 UNUSED_PARAM(ctx); 404 UNUSED_PARAM(runLoop); 405 #endif 406 } 407 #endif
Note:
See TracChangeset
for help on using the changeset viewer.