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

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

Issue 8713012: Introduce Dart_SetVMFlags API function. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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
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
11 namespace dart { 11 namespace dart {
12 12
13 // Forward declarations. 13 // Forward declarations.
14 class DebugInfo; 14 class DebugInfo;
15 class Isolate; 15 class Isolate;
16 16
17 class Dart : public AllStatic { 17 class Dart : public AllStatic {
18 public: 18 public:
19 static bool InitOnce(int argc, const char** argv, 19 static bool InitOnce(Dart_IsolateInitCallback callback);
20 Dart_IsolateInitCallback callback);
21 20
22 static Isolate* CreateIsolate(); 21 static Isolate* CreateIsolate();
23 static void InitializeIsolate(const Dart_Snapshot* snapshot, void* data); 22 static void InitializeIsolate(const Dart_Snapshot* snapshot, void* data);
24 static void ShutdownIsolate(); 23 static void ShutdownIsolate();
25 24
26 static Isolate* vm_isolate() { return vm_isolate_; } 25 static Isolate* vm_isolate() { return vm_isolate_; }
27 26
28 static void set_pprof_symbol_generator(DebugInfo* value) { 27 static void set_pprof_symbol_generator(DebugInfo* value) {
29 pprof_symbol_generator_ = value; 28 pprof_symbol_generator_ = value;
30 } 29 }
31 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; } 30 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; }
32 31
33 private: 32 private:
34 static Isolate* vm_isolate_; 33 static Isolate* vm_isolate_;
35 static DebugInfo* pprof_symbol_generator_; 34 static DebugInfo* pprof_symbol_generator_;
36 }; 35 };
37 36
38 } // namespace dart 37 } // namespace dart
39 38
40 #endif // VM_DART_H_ 39 #endif // VM_DART_H_
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/dart.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698