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

Side by Side Diff: runtime/vm/dart.h

Issue 2995723002: - Convert all isolate flags to a bit field. (Closed)
Patch Set: Address build error. 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
« no previous file with comments | « runtime/vm/benchmark_test.cc ('k') | runtime/vm/dart.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_VM_DART_H_ 5 #ifndef RUNTIME_VM_DART_H_
6 #define RUNTIME_VM_DART_H_ 6 #define RUNTIME_VM_DART_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/snapshot.h" 10 #include "vm/snapshot.h"
(...skipping 17 matching lines...) Expand all
28 const uint8_t* vm_snapshot_instructions, 28 const uint8_t* vm_snapshot_instructions,
29 Dart_IsolateCreateCallback create, 29 Dart_IsolateCreateCallback create,
30 Dart_IsolateShutdownCallback shutdown, 30 Dart_IsolateShutdownCallback shutdown,
31 Dart_IsolateCleanupCallback cleanup, 31 Dart_IsolateCleanupCallback cleanup,
32 Dart_ThreadExitCallback thread_exit, 32 Dart_ThreadExitCallback thread_exit,
33 Dart_FileOpenCallback file_open, 33 Dart_FileOpenCallback file_open,
34 Dart_FileReadCallback file_read, 34 Dart_FileReadCallback file_read,
35 Dart_FileWriteCallback file_write, 35 Dart_FileWriteCallback file_write,
36 Dart_FileCloseCallback file_close, 36 Dart_FileCloseCallback file_close,
37 Dart_EntropySource entropy_source, 37 Dart_EntropySource entropy_source,
38 Dart_GetVMServiceAssetsArchive get_service_assets); 38 Dart_GetVMServiceAssetsArchive get_service_assets,
39 bool start_kernel_isolate);
39 static const char* Cleanup(); 40 static const char* Cleanup();
40 41
41 static Isolate* CreateIsolate(const char* name_prefix, 42 static Isolate* CreateIsolate(const char* name_prefix,
42 const Dart_IsolateFlags& api_flags); 43 const Dart_IsolateFlags& api_flags);
43 44
44 // Initialize an isolate, either from a snapshot, from a Kernel binary, or 45 // Initialize an isolate, either from a snapshot, from a Kernel binary, or
45 // from SDK library sources. If the snapshot_buffer is non-NULL, 46 // from SDK library sources. If the snapshot_buffer is non-NULL,
46 // initialize from a snapshot or a Kernel binary depending on the value of 47 // initialize from a snapshot or a Kernel binary depending on the value of
47 // from_kernel. Otherwise, initialize from sources. 48 // from_kernel. Otherwise, initialize from sources.
48 static RawError* InitializeIsolate(const uint8_t* snapshot_data, 49 static RawError* InitializeIsolate(const uint8_t* snapshot_data,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 static Dart_FileOpenCallback file_open_callback_; 127 static Dart_FileOpenCallback file_open_callback_;
127 static Dart_FileReadCallback file_read_callback_; 128 static Dart_FileReadCallback file_read_callback_;
128 static Dart_FileWriteCallback file_write_callback_; 129 static Dart_FileWriteCallback file_write_callback_;
129 static Dart_FileCloseCallback file_close_callback_; 130 static Dart_FileCloseCallback file_close_callback_;
130 static Dart_EntropySource entropy_source_callback_; 131 static Dart_EntropySource entropy_source_callback_;
131 }; 132 };
132 133
133 } // namespace dart 134 } // namespace dart
134 135
135 #endif // RUNTIME_VM_DART_H_ 136 #endif // RUNTIME_VM_DART_H_
OLDNEW
« no previous file with comments | « runtime/vm/benchmark_test.cc ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698