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

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

Issue 1173293007: Fix --verify_handles mode by properly checking for the static API handles. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | « runtime/vm/custom_isolate_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 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 30 matching lines...) Expand all
41 41
42 static Isolate* vm_isolate() { return vm_isolate_; } 42 static Isolate* vm_isolate() { return vm_isolate_; }
43 static ThreadPool* thread_pool() { return thread_pool_; } 43 static ThreadPool* thread_pool() { return thread_pool_; }
44 44
45 static void set_pprof_symbol_generator(DebugInfo* value) { 45 static void set_pprof_symbol_generator(DebugInfo* value) {
46 pprof_symbol_generator_ = value; 46 pprof_symbol_generator_ = value;
47 } 47 }
48 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; } 48 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; }
49 49
50 static LocalHandle* AllocateReadOnlyApiHandle(); 50 static LocalHandle* AllocateReadOnlyApiHandle();
51 static bool IsReadOnlyApiHandle(Dart_Handle handle);
51 52
52 static uword AllocateReadOnlyHandle(); 53 static uword AllocateReadOnlyHandle();
53 static bool IsReadOnlyHandle(uword address); 54 static bool IsReadOnlyHandle(uword address);
54 55
55 private: 56 private:
56 static Isolate* vm_isolate_; 57 static Isolate* vm_isolate_;
57 static ThreadPool* thread_pool_; 58 static ThreadPool* thread_pool_;
58 static DebugInfo* pprof_symbol_generator_; 59 static DebugInfo* pprof_symbol_generator_;
59 static ReadOnlyHandles* predefined_handles_; 60 static ReadOnlyHandles* predefined_handles_;
60 }; 61 };
61 62
62 } // namespace dart 63 } // namespace dart
63 64
64 #endif // VM_DART_H_ 65 #endif // VM_DART_H_
OLDNEW
« no previous file with comments | « runtime/vm/custom_isolate_test.cc ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698