| 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 "vm/base_isolate.h" | 10 #include "vm/base_isolate.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 V(TypeParameter) \ | 107 V(TypeParameter) \ |
| 108 | 108 |
| 109 class Isolate : public BaseIsolate { | 109 class Isolate : public BaseIsolate { |
| 110 public: | 110 public: |
| 111 ~Isolate(); | 111 ~Isolate(); |
| 112 | 112 |
| 113 static inline Isolate* Current() { | 113 static inline Isolate* Current() { |
| 114 return reinterpret_cast<Isolate*>(Thread::GetThreadLocal(isolate_key)); | 114 return reinterpret_cast<Isolate*>(Thread::GetThreadLocal(isolate_key)); |
| 115 } | 115 } |
| 116 | 116 |
| 117 static inline uword CurrentAddress() { | |
| 118 return reinterpret_cast<uword>(Current()); | |
| 119 } | |
| 120 | |
| 121 static void SetCurrent(Isolate* isolate); | 117 static void SetCurrent(Isolate* isolate); |
| 122 | 118 |
| 123 static void InitOnce(); | 119 static void InitOnce(); |
| 124 static Isolate* Init(const char* name_prefix); | 120 static Isolate* Init(const char* name_prefix); |
| 125 void Shutdown(); | 121 void Shutdown(); |
| 126 | 122 |
| 127 Isolate* ShallowCopy(); | 123 Isolate* ShallowCopy(); |
| 128 | 124 |
| 129 // Register a newly introduced class. | 125 // Register a newly introduced class. |
| 130 void RegisterClass(const Class& cls); | 126 void RegisterClass(const Class& cls); |
| (...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 char* exception_callback_name_; | 855 char* exception_callback_name_; |
| 860 uint8_t* serialized_args_; | 856 uint8_t* serialized_args_; |
| 861 intptr_t serialized_args_len_; | 857 intptr_t serialized_args_len_; |
| 862 uint8_t* serialized_message_; | 858 uint8_t* serialized_message_; |
| 863 intptr_t serialized_message_len_; | 859 intptr_t serialized_message_len_; |
| 864 }; | 860 }; |
| 865 | 861 |
| 866 } // namespace dart | 862 } // namespace dart |
| 867 | 863 |
| 868 #endif // VM_ISOLATE_H_ | 864 #endif // VM_ISOLATE_H_ |
| OLD | NEW |