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

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

Issue 11490026: Move generate_perf_events_symbols flag to VM (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changing email to @google.com instead of @chromium.org Created 8 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
« no previous file with comments | « runtime/vm/code_observers.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 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 16 matching lines...) Expand all
27 Dart_FileWriteCallback file_write, 27 Dart_FileWriteCallback file_write,
28 Dart_FileCloseCallback file_close); 28 Dart_FileCloseCallback file_close);
29 29
30 static Isolate* CreateIsolate(const char* name_prefix); 30 static Isolate* CreateIsolate(const char* name_prefix);
31 static RawError* InitializeIsolate(const uint8_t* snapshot, void* data); 31 static RawError* InitializeIsolate(const uint8_t* snapshot, void* data);
32 static void ShutdownIsolate(); 32 static void ShutdownIsolate();
33 33
34 static Isolate* vm_isolate() { return vm_isolate_; } 34 static Isolate* vm_isolate() { return vm_isolate_; }
35 static ThreadPool* thread_pool() { return thread_pool_; } 35 static ThreadPool* thread_pool() { return thread_pool_; }
36 36
37 static void set_perf_events_file(void* file) {
38 perf_events_file_ = file;
39 }
40 static void* perf_events_file() {
41 return perf_events_file_;
42 }
43
44 static void set_pprof_symbol_generator(DebugInfo* value) { 37 static void set_pprof_symbol_generator(DebugInfo* value) {
45 pprof_symbol_generator_ = value; 38 pprof_symbol_generator_ = value;
46 } 39 }
47 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; } 40 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; }
48 41
49 private: 42 private:
50 static Isolate* vm_isolate_; 43 static Isolate* vm_isolate_;
51 static ThreadPool* thread_pool_; 44 static ThreadPool* thread_pool_;
52 static void* perf_events_file_;
53 static DebugInfo* pprof_symbol_generator_; 45 static DebugInfo* pprof_symbol_generator_;
54 }; 46 };
55 47
56 } // namespace dart 48 } // namespace dart
57 49
58 #endif // VM_DART_H_ 50 #endif // VM_DART_H_
OLDNEW
« no previous file with comments | « runtime/vm/code_observers.cc ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698