Chromium Code Reviews| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 | 139 |
| 140 StoreBuffer* store_buffer() { return &store_buffer_; } | 140 StoreBuffer* store_buffer() { return &store_buffer_; } |
| 141 static intptr_t store_buffer_offset() { | 141 static intptr_t store_buffer_offset() { |
| 142 return OFFSET_OF(Isolate, store_buffer_); | 142 return OFFSET_OF(Isolate, store_buffer_); |
| 143 } | 143 } |
| 144 | 144 |
| 145 ClassTable* class_table() { return &class_table_; } | 145 ClassTable* class_table() { return &class_table_; } |
| 146 static intptr_t class_table_offset() { | 146 static intptr_t class_table_offset() { |
| 147 return OFFSET_OF(Isolate, class_table_); | 147 return OFFSET_OF(Isolate, class_table_); |
| 148 } | 148 } |
| 149 uword ClassTableAddress() { | |
| 150 return reinterpret_cast<uword>(this) | |
| 151 + Isolate::class_table_offset() | |
|
Vyacheslav Egorov (Google)
2014/09/26 13:09:43
just add TableAddress() getter to ClassTable that
Florian Schneider
2014/09/26 14:05:02
Done.
| |
| 152 + ClassTable::table_offset(); | |
| 153 } | |
| 149 | 154 |
| 150 CHA* cha() const { return cha_; } | 155 CHA* cha() const { return cha_; } |
| 151 void set_cha(CHA* value) { cha_ = value; } | 156 void set_cha(CHA* value) { cha_ = value; } |
| 152 | 157 |
| 153 MegamorphicCacheTable* megamorphic_cache_table() { | 158 MegamorphicCacheTable* megamorphic_cache_table() { |
| 154 return &megamorphic_cache_table_; | 159 return &megamorphic_cache_table_; |
| 155 } | 160 } |
| 156 | 161 |
| 157 Dart_MessageNotifyCallback message_notify_callback() const { | 162 Dart_MessageNotifyCallback message_notify_callback() const { |
| 158 return message_notify_callback_; | 163 return message_notify_callback_; |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 855 char* exception_callback_name_; | 860 char* exception_callback_name_; |
| 856 uint8_t* serialized_args_; | 861 uint8_t* serialized_args_; |
| 857 intptr_t serialized_args_len_; | 862 intptr_t serialized_args_len_; |
| 858 uint8_t* serialized_message_; | 863 uint8_t* serialized_message_; |
| 859 intptr_t serialized_message_len_; | 864 intptr_t serialized_message_len_; |
| 860 }; | 865 }; |
| 861 | 866 |
| 862 } // namespace dart | 867 } // namespace dart |
| 863 | 868 |
| 864 #endif // VM_ISOLATE_H_ | 869 #endif // VM_ISOLATE_H_ |
| OLD | NEW |