Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: runtime/bin/vmservice_dartium.cc

Issue 1553233002: Add package config support to dart:isolate (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Addressed review comments. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698