| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "bin/vmservice_dartium.h" | 5 #include "bin/vmservice_dartium.h" |
| 6 | 6 |
| 7 #include "bin/builtin.h" | 7 #include "bin/builtin.h" |
| 8 #include "bin/dartutils.h" | 8 #include "bin/dartutils.h" |
| 9 #include "bin/eventhandler.h" | 9 #include "bin/eventhandler.h" |
| 10 #include "bin/platform.h" | 10 #include "bin/platform.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 &error); | 55 &error); |
| 56 if (!isolate) { | 56 if (!isolate) { |
| 57 fprintf(stderr, "Dart_CreateIsolate failed: %s\n", error); | 57 fprintf(stderr, "Dart_CreateIsolate failed: %s\n", error); |
| 58 return 0; | 58 return 0; |
| 59 } | 59 } |
| 60 | 60 |
| 61 Dart_EnterScope(); | 61 Dart_EnterScope(); |
| 62 Builtin::SetNativeResolver(Builtin::kBuiltinLibrary); | 62 Builtin::SetNativeResolver(Builtin::kBuiltinLibrary); |
| 63 Builtin::SetNativeResolver(Builtin::kIOLibrary); | 63 Builtin::SetNativeResolver(Builtin::kIOLibrary); |
| 64 | 64 |
| 65 Dart_Handle result; | |
| 66 | |
| 67 ASSERT(Dart_IsServiceIsolate(isolate)); | 65 ASSERT(Dart_IsServiceIsolate(isolate)); |
| 68 if (!VmService::Setup(DEFAULT_VM_SERVICE_SERVER_IP, | 66 if (!VmService::Setup(DEFAULT_VM_SERVICE_SERVER_IP, |
| 69 DEFAULT_VM_SERVICE_SERVER_PORT, | 67 DEFAULT_VM_SERVICE_SERVER_PORT, |
| 70 false /* running_precompiled */)) { | 68 false /* running_precompiled */)) { |
| 71 fprintf(stderr, | 69 fprintf(stderr, |
| 72 "Vmservice::Setup failed: %s\n", VmService::GetErrorMessage()); | 70 "Vmservice::Setup failed: %s\n", VmService::GetErrorMessage()); |
| 73 isolate = NULL; | 71 isolate = NULL; |
| 74 } | 72 } |
| 75 Dart_ExitScope(); | 73 Dart_ExitScope(); |
| 76 Dart_ExitIsolate(); | 74 Dart_ExitIsolate(); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 } | 149 } |
| 152 | 150 |
| 153 /* DISALLOW_ALLOCATION */ | 151 /* DISALLOW_ALLOCATION */ |
| 154 void VmServiceServer::operator delete(void* pointer) { | 152 void VmServiceServer::operator delete(void* pointer) { |
| 155 fprintf(stderr, "unreachable code\n"); | 153 fprintf(stderr, "unreachable code\n"); |
| 156 abort(); | 154 abort(); |
| 157 } | 155 } |
| 158 | 156 |
| 159 } // namespace bin | 157 } // namespace bin |
| 160 } // namespace dart | 158 } // namespace dart |
| OLD | NEW |