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

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

Issue 169753003: Don't depend on libdart_io in run_vm_tests and gen_snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make run_vm_tests pass again. Note sure about run_vm_tests.host. Created 6 years, 10 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) 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 <stdio.h> 6 #include <stdio.h>
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "include/dart_api.h" 9 #include "include/dart_api.h"
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 V(File_Delete, 1) \ 54 V(File_Delete, 1) \
55 V(File_DeleteLink, 1) \ 55 V(File_DeleteLink, 1) \
56 V(File_Rename, 2) \ 56 V(File_Rename, 2) \
57 V(File_Copy, 2) \ 57 V(File_Copy, 2) \
58 V(File_RenameLink, 2) \ 58 V(File_RenameLink, 2) \
59 V(File_ResolveSymbolicLinks, 1) \ 59 V(File_ResolveSymbolicLinks, 1) \
60 V(File_OpenStdio, 1) \ 60 V(File_OpenStdio, 1) \
61 V(File_GetStdioHandleType, 1) \ 61 V(File_GetStdioHandleType, 1) \
62 V(File_GetType, 2) \ 62 V(File_GetType, 2) \
63 V(File_AreIdentical, 2) \ 63 V(File_AreIdentical, 2) \
64 V(FileSystemWatcher_CloseWatcher, 1) \
65 V(FileSystemWatcher_GetSocketId, 2) \
66 V(FileSystemWatcher_InitWatcher, 0) \
67 V(FileSystemWatcher_IsSupported, 0) \
68 V(FileSystemWatcher_ReadEvents, 2) \
69 V(FileSystemWatcher_UnwatchPath, 2) \
70 V(FileSystemWatcher_WatchPath, 4) \
71 V(Logger_PrintString, 1) 64 V(Logger_PrintString, 1)
72 65
73 BUILTIN_NATIVE_LIST(DECLARE_FUNCTION); 66 BUILTIN_NATIVE_LIST(DECLARE_FUNCTION);
74 67
75 static struct NativeEntries { 68 static struct NativeEntries {
76 const char* name_; 69 const char* name_;
77 Dart_NativeFunction function_; 70 Dart_NativeFunction function_;
78 int argument_count_; 71 int argument_count_;
79 } BuiltinEntries[] = { 72 } BuiltinEntries[] = {
80 BUILTIN_NATIVE_LIST(REGISTER_FUNCTION) 73 BUILTIN_NATIVE_LIST(REGISTER_FUNCTION)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // interrupt. 112 // interrupt.
120 fprintf(stdout, "%s\n", Dart_GetError(result)); 113 fprintf(stdout, "%s\n", Dart_GetError(result));
121 } else { 114 } else {
122 fprintf(stdout, "%.*s\n", static_cast<int>(length), chars); 115 fprintf(stdout, "%.*s\n", static_cast<int>(length), chars);
123 } 116 }
124 fflush(stdout); 117 fflush(stdout);
125 } 118 }
126 119
127 } // namespace bin 120 } // namespace bin
128 } // namespace dart 121 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698