OLD | NEW |
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 #ifndef BIN_BUILTIN_H_ | 5 #ifndef BIN_BUILTIN_H_ |
6 #define BIN_BUILTIN_H_ | 6 #define BIN_BUILTIN_H_ |
7 | 7 |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 static Dart_Handle LoadAndCheckLibrary(BuiltinLibraryId id); | 39 static Dart_Handle LoadAndCheckLibrary(BuiltinLibraryId id); |
40 static void PrintString(FILE* out, Dart_Handle object); | 40 static void PrintString(FILE* out, Dart_Handle object); |
41 | 41 |
42 private: | 42 private: |
43 static Dart_NativeFunction NativeLookup(Dart_Handle name, | 43 static Dart_NativeFunction NativeLookup(Dart_Handle name, |
44 int argument_count); | 44 int argument_count); |
45 | 45 |
46 static const char builtin_source_[]; | 46 static const char builtin_source_[]; |
47 static const char crypto_source_[]; | 47 static const char crypto_source_[]; |
48 static const char io_source_[]; | 48 static const char io_source_[]; |
| 49 static const char io_patch_[]; |
49 static const char json_source_[]; | 50 static const char json_source_[]; |
50 static const char uri_source_[]; | 51 static const char uri_source_[]; |
51 static const char utf_source_[]; | 52 static const char utf_source_[]; |
52 static const char web_source_[]; | 53 static const char web_source_[]; |
53 | 54 |
54 typedef struct { | 55 typedef struct { |
55 const char* url_; | 56 const char* url_; |
56 const char* source_; | 57 const char* source_; |
| 58 const char* patch_url_; |
| 59 const char* patch_source_; |
57 bool has_natives_; | 60 bool has_natives_; |
58 } builtin_lib_props; | 61 } builtin_lib_props; |
59 static builtin_lib_props builtin_libraries_[]; | 62 static builtin_lib_props builtin_libraries_[]; |
60 | 63 |
61 DISALLOW_ALLOCATION(); | 64 DISALLOW_ALLOCATION(); |
62 DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin); | 65 DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin); |
63 }; | 66 }; |
64 | 67 |
65 | 68 |
66 #endif // BIN_BUILTIN_H_ | 69 #endif // BIN_BUILTIN_H_ |
OLD | NEW |