Chromium Code Reviews| Index: Source/bindings/dart/DartController.cpp |
| diff --git a/Source/bindings/dart/DartController.cpp b/Source/bindings/dart/DartController.cpp |
| index 6db8dbd27790bfe69679df731198e9c337134494..7bb27df2360347e52597127dfc524238783ec365 100644 |
| --- a/Source/bindings/dart/DartController.cpp |
| +++ b/Source/bindings/dart/DartController.cpp |
| @@ -44,12 +44,12 @@ |
| #include "bindings/dart/DartAsyncLoader.h" |
| #include "bindings/dart/DartDOMData.h" |
| #include "bindings/dart/DartDOMWrapper.h" |
| -#include "bindings/dart/DartDebugServer.h" |
| #include "bindings/dart/DartGCController.h" |
| #include "bindings/dart/DartInspectorTimeline.h" |
| #include "bindings/dart/DartIsolateDestructionObserver.h" |
| #include "bindings/dart/DartJsInterop.h" |
| #include "bindings/dart/DartNativeUtilities.h" |
| +#include "bindings/dart/DartScriptDebugServer.h" |
| #include "bindings/dart/DartScriptState.h" |
| #include "bindings/dart/DartUtilities.h" |
| #include "bindings/dart/ThreadSafeDartIsolateWrapper.h" |
| @@ -207,7 +207,7 @@ Dart_Isolate DartController::createIsolate(const char* scriptURL, const char* en |
| if (isDebuggerEnabled) { |
|
vsm
2014/06/03 14:24:49
When is this enabled? I seem to hit this path reg
Jacob
2014/06/03 20:23:13
I believe the flag is always true unless you start
|
| DART_RECORD_TIMER(" createIsolate before debug setup"); |
| - DartDebugServer::shared().registerIsolate(isolate); |
| + DartScriptDebugServer::shared().registerIsolate(isolate, document->page()); |
| DART_RECORD_TIMER(" createIsolate after debug setup"); |
| } |
| } |
| @@ -237,7 +237,7 @@ void DartController::shutdownIsolate(Dart_Isolate isolate) |
| // If the following assert triggers, we have hit dartbug.com/14183 |
| // FIXME: keep the isolate alive until the recursion level is 0. |
| ASSERT(!*(domData->recursion())); |
| - DartDebugServer::shared().unregisterIsolate(isolate); |
| + DartScriptDebugServer::shared().unregisterIsolate(isolate, m_frame->page()); |
| DartIsolateDestructionObservers* observers = domData->isolateDestructionObservers(); |
| for (DartIsolateDestructionObservers::iterator it = observers->begin(); it != observers->end(); ++it) |
| (*it)->isolateDestroyed(); |