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

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

Issue 2991763002: Remove old dead tag handler. (Closed)
Patch Set: Created 3 years, 4 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
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 static const char* RemoveScheme(const char* url); 118 static const char* RemoveScheme(const char* url);
119 static char* DirName(const char* url); 119 static char* DirName(const char* url);
120 static void* MapExecutable(const char* name, intptr_t* file_len); 120 static void* MapExecutable(const char* name, intptr_t* file_len);
121 static void* OpenFile(const char* name, bool write); 121 static void* OpenFile(const char* name, bool write);
122 static void ReadFile(const uint8_t** data, intptr_t* file_len, void* stream); 122 static void ReadFile(const uint8_t** data, intptr_t* file_len, void* stream);
123 static void WriteFile(const void* buffer, intptr_t num_bytes, void* stream); 123 static void WriteFile(const void* buffer, intptr_t num_bytes, void* stream);
124 static void CloseFile(void* stream); 124 static void CloseFile(void* stream);
125 static bool EntropySource(uint8_t* buffer, intptr_t length); 125 static bool EntropySource(uint8_t* buffer, intptr_t length);
126 static Dart_Handle ReadStringFromFile(const char* filename); 126 static Dart_Handle ReadStringFromFile(const char* filename);
127 static Dart_Handle MakeUint8Array(const uint8_t* buffer, intptr_t length); 127 static Dart_Handle MakeUint8Array(const uint8_t* buffer, intptr_t length);
128 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag,
129 Dart_Handle library,
130 Dart_Handle url);
131 static Dart_Handle LoadScript(const char* script_uri);
132 static Dart_Handle PrepareForScriptLoading(bool is_service_isolate, 128 static Dart_Handle PrepareForScriptLoading(bool is_service_isolate,
133 bool trace_loading); 129 bool trace_loading);
134 static Dart_Handle SetupServiceLoadPort(); 130 static Dart_Handle SetupServiceLoadPort();
135 static Dart_Handle SetupPackageRoot(const char* package_root, 131 static Dart_Handle SetupPackageRoot(const char* package_root,
136 const char* packages_file); 132 const char* packages_file);
137 static Dart_Handle SetupIOLibrary(const char* script_uri); 133 static Dart_Handle SetupIOLibrary(const char* script_uri);
138 134
139 static bool PostNull(Dart_Port port_id); 135 static bool PostNull(Dart_Port port_id);
140 static bool PostInt32(Dart_Port port_id, int32_t value); 136 static bool PostInt32(Dart_Port port_id, int32_t value);
141 static bool PostInt64(Dart_Port port_id, int64_t value); 137 static bool PostInt64(Dart_Port port_id, int64_t value);
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 bool is_typed_data_; 641 bool is_typed_data_;
646 642
647 DISALLOW_ALLOCATION(); 643 DISALLOW_ALLOCATION();
648 DISALLOW_COPY_AND_ASSIGN(ScopedMemBuffer); 644 DISALLOW_COPY_AND_ASSIGN(ScopedMemBuffer);
649 }; 645 };
650 646
651 } // namespace bin 647 } // namespace bin
652 } // namespace dart 648 } // namespace dart
653 649
654 #endif // RUNTIME_BIN_DARTUTILS_H_ 650 #endif // RUNTIME_BIN_DARTUTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698