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

Side by Side Diff: vm/isolate.h

Issue 9965042: - Add a class index to the classes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_ISOLATE_H_ 5 #ifndef VM_ISOLATE_H_
6 #define VM_ISOLATE_H_ 6 #define VM_ISOLATE_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/class_table.h"
10 #include "platform/thread.h" 11 #include "platform/thread.h"
11 #include "vm/gc_callbacks.h" 12 #include "vm/gc_callbacks.h"
12 #include "vm/store_buffer.h" 13 #include "vm/store_buffer.h"
13 #include "vm/timer.h" 14 #include "vm/timer.h"
14 15
15 namespace dart { 16 namespace dart {
16 17
17 // Forward declarations. 18 // Forward declarations.
18 class ApiState; 19 class ApiState;
19 class CodeIndexTable; 20 class CodeIndexTable;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void VisitObjectPointers(ObjectPointerVisitor* visitor, 52 void VisitObjectPointers(ObjectPointerVisitor* visitor,
52 bool visit_prologue_weak_persistent_handles, 53 bool visit_prologue_weak_persistent_handles,
53 bool validate_frames); 54 bool validate_frames);
54 55
55 // Visits weak object pointers. 56 // Visits weak object pointers.
56 void VisitWeakPersistentHandles(HandleVisitor* visit, 57 void VisitWeakPersistentHandles(HandleVisitor* visit,
57 bool visit_prologue_weak_persistent_handles); 58 bool visit_prologue_weak_persistent_handles);
58 59
59 StoreBufferBlock* store_buffer() { return &store_buffer_; } 60 StoreBufferBlock* store_buffer() { return &store_buffer_; }
60 61
62 ClassTable* class_table() { return &class_table_; }
63
61 Dart_MessageNotifyCallback message_notify_callback() const { 64 Dart_MessageNotifyCallback message_notify_callback() const {
62 return message_notify_callback_; 65 return message_notify_callback_;
63 } 66 }
64 void set_message_notify_callback(Dart_MessageNotifyCallback value) { 67 void set_message_notify_callback(Dart_MessageNotifyCallback value) {
65 message_notify_callback_ = value; 68 message_notify_callback_ = value;
66 } 69 }
67 70
68 const char* name() const { return name_; } 71 const char* name() const { return name_; }
69 72
70 Dart_Port main_port() { return main_port_; } 73 Dart_Port main_port() { return main_port_; }
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 void BuildName(const char* name_prefix); 254 void BuildName(const char* name_prefix);
252 void PrintInvokedFunctions(); 255 void PrintInvokedFunctions();
253 256
254 static uword GetSpecifiedStackSize(); 257 static uword GetSpecifiedStackSize();
255 258
256 static const uword kStackSizeBuffer = (128 * KB); 259 static const uword kStackSizeBuffer = (128 * KB);
257 static const uword kDefaultStackSize = (1 * MB); 260 static const uword kDefaultStackSize = (1 * MB);
258 261
259 static ThreadLocalKey isolate_key; 262 static ThreadLocalKey isolate_key;
260 StoreBufferBlock store_buffer_; 263 StoreBufferBlock store_buffer_;
264 ClassTable class_table_;
261 Dart_MessageNotifyCallback message_notify_callback_; 265 Dart_MessageNotifyCallback message_notify_callback_;
262 char* name_; 266 char* name_;
263 Dart_Port main_port_; 267 Dart_Port main_port_;
264 Heap* heap_; 268 Heap* heap_;
265 ObjectStore* object_store_; 269 ObjectStore* object_store_;
266 StackResource* top_resource_; 270 StackResource* top_resource_;
267 RawContext* top_context_; 271 RawContext* top_context_;
268 Zone* current_zone_; 272 Zone* current_zone_;
269 #if defined(DEBUG) 273 #if defined(DEBUG)
270 int32_t no_gc_scope_depth_; 274 int32_t no_gc_scope_depth_;
(...skipping 20 matching lines...) Expand all
291 295
292 static Dart_IsolateCreateCallback create_callback_; 296 static Dart_IsolateCreateCallback create_callback_;
293 static Dart_IsolateInterruptCallback interrupt_callback_; 297 static Dart_IsolateInterruptCallback interrupt_callback_;
294 298
295 DISALLOW_COPY_AND_ASSIGN(Isolate); 299 DISALLOW_COPY_AND_ASSIGN(Isolate);
296 }; 300 };
297 301
298 } // namespace dart 302 } // namespace dart
299 303
300 #endif // VM_ISOLATE_H_ 304 #endif // VM_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698