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

Side by Side Diff: runtime/bin/gen_snapshot.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Generate a snapshot file after loading all the scripts specified on the 5 // Generate a snapshot file after loading all the scripts specified on the
6 // command line. 6 // command line.
7 7
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 587
588 // Ensure that we mark all libraries as loaded. 588 // Ensure that we mark all libraries as loaded.
589 result = Dart_FinalizeLoading(false); 589 result = Dart_FinalizeLoading(false);
590 CHECK_RESULT(result); 590 CHECK_RESULT(result);
591 591
592 // Prepare for script loading by setting up the 'print' and 'timer' 592 // Prepare for script loading by setting up the 'print' and 'timer'
593 // closures and setting up 'package root' for URI resolution. 593 // closures and setting up 'package root' for URI resolution.
594 result = 594 result =
595 DartUtils::PrepareForScriptLoading(package_root, 595 DartUtils::PrepareForScriptLoading(package_root,
596 NULL, 596 NULL,
597 NULL,
597 false, 598 false,
598 false, 599 false,
599 builtin_lib); 600 builtin_lib);
600 CHECK_RESULT(result); 601 CHECK_RESULT(result);
601 Dart_ExitScope(); 602 Dart_ExitScope();
602 Dart_ExitIsolate(); 603 Dart_ExitIsolate();
603 604
604 UriResolverIsolateScope::isolate = isolate; 605 UriResolverIsolateScope::isolate = isolate;
605 606
606 // Now we create an isolate into which we load all the code that needs to 607 // Now we create an isolate into which we load all the code that needs to
(...skipping 25 matching lines...) Expand all
632 } 633 }
633 return 0; 634 return 0;
634 } 635 }
635 636
636 } // namespace bin 637 } // namespace bin
637 } // namespace dart 638 } // namespace dart
638 639
639 int main(int argc, char** argv) { 640 int main(int argc, char** argv) {
640 return dart::bin::main(argc, argv); 641 return dart::bin::main(argc, argv);
641 } 642 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698