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

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

Issue 2041113003: Activate the service isolate for all precompiled tests. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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 | « no previous file | runtime/bin/loader.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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_LOADER_H_ 5 #ifndef BIN_LOADER_H_
6 #define BIN_LOADER_H_ 6 #define BIN_LOADER_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"
11 #include "platform/assert.h" 11 #include "platform/assert.h"
12 #include "platform/globals.h" 12 #include "platform/globals.h"
13 #include "bin/thread.h" 13 #include "bin/thread.h"
14 14
15 namespace dart { 15 namespace dart {
16 namespace bin { 16 namespace bin {
17 17
18 class Loader { 18 class Loader {
19 public: 19 public:
20 explicit Loader(IsolateData* isolate_data); 20 explicit Loader(IsolateData* isolate_data);
21 ~Loader(); 21 ~Loader();
22 22
23 static void InitForSnapshot(const char* snapshot_uri);
24
23 // A static tag handler that hides all usage of a loader for an isolate. 25 // A static tag handler that hides all usage of a loader for an isolate.
24 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, 26 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag,
25 Dart_Handle library, 27 Dart_Handle library,
26 Dart_Handle url); 28 Dart_Handle url);
27 29
28 Dart_Handle error() const { 30 Dart_Handle error() const {
29 return error_; 31 return error_;
30 } 32 }
31 33
32 private: 34 private:
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 122
121 // This is the global callback for the native message handlers. 123 // This is the global callback for the native message handlers.
122 static void NativeMessageHandler(Dart_Port dest_port_id, 124 static void NativeMessageHandler(Dart_Port dest_port_id,
123 Dart_CObject* message); 125 Dart_CObject* message);
124 }; 126 };
125 127
126 } // namespace bin 128 } // namespace bin
127 } // namespace dart 129 } // namespace dart
128 130
129 #endif // BIN_LOADER_H_ 131 #endif // BIN_LOADER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698