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

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

Issue 9114008: Introduce runtime/platform directory for code shared between vm (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Windows fixes. Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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"
11 11
12 #include "bin/builtin.h" 12 #include "bin/builtin.h"
13 #include "bin/dartutils.h" 13 #include "bin/dartutils.h"
14 #include "bin/file.h" 14 #include "bin/file.h"
15 #include "bin/globals.h"
16 #include "bin/platform.h" 15 #include "bin/platform.h"
17 16
17 #include "platform/globals.h"
18
18 // snapshot_buffer points to a snapshot if we link in a snapshot otherwise 19 // snapshot_buffer points to a snapshot if we link in a snapshot otherwise
19 // it is initialized to NULL. 20 // it is initialized to NULL.
20 extern const uint8_t* snapshot_buffer; 21 extern const uint8_t* snapshot_buffer;
21 22
22 23
23 // Global state that stores a pointer to the application script file. 24 // Global state that stores a pointer to the application script file.
24 static char* canonical_script_name = NULL; 25 static char* canonical_script_name = NULL;
25 26
26 27
27 // Global state that stores a pointer to the application script snapshot. 28 // Global state that stores a pointer to the application script snapshot.
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 return 255; // Indicates we encountered an error. 499 return 255; // Indicates we encountered an error.
499 } 500 }
500 free(canonical_script_name); 501 free(canonical_script_name);
501 Dart_ExitScope(); 502 Dart_ExitScope();
502 // Dump symbol information for the profiler. 503 // Dump symbol information for the profiler.
503 DumpPprofSymbolInfo(); 504 DumpPprofSymbolInfo();
504 // Shutdown the isolate. 505 // Shutdown the isolate.
505 Dart_ShutdownIsolate(); 506 Dart_ShutdownIsolate();
506 return 0; 507 return 0;
507 } 508 }
OLDNEW
« no previous file with comments | « runtime/bin/globals.h ('k') | runtime/bin/process.h » ('j') | runtime/platform/globals.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698