Index: Source/bindings/core/dart/DartService.cpp |
diff --git a/Source/bindings/core/dart/DartService.cpp b/Source/bindings/core/dart/DartService.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f95bb095722bdeff90138d9067ede2dd702ae7e5 |
--- /dev/null |
+++ b/Source/bindings/core/dart/DartService.cpp |
@@ -0,0 +1,38 @@ |
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+#include "config.h" |
+ |
+#include "bindings/core/dart/DartService.h" |
+#include "bindings/core/dart/DartUtilities.h" |
+ |
+#include "bin/vmservice_dartium.h" |
+ |
+namespace blink { |
+ |
+void DartService::Bootstrap() |
+{ |
+ dart::bin::VmServiceServer::Bootstrap(); |
+} |
+ |
+ |
+Dart_Isolate DartService::CreateIsolate() |
+{ |
+ const uint8_t* snapshotBuffer = DartUtilities::isolateSnapshot(); |
+ return dart::bin::VmServiceServer::CreateIsolate(snapshotBuffer); |
+} |
+ |
+ |
+const char* DartService::GetServerIP() |
+{ |
+ return dart::bin::VmServiceServer::GetServerIP(); |
+} |
+ |
+ |
+intptr_t DartService::GetServerPort() |
+{ |
+ return dart::bin::VmServiceServer::GetServerPort(); |
+} |
+ |
+} |