| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "bin/io_natives.h" | 5 #include "bin/io_natives.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include "bin/builtin.h" | 10 #include "bin/builtin.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 V(File_Read, 2) \ | 43 V(File_Read, 2) \ |
| 44 V(File_ReadInto, 4) \ | 44 V(File_ReadInto, 4) \ |
| 45 V(File_WriteFrom, 4) \ | 45 V(File_WriteFrom, 4) \ |
| 46 V(File_Position, 1) \ | 46 V(File_Position, 1) \ |
| 47 V(File_SetPosition, 2) \ | 47 V(File_SetPosition, 2) \ |
| 48 V(File_Truncate, 2) \ | 48 V(File_Truncate, 2) \ |
| 49 V(File_Length, 1) \ | 49 V(File_Length, 1) \ |
| 50 V(File_LengthFromPath, 1) \ | 50 V(File_LengthFromPath, 1) \ |
| 51 V(File_Stat, 1) \ | 51 V(File_Stat, 1) \ |
| 52 V(File_LastModified, 1) \ | 52 V(File_LastModified, 1) \ |
| 53 V(File_SetLastModified, 2) \ |
| 54 V(File_LastAccessed, 1) \ |
| 55 V(File_SetLastAccessed, 2) \ |
| 53 V(File_Flush, 1) \ | 56 V(File_Flush, 1) \ |
| 54 V(File_Lock, 4) \ | 57 V(File_Lock, 4) \ |
| 55 V(File_Create, 1) \ | 58 V(File_Create, 1) \ |
| 56 V(File_CreateLink, 2) \ | 59 V(File_CreateLink, 2) \ |
| 57 V(File_LinkTarget, 1) \ | 60 V(File_LinkTarget, 1) \ |
| 58 V(File_Delete, 1) \ | 61 V(File_Delete, 1) \ |
| 59 V(File_DeleteLink, 1) \ | 62 V(File_DeleteLink, 1) \ |
| 60 V(File_Rename, 2) \ | 63 V(File_Rename, 2) \ |
| 61 V(File_Copy, 2) \ | 64 V(File_Copy, 2) \ |
| 62 V(File_RenameLink, 2) \ | 65 V(File_RenameLink, 2) \ |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 struct NativeEntries* entry = &(IOEntries[i]); | 190 struct NativeEntries* entry = &(IOEntries[i]); |
| 188 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { | 191 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { |
| 189 return reinterpret_cast<const uint8_t*>(entry->name_); | 192 return reinterpret_cast<const uint8_t*>(entry->name_); |
| 190 } | 193 } |
| 191 } | 194 } |
| 192 return NULL; | 195 return NULL; |
| 193 } | 196 } |
| 194 | 197 |
| 195 } // namespace bin | 198 } // namespace bin |
| 196 } // namespace dart | 199 } // namespace dart |
| OLD | NEW |