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

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

Issue 2475523002: Reload native extensions when starting from a snapshot. (Closed)
Patch Set: comment Created 4 years, 1 month 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 | « no previous file | 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 RUNTIME_BIN_DARTUTILS_H_ 5 #ifndef RUNTIME_BIN_DARTUTILS_H_
6 #define RUNTIME_BIN_DARTUTILS_H_ 6 #define RUNTIME_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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 int64_t val); 119 int64_t val);
120 static Dart_Handle SetStringField(Dart_Handle handle, 120 static Dart_Handle SetStringField(Dart_Handle handle,
121 const char* name, 121 const char* name,
122 const char* val); 122 const char* val);
123 static bool IsDartSchemeURL(const char* url_name); 123 static bool IsDartSchemeURL(const char* url_name);
124 static bool IsDartExtensionSchemeURL(const char* url_name); 124 static bool IsDartExtensionSchemeURL(const char* url_name);
125 static bool IsDartIOLibURL(const char* url_name); 125 static bool IsDartIOLibURL(const char* url_name);
126 static bool IsDartBuiltinLibURL(const char* url_name); 126 static bool IsDartBuiltinLibURL(const char* url_name);
127 static bool IsHttpSchemeURL(const char* url_name); 127 static bool IsHttpSchemeURL(const char* url_name);
128 static const char* RemoveScheme(const char* url); 128 static const char* RemoveScheme(const char* url);
129 static char* DirName(const char* url);
129 static void* MapExecutable(const char* name, intptr_t* file_len); 130 static void* MapExecutable(const char* name, intptr_t* file_len);
130 static void* OpenFile(const char* name, bool write); 131 static void* OpenFile(const char* name, bool write);
131 static void ReadFile(const uint8_t** data, intptr_t* file_len, void* stream); 132 static void ReadFile(const uint8_t** data, intptr_t* file_len, void* stream);
132 static void WriteFile(const void* buffer, intptr_t num_bytes, void* stream); 133 static void WriteFile(const void* buffer, intptr_t num_bytes, void* stream);
133 static void CloseFile(void* stream); 134 static void CloseFile(void* stream);
134 static bool EntropySource(uint8_t* buffer, intptr_t length); 135 static bool EntropySource(uint8_t* buffer, intptr_t length);
135 static Dart_Handle ReadStringFromFile(const char* filename); 136 static Dart_Handle ReadStringFromFile(const char* filename);
136 static Dart_Handle MakeUint8Array(const uint8_t* buffer, intptr_t length); 137 static Dart_Handle MakeUint8Array(const uint8_t* buffer, intptr_t length);
137 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, 138 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag,
138 Dart_Handle library, 139 Dart_Handle library,
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 bool is_typed_data_; 673 bool is_typed_data_;
673 674
674 DISALLOW_ALLOCATION(); 675 DISALLOW_ALLOCATION();
675 DISALLOW_COPY_AND_ASSIGN(ScopedMemBuffer); 676 DISALLOW_COPY_AND_ASSIGN(ScopedMemBuffer);
676 }; 677 };
677 678
678 } // namespace bin 679 } // namespace bin
679 } // namespace dart 680 } // namespace dart
680 681
681 #endif // RUNTIME_BIN_DARTUTILS_H_ 682 #endif // RUNTIME_BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/dartutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698