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

Side by Side Diff: runtime/vm/service_isolate.cc

Issue 1403693002: - Implement package map parameter when spawning isolate. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix typo in comment. Created 5 years, 2 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 "vm/service_isolate.h" 5 #include "vm/service_isolate.h"
6 6
7 #include "vm/compiler.h" 7 #include "vm/compiler.h"
8 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 } 306 }
307 307
308 Isolate::Flags default_flags; 308 Isolate::Flags default_flags;
309 Dart_IsolateFlags api_flags; 309 Dart_IsolateFlags api_flags;
310 default_flags.CopyTo(&api_flags); 310 default_flags.CopyTo(&api_flags);
311 311
312 isolate = 312 isolate =
313 reinterpret_cast<Isolate*>(create_callback(ServiceIsolate::kName, 313 reinterpret_cast<Isolate*>(create_callback(ServiceIsolate::kName,
314 NULL, 314 NULL,
315 NULL, 315 NULL,
316 NULL,
316 &api_flags, 317 &api_flags,
317 NULL, 318 NULL,
318 &error)); 319 &error));
319 if (isolate == NULL) { 320 if (isolate == NULL) {
320 OS::PrintErr("vm-service: Isolate creation error: %s\n", error); 321 OS::PrintErr("vm-service: Isolate creation error: %s\n", error);
321 ServiceIsolate::FinishedInitializing(); 322 ServiceIsolate::FinishedInitializing();
322 return; 323 return;
323 } 324 }
324 325
325 326
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 ASSERT(!result.IsNull()); 487 ASSERT(!result.IsNull());
487 Dart_Port port = ILLEGAL_PORT; 488 Dart_Port port = ILLEGAL_PORT;
488 if (result.IsReceivePort()) { 489 if (result.IsReceivePort()) {
489 port = ReceivePort::Cast(result).Id(); 490 port = ReceivePort::Cast(result).Id();
490 } 491 }
491 ASSERT(port != ILLEGAL_PORT); 492 ASSERT(port != ILLEGAL_PORT);
492 ServiceIsolate::SetServicePort(port); 493 ServiceIsolate::SetServicePort(port);
493 } 494 }
494 495
495 } // namespace dart 496 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698