| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "platform/thread.h" | 10 #include "platform/thread.h" |
| 11 #include "vm/base_isolate.h" | 11 #include "vm/base_isolate.h" |
| 12 #include "vm/class_table.h" | 12 #include "vm/class_table.h" |
| 13 #include "vm/gc_callbacks.h" | 13 #include "vm/gc_callbacks.h" |
| 14 #include "vm/handles.h" | 14 #include "vm/handles.h" |
| 15 #include "vm/megamorphic_cache_table.h" | 15 #include "vm/megamorphic_cache_table.h" |
| 16 #include "vm/random.h" | 16 #include "vm/random.h" |
| 17 #include "vm/store_buffer.h" | 17 #include "vm/store_buffer.h" |
| 18 #include "vm/timer.h" | 18 #include "vm/timer.h" |
| 19 | 19 |
| 20 namespace dart { | 20 namespace dart { |
| 21 | 21 |
| 22 // Forward declarations. | 22 // Forward declarations. |
| 23 class AbstractType; | 23 class AbstractType; |
| 24 class ApiState; | 24 class ApiState; |
| 25 class Array; | 25 class Array; |
| 26 class Class; | 26 class Class; |
| 27 class CodeIndexTable; | 27 class CodeIndexTable; |
| 28 class Debugger; | 28 class Debugger; |
| 29 class DeoptContext; | 29 class DeoptContext; |
| 30 class Error; |
| 30 class Field; | 31 class Field; |
| 31 class Function; | 32 class Function; |
| 32 class HandleScope; | 33 class HandleScope; |
| 33 class HandleVisitor; | 34 class HandleVisitor; |
| 34 class Heap; | 35 class Heap; |
| 35 class ICData; | 36 class ICData; |
| 36 class Instance; | 37 class Instance; |
| 37 class IsolateProfilerData; | 38 class IsolateProfilerData; |
| 38 class IsolateSpawnState; | 39 class IsolateSpawnState; |
| 39 class InterruptableThreadState; | 40 class InterruptableThreadState; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 68 IsolateVisitor() {} | 69 IsolateVisitor() {} |
| 69 virtual ~IsolateVisitor() {} | 70 virtual ~IsolateVisitor() {} |
| 70 | 71 |
| 71 virtual void VisitIsolate(Isolate* isolate) = 0; | 72 virtual void VisitIsolate(Isolate* isolate) = 0; |
| 72 | 73 |
| 73 private: | 74 private: |
| 74 DISALLOW_COPY_AND_ASSIGN(IsolateVisitor); | 75 DISALLOW_COPY_AND_ASSIGN(IsolateVisitor); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 #define REUSABLE_HANDLE_LIST(V) \ | 78 #define REUSABLE_HANDLE_LIST(V) \ |
| 79 V(Array) \ |
| 80 V(Class) \ |
| 81 V(Error) \ |
| 82 V(Field) \ |
| 83 V(Function) \ |
| 84 V(Instance) \ |
| 78 V(Object) \ | 85 V(Object) \ |
| 79 V(Array) \ | |
| 80 V(String) \ | 86 V(String) \ |
| 81 V(Instance) \ | 87 V(TypeArguments) \ |
| 82 V(Function) \ | |
| 83 V(Field) \ | |
| 84 V(Class) \ | |
| 85 V(TypeParameter) \ | 88 V(TypeParameter) \ |
| 86 V(TypeArguments) \ | |
| 87 | 89 |
| 88 class Isolate : public BaseIsolate { | 90 class Isolate : public BaseIsolate { |
| 89 public: | 91 public: |
| 90 ~Isolate(); | 92 ~Isolate(); |
| 91 | 93 |
| 92 static inline Isolate* Current() { | 94 static inline Isolate* Current() { |
| 93 return reinterpret_cast<Isolate*>(Thread::GetThreadLocal(isolate_key)); | 95 return reinterpret_cast<Isolate*>(Thread::GetThreadLocal(isolate_key)); |
| 94 } | 96 } |
| 95 | 97 |
| 96 static void SetCurrent(Isolate* isolate); | 98 static void SetCurrent(Isolate* isolate); |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 char* script_url_; | 651 char* script_url_; |
| 650 char* library_url_; | 652 char* library_url_; |
| 651 char* class_name_; | 653 char* class_name_; |
| 652 char* function_name_; | 654 char* function_name_; |
| 653 char* exception_callback_name_; | 655 char* exception_callback_name_; |
| 654 }; | 656 }; |
| 655 | 657 |
| 656 } // namespace dart | 658 } // namespace dart |
| 657 | 659 |
| 658 #endif // VM_ISOLATE_H_ | 660 #endif // VM_ISOLATE_H_ |
| OLD | NEW |