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

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

Issue 2011543002: Canonicalize uris in C++ instead of Dart for the standalone embedder. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fixz release build Created 4 years, 6 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
« 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/isolate_data.h" 8 #include "bin/isolate_data.h"
9 #include "include/dart_api.h" 9 #include "include/dart_api.h"
10 #include "include/dart_native_api.h" 10 #include "include/dart_native_api.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 return isolate_data->builtin_lib(); 192 return isolate_data->builtin_lib();
193 } 193 }
194 194
195 static bool SetOriginalWorkingDirectory(); 195 static bool SetOriginalWorkingDirectory();
196 196
197 static const char* MapLibraryUrl(CommandLineOptions* url_mapping, 197 static const char* MapLibraryUrl(CommandLineOptions* url_mapping,
198 const char* url_string); 198 const char* url_string);
199 199
200 static Dart_Handle ResolveUriInWorkingDirectory(Dart_Handle script_uri); 200 static Dart_Handle ResolveUriInWorkingDirectory(Dart_Handle script_uri);
201 static Dart_Handle FilePathFromUri(Dart_Handle script_uri); 201 static Dart_Handle FilePathFromUri(Dart_Handle script_uri);
202 static Dart_Handle ResolveUri(Dart_Handle library_url, Dart_Handle url);
203 202
204 // Sniffs the specified text_buffer to see if it contains the magic number 203 // Sniffs the specified text_buffer to see if it contains the magic number
205 // representing a script snapshot. If the text_buffer is a script snapshot 204 // representing a script snapshot. If the text_buffer is a script snapshot
206 // the return value is an updated pointer to the text_buffer pointing past 205 // the return value is an updated pointer to the text_buffer pointing past
207 // the magic number value. The 'buffer_len' parameter is also appropriately 206 // the magic number value. The 'buffer_len' parameter is also appropriately
208 // adjusted. 207 // adjusted.
209 static const uint8_t* SniffForMagicNumber(const uint8_t* text_buffer, 208 static const uint8_t* SniffForMagicNumber(const uint8_t* text_buffer,
210 intptr_t* buffer_len, 209 intptr_t* buffer_len,
211 bool* is_snapshot); 210 bool* is_snapshot);
212 211
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 bool is_typed_data_; 662 bool is_typed_data_;
664 663
665 DISALLOW_ALLOCATION(); 664 DISALLOW_ALLOCATION();
666 DISALLOW_COPY_AND_ASSIGN(ScopedMemBuffer); 665 DISALLOW_COPY_AND_ASSIGN(ScopedMemBuffer);
667 }; 666 };
668 667
669 } // namespace bin 668 } // namespace bin
670 } // namespace dart 669 } // namespace dart
671 670
672 #endif // BIN_DARTUTILS_H_ 671 #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