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

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

Issue 125103004: Move service into VM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « runtime/tools/create_resources.py ('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 VM_DART_H_ 5 #ifndef VM_DART_H_
6 #define VM_DART_H_ 6 #define 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 10
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 static const char* InitOnce( 22 static const char* InitOnce(
23 Dart_IsolateCreateCallback create, 23 Dart_IsolateCreateCallback create,
24 Dart_IsolateInterruptCallback interrupt, 24 Dart_IsolateInterruptCallback interrupt,
25 Dart_IsolateUnhandledExceptionCallback unhandled, 25 Dart_IsolateUnhandledExceptionCallback unhandled,
26 Dart_IsolateShutdownCallback shutdown, 26 Dart_IsolateShutdownCallback shutdown,
27 Dart_FileOpenCallback file_open, 27 Dart_FileOpenCallback file_open,
28 Dart_FileReadCallback file_read, 28 Dart_FileReadCallback file_read,
29 Dart_FileWriteCallback file_write, 29 Dart_FileWriteCallback file_write,
30 Dart_FileCloseCallback file_close, 30 Dart_FileCloseCallback file_close,
31 Dart_EntropySource entropy_source); 31 Dart_EntropySource entropy_source,
32 Dart_ServiceIsolateCreateCalback service_create);
32 static const char* Cleanup(); 33 static const char* Cleanup();
33 34
34 static Isolate* CreateIsolate(const char* name_prefix); 35 static Isolate* CreateIsolate(const char* name_prefix);
35 static RawError* InitializeIsolate(const uint8_t* snapshot, void* data); 36 static RawError* InitializeIsolate(const uint8_t* snapshot, void* data);
36 static void RunShutdownCallback(); 37 static void RunShutdownCallback();
37 static void ShutdownIsolate(); 38 static void ShutdownIsolate();
38 39
39 static Isolate* vm_isolate() { return vm_isolate_; } 40 static Isolate* vm_isolate() { return vm_isolate_; }
40 static ThreadPool* thread_pool() { return thread_pool_; } 41 static ThreadPool* thread_pool() { return thread_pool_; }
41 42
42 static void set_pprof_symbol_generator(DebugInfo* value) { 43 static void set_pprof_symbol_generator(DebugInfo* value) {
43 pprof_symbol_generator_ = value; 44 pprof_symbol_generator_ = value;
44 } 45 }
45 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; } 46 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; }
46 47
47 static uword AllocateReadOnlyHandle(); 48 static uword AllocateReadOnlyHandle();
48 static bool IsReadOnlyHandle(uword address); 49 static bool IsReadOnlyHandle(uword address);
49 50
50 private: 51 private:
51 static Isolate* vm_isolate_; 52 static Isolate* vm_isolate_;
52 static ThreadPool* thread_pool_; 53 static ThreadPool* thread_pool_;
53 static DebugInfo* pprof_symbol_generator_; 54 static DebugInfo* pprof_symbol_generator_;
54 static ReadOnlyHandles* predefined_handles_; 55 static ReadOnlyHandles* predefined_handles_;
55 }; 56 };
56 57
57 } // namespace dart 58 } // namespace dart
58 59
59 #endif // VM_DART_H_ 60 #endif // VM_DART_H_
OLDNEW
« no previous file with comments | « runtime/tools/create_resources.py ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698