| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 Builtin::SetNativeResolver(Builtin::kIOLibrary); | 60 Builtin::SetNativeResolver(Builtin::kIOLibrary); |
| 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(NULL, true, builtin_lib); | 70 result = DartUtils::PrepareForScriptLoading(NULL, true, false, builtin_lib); |
| 71 CHECK_RESULT(result); | 71 CHECK_RESULT(result); |
| 72 | 72 |
| 73 ASSERT(Dart_IsServiceIsolate(isolate)); | 73 ASSERT(Dart_IsServiceIsolate(isolate)); |
| 74 if (!VmService::Setup(DEFAULT_VM_SERVICE_SERVER_IP, | 74 if (!VmService::Setup(DEFAULT_VM_SERVICE_SERVER_IP, |
| 75 DEFAULT_VM_SERVICE_SERVER_PORT)) { | 75 DEFAULT_VM_SERVICE_SERVER_PORT)) { |
| 76 fprintf(stderr, | 76 fprintf(stderr, |
| 77 "Vmservice::Setup failed: %s\n", VmService::GetErrorMessage()); | 77 "Vmservice::Setup failed: %s\n", VmService::GetErrorMessage()); |
| 78 isolate = NULL; | 78 isolate = NULL; |
| 79 } | 79 } |
| 80 Dart_ExitScope(); | 80 Dart_ExitScope(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 94 | 94 |
| 95 | 95 |
| 96 /* DISALLOW_ALLOCATION */ | 96 /* DISALLOW_ALLOCATION */ |
| 97 void VmServiceServer::operator delete(void* pointer) { | 97 void VmServiceServer::operator delete(void* pointer) { |
| 98 fprintf(stderr, "unreachable code\n"); | 98 fprintf(stderr, "unreachable code\n"); |
| 99 abort(); | 99 abort(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 } // namespace bin | 102 } // namespace bin |
| 103 } // namespace dart | 103 } // namespace dart |
| OLD | NEW |