OLD | NEW |
1 // Copyright (c) 2011, 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" |
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/platform.h" | 15 #include "bin/platform.h" |
16 | |
17 #include "platform/globals.h" | 16 #include "platform/globals.h" |
18 | 17 |
19 // snapshot_buffer points to a snapshot if we link in a snapshot otherwise | 18 // snapshot_buffer points to a snapshot if we link in a snapshot otherwise |
20 // it is initialized to NULL. | 19 // it is initialized to NULL. |
21 extern const uint8_t* snapshot_buffer; | 20 extern const uint8_t* snapshot_buffer; |
22 | 21 |
23 | 22 |
24 // Global state that stores a pointer to the application script file. | 23 // Global state that stores a pointer to the application script file. |
25 static char* canonical_script_name = NULL; | 24 static char* canonical_script_name = NULL; |
26 | 25 |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 return 255; // Indicates we encountered an error. | 498 return 255; // Indicates we encountered an error. |
500 } | 499 } |
501 free(canonical_script_name); | 500 free(canonical_script_name); |
502 Dart_ExitScope(); | 501 Dart_ExitScope(); |
503 // Dump symbol information for the profiler. | 502 // Dump symbol information for the profiler. |
504 DumpPprofSymbolInfo(); | 503 DumpPprofSymbolInfo(); |
505 // Shutdown the isolate. | 504 // Shutdown the isolate. |
506 Dart_ShutdownIsolate(); | 505 Dart_ShutdownIsolate(); |
507 return 0; | 506 return 0; |
508 } | 507 } |
OLD | NEW |