| 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" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 #define REUSABLE_HANDLE_LIST(V) \ | 77 #define REUSABLE_HANDLE_LIST(V) \ |
| 78 V(Array) \ | 78 V(Array) \ |
| 79 V(Class) \ | 79 V(Class) \ |
| 80 V(Error) \ | 80 V(Error) \ |
| 81 V(Field) \ | 81 V(Field) \ |
| 82 V(Function) \ | 82 V(Function) \ |
| 83 V(Instance) \ | 83 V(Instance) \ |
| 84 V(Object) \ | 84 V(Object) \ |
| 85 V(String) \ | 85 V(String) \ |
| 86 V(TypeArguments) \ | 86 V(TypeArguments) \ |
| 87 V(AbstractType) \ |
| 87 V(TypeParameter) \ | 88 V(TypeParameter) \ |
| 88 | 89 |
| 89 class Isolate : public BaseIsolate { | 90 class Isolate : public BaseIsolate { |
| 90 public: | 91 public: |
| 91 ~Isolate(); | 92 ~Isolate(); |
| 92 | 93 |
| 93 static inline Isolate* Current() { | 94 static inline Isolate* Current() { |
| 94 return reinterpret_cast<Isolate*>(Thread::GetThreadLocal(isolate_key)); | 95 return reinterpret_cast<Isolate*>(Thread::GetThreadLocal(isolate_key)); |
| 95 } | 96 } |
| 96 | 97 |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 char* script_url_; | 656 char* script_url_; |
| 656 char* library_url_; | 657 char* library_url_; |
| 657 char* class_name_; | 658 char* class_name_; |
| 658 char* function_name_; | 659 char* function_name_; |
| 659 char* exception_callback_name_; | 660 char* exception_callback_name_; |
| 660 }; | 661 }; |
| 661 | 662 |
| 662 } // namespace dart | 663 } // namespace dart |
| 663 | 664 |
| 664 #endif // VM_ISOLATE_H_ | 665 #endif // VM_ISOLATE_H_ |
| OLD | NEW |