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

Side by Side Diff: runtime/bin/dartutils.h

Issue 9254026: Split dart:builtin into dart:builtin and dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment and add binaries. 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
« no previous file with comments | « runtime/bin/builtin_sources.gypi ('k') | runtime/bin/dartutils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef BIN_DARTUTILS_H_ 5 #ifndef BIN_DARTUTILS_H_
6 #define BIN_DARTUTILS_H_ 6 #define BIN_DARTUTILS_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "include/dart_api.h" 9 #include "include/dart_api.h"
10 #include "platform/globals.h" 10 #include "platform/globals.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 static bool GetBooleanValue(Dart_Handle bool_obj); 61 static bool GetBooleanValue(Dart_Handle bool_obj);
62 static void SetIntegerInstanceField(Dart_Handle handle, 62 static void SetIntegerInstanceField(Dart_Handle handle,
63 const char* name, 63 const char* name,
64 intptr_t val); 64 intptr_t val);
65 static intptr_t GetIntegerInstanceField(Dart_Handle handle, 65 static intptr_t GetIntegerInstanceField(Dart_Handle handle,
66 const char* name); 66 const char* name);
67 static void SetStringInstanceField(Dart_Handle handle, 67 static void SetStringInstanceField(Dart_Handle handle,
68 const char* name, 68 const char* name,
69 const char* val); 69 const char* val);
70 static bool IsDartSchemeURL(const char* url_name); 70 static bool IsDartSchemeURL(const char* url_name);
71 static bool IsDartIOLibURL(const char* url_name);
71 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, 72 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping,
72 Dart_Handle library, 73 Dart_Handle library,
73 const char* url_str); 74 const char* url_str);
74 static Dart_Handle ReadStringFromFile(const char* filename); 75 static Dart_Handle ReadStringFromFile(const char* filename);
75 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, 76 static Dart_Handle LoadSource(CommandLineOptions* url_mapping,
76 Dart_Handle library, 77 Dart_Handle library,
77 Dart_Handle url, 78 Dart_Handle url,
78 Dart_LibraryTag tag, 79 Dart_LibraryTag tag,
79 const char* filename); 80 const char* filename);
80 81
81 static const char* kDartScheme; 82 static const char* kDartScheme;
82 static const char* kBuiltinLibURL; 83 static const char* kBuiltinLibURL;
83 static const char* kCoreLibURL; 84 static const char* kCoreLibURL;
84 static const char* kCoreImplLibURL; 85 static const char* kCoreImplLibURL;
85 static const char* kCoreNativeWrappersLibURL; 86 static const char* kIOLibURL;
86 87
87 static const char* kIdFieldName; 88 static const char* kIdFieldName;
88 89
89 private: 90 private:
90 static const char* GetCanonicalPath(const char* reference_dir, 91 static const char* GetCanonicalPath(const char* reference_dir,
91 const char* filename); 92 const char* filename);
92 93
93 DISALLOW_ALLOCATION(); 94 DISALLOW_ALLOCATION();
94 DISALLOW_IMPLICIT_CONSTRUCTORS(DartUtils); 95 DISALLOW_IMPLICIT_CONSTRUCTORS(DartUtils);
95 }; 96 };
96 97
97 #endif // BIN_DARTUTILS_H_ 98 #endif // BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « runtime/bin/builtin_sources.gypi ('k') | runtime/bin/dartutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698