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

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

Issue 11260010: Moved RuntimeOptions from coreimpl to core, renamed to _OptionsImpl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « lib/coreimpl/options.dart ('k') | no next file » | 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 for (int i = 0; i < options_count; i++) { 315 for (int i = 0; i < options_count; i++) {
316 Dart_Handle argument_value = Dart_NewString(options->GetArgument(i)); 316 Dart_Handle argument_value = Dart_NewString(options->GetArgument(i));
317 if (Dart_IsError(argument_value)) { 317 if (Dart_IsError(argument_value)) {
318 return argument_value; 318 return argument_value;
319 } 319 }
320 Dart_Handle result = Dart_ListSetAt(dart_arguments, i, argument_value); 320 Dart_Handle result = Dart_ListSetAt(dart_arguments, i, argument_value);
321 if (Dart_IsError(result)) { 321 if (Dart_IsError(result)) {
322 return result; 322 return result;
323 } 323 }
324 } 324 }
325 Dart_Handle core_lib_url = Dart_NewString("dart:coreimpl"); 325 Dart_Handle core_lib_url = Dart_NewString("dart:core");
326 if (Dart_IsError(core_lib_url)) { 326 if (Dart_IsError(core_lib_url)) {
327 return core_lib_url; 327 return core_lib_url;
328 } 328 }
329 Dart_Handle core_lib = Dart_LookupLibrary(core_lib_url); 329 Dart_Handle core_lib = Dart_LookupLibrary(core_lib_url);
330 if (Dart_IsError(core_lib)) { 330 if (Dart_IsError(core_lib)) {
331 return core_lib; 331 return core_lib;
332 } 332 }
333 Dart_Handle runtime_options_class_name = Dart_NewString("RuntimeOptions"); 333 Dart_Handle runtime_options_class_name = Dart_NewString("_OptionsImpl");
334 if (Dart_IsError(runtime_options_class_name)) { 334 if (Dart_IsError(runtime_options_class_name)) {
335 return runtime_options_class_name; 335 return runtime_options_class_name;
336 } 336 }
337 Dart_Handle runtime_options_class = Dart_GetClass( 337 Dart_Handle runtime_options_class = Dart_GetClass(
338 core_lib, runtime_options_class_name); 338 core_lib, runtime_options_class_name);
339 if (Dart_IsError(runtime_options_class)) { 339 if (Dart_IsError(runtime_options_class)) {
340 return runtime_options_class; 340 return runtime_options_class;
341 } 341 }
342 Dart_Handle executable_name_name = Dart_NewString("_nativeExecutable"); 342 Dart_Handle executable_name_name = Dart_NewString("_nativeExecutable");
343 if (Dart_IsError(executable_name_name)) { 343 if (Dart_IsError(executable_name_name)) {
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 Dart_ExitScope(); 740 Dart_ExitScope();
741 // Dump symbol information for the profiler. 741 // Dump symbol information for the profiler.
742 DumpPprofSymbolInfo(); 742 DumpPprofSymbolInfo();
743 // Shutdown the isolate. 743 // Shutdown the isolate.
744 Dart_ShutdownIsolate(); 744 Dart_ShutdownIsolate();
745 // Terminate process exit-code handler. 745 // Terminate process exit-code handler.
746 Process::TerminateExitCodeHandler(); 746 Process::TerminateExitCodeHandler();
747 747
748 return 0; 748 return 0;
749 } 749 }
OLDNEW
« no previous file with comments | « lib/coreimpl/options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698