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

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

Issue 10332257: Revert my last change. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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.dart ('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 "bin/utils.h" 9 #include "bin/utils.h"
10 #include "include/dart_api.h" 10 #include "include/dart_api.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 static bool IsDartUriLibURL(const char* url_name); 78 static bool IsDartUriLibURL(const char* url_name);
79 static bool IsDartUtfLibURL(const char* url_name); 79 static bool IsDartUtfLibURL(const char* url_name);
80 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, 80 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping,
81 Dart_Handle library, 81 Dart_Handle library,
82 const char* url_str); 82 const char* url_str);
83 static Dart_Handle ReadStringFromFile(const char* filename); 83 static Dart_Handle ReadStringFromFile(const char* filename);
84 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, 84 static Dart_Handle LoadSource(CommandLineOptions* url_mapping,
85 Dart_Handle library, 85 Dart_Handle library,
86 Dart_Handle url, 86 Dart_Handle url,
87 Dart_LibraryTag tag, 87 Dart_LibraryTag tag,
88 const char* filename); 88 const char* filename,
89 Dart_Handle import_map);
89 static bool PostNull(Dart_Port port_id); 90 static bool PostNull(Dart_Port port_id);
90 static bool PostInt32(Dart_Port port_id, int32_t value); 91 static bool PostInt32(Dart_Port port_id, int32_t value);
91 92
92 // Create a new Dart OSError object with the current OS error. 93 // Create a new Dart OSError object with the current OS error.
93 static Dart_Handle NewDartOSError(); 94 static Dart_Handle NewDartOSError();
94 // Create a new Dart OSError object with the provided OS error. 95 // Create a new Dart OSError object with the provided OS error.
95 static Dart_Handle NewDartOSError(OSError* os_error); 96 static Dart_Handle NewDartOSError(OSError* os_error);
96 97
97 static const char* kDartScheme; 98 static const char* kDartScheme;
98 static const char* kDartExtensionScheme; 99 static const char* kDartExtensionScheme;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 290
290 class CObjectUint8Array : public CObject { 291 class CObjectUint8Array : public CObject {
291 public: 292 public:
292 DECLARE_COBJECT_CONSTRUCTORS(Uint8Array) 293 DECLARE_COBJECT_CONSTRUCTORS(Uint8Array)
293 294
294 int Length() const { return cobject_->value.as_byte_array.length; } 295 int Length() const { return cobject_->value.as_byte_array.length; }
295 uint8_t* Buffer() const { return cobject_->value.as_byte_array.values; } 296 uint8_t* Buffer() const { return cobject_->value.as_byte_array.values; }
296 }; 297 };
297 298
298 #endif // BIN_DARTUTILS_H_ 299 #endif // BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « runtime/bin/builtin.dart ('k') | runtime/bin/dartutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698