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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 Dart_Handle builtin_lib = | 62 Dart_Handle builtin_lib = |
63 Builtin::LoadAndCheckLibrary(Builtin::kBuiltinLibrary); | 63 Builtin::LoadAndCheckLibrary(Builtin::kBuiltinLibrary); |
64 CHECK_RESULT(builtin_lib); | 64 CHECK_RESULT(builtin_lib); |
65 | 65 |
66 Dart_Handle result; | 66 Dart_Handle result; |
67 | 67 |
68 // Prepare for script loading by setting up the 'print' and 'timer' | 68 // Prepare for script loading by setting up the 'print' and 'timer' |
69 // closures and setting up 'package root' for URI resolution. | 69 // closures and setting up 'package root' for URI resolution. |
70 result = DartUtils::PrepareForScriptLoading( | 70 result = DartUtils::PrepareForScriptLoading( |
71 NULL, NULL, NULL, true, false, builtin_lib); | 71 NULL, NULL, true, false, builtin_lib); |
72 CHECK_RESULT(result); | 72 CHECK_RESULT(result); |
73 | 73 |
74 ASSERT(Dart_IsServiceIsolate(isolate)); | 74 ASSERT(Dart_IsServiceIsolate(isolate)); |
75 if (!VmService::Setup(DEFAULT_VM_SERVICE_SERVER_IP, | 75 if (!VmService::Setup(DEFAULT_VM_SERVICE_SERVER_IP, |
76 DEFAULT_VM_SERVICE_SERVER_PORT, | 76 DEFAULT_VM_SERVICE_SERVER_PORT, |
77 false /* running_precompiled */)) { | 77 false /* running_precompiled */)) { |
78 fprintf(stderr, | 78 fprintf(stderr, |
79 "Vmservice::Setup failed: %s\n", VmService::GetErrorMessage()); | 79 "Vmservice::Setup failed: %s\n", VmService::GetErrorMessage()); |
80 isolate = NULL; | 80 isolate = NULL; |
81 } | 81 } |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 } | 158 } |
159 | 159 |
160 /* DISALLOW_ALLOCATION */ | 160 /* DISALLOW_ALLOCATION */ |
161 void VmServiceServer::operator delete(void* pointer) { | 161 void VmServiceServer::operator delete(void* pointer) { |
162 fprintf(stderr, "unreachable code\n"); | 162 fprintf(stderr, "unreachable code\n"); |
163 abort(); | 163 abort(); |
164 } | 164 } |
165 | 165 |
166 } // namespace bin | 166 } // namespace bin |
167 } // namespace dart | 167 } // namespace dart |
OLD | NEW |