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

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

Issue 425733002: Fix two other issues, with my previous commit. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/io/platform_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 <stdlib.h> 5 #include <stdlib.h>
6 #include <string.h> 6 #include <string.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include "include/dart_api.h" 9 #include "include/dart_api.h"
10 #include "include/dart_debugger_api.h" 10 #include "include/dart_debugger_api.h"
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 // Prepare for script loading by setting up the 'print' and 'timer' 694 // Prepare for script loading by setting up the 'print' and 'timer'
695 // closures and setting up 'package root' for URI resolution. 695 // closures and setting up 'package root' for URI resolution.
696 result = DartUtils::PrepareForScriptLoading(package_root, builtin_lib); 696 result = DartUtils::PrepareForScriptLoading(package_root, builtin_lib);
697 CHECK_RESULT(result); 697 CHECK_RESULT(result);
698 Platform::SetPackageRoot(package_root); 698 Platform::SetPackageRoot(package_root);
699 Dart_Handle io_lib_url = DartUtils::NewString(DartUtils::kIOLibURL); 699 Dart_Handle io_lib_url = DartUtils::NewString(DartUtils::kIOLibURL);
700 CHECK_RESULT(io_lib_url); 700 CHECK_RESULT(io_lib_url);
701 Dart_Handle io_lib = Dart_LookupLibrary(io_lib_url); 701 Dart_Handle io_lib = Dart_LookupLibrary(io_lib_url);
702 CHECK_RESULT(io_lib); 702 CHECK_RESULT(io_lib);
703 Dart_Handle platform_type = DartUtils::GetDartType(DartUtils::kIOLibURL, 703 Dart_Handle platform_type = DartUtils::GetDartType(DartUtils::kIOLibURL,
704 "Platform"); 704 "_Platform");
705 CHECK_RESULT(platform_type); 705 CHECK_RESULT(platform_type);
706 Dart_Handle script_name = DartUtils::NewString("_nativeScript"); 706 Dart_Handle script_name = DartUtils::NewString("_nativeScript");
707 CHECK_RESULT(script_name); 707 CHECK_RESULT(script_name);
708 Dart_Handle dart_script = DartUtils::NewString(script_uri); 708 Dart_Handle dart_script = DartUtils::NewString(script_uri);
709 CHECK_RESULT(dart_script); 709 CHECK_RESULT(dart_script);
710 Dart_Handle set_script_name = 710 Dart_Handle set_script_name =
711 Dart_SetField(platform_type, script_name, dart_script); 711 Dart_SetField(platform_type, script_name, dart_script);
712 CHECK_RESULT(set_script_name); 712 CHECK_RESULT(set_script_name);
713 Dart_ExitScope(); 713 Dart_ExitScope();
714 Dart_ExitIsolate(); 714 Dart_ExitIsolate();
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 exit(Process::GlobalExitCode()); 1179 exit(Process::GlobalExitCode());
1180 } 1180 }
1181 1181
1182 } // namespace bin 1182 } // namespace bin
1183 } // namespace dart 1183 } // namespace dart
1184 1184
1185 int main(int argc, char** argv) { 1185 int main(int argc, char** argv) {
1186 dart::bin::main(argc, argv); 1186 dart::bin::main(argc, argv);
1187 UNREACHABLE(); 1187 UNREACHABLE();
1188 } 1188 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/io/platform_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698