OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 <limits.h> | 8 #include <limits.h> |
9 | 9 |
10 #include "include/dart_api.h" | 10 #include "include/dart_api.h" |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 return init_callback_data_; | 211 return init_callback_data_; |
212 } | 212 } |
213 | 213 |
214 Dart_LibraryTagHandler library_tag_handler() const { | 214 Dart_LibraryTagHandler library_tag_handler() const { |
215 return library_tag_handler_; | 215 return library_tag_handler_; |
216 } | 216 } |
217 void set_library_tag_handler(Dart_LibraryTagHandler value) { | 217 void set_library_tag_handler(Dart_LibraryTagHandler value) { |
218 library_tag_handler_ = value; | 218 library_tag_handler_ = value; |
219 } | 219 } |
220 | 220 |
221 static void SetInitCallback(Dart_IsolateInitCallback callback); | 221 static void SetCreateCallback(Dart_IsolateCreateCallback cback); |
222 static Dart_IsolateInitCallback InitCallback(); | 222 static Dart_IsolateCreateCallback CreateCallback(); |
223 | 223 |
224 uword stack_limit_address() const { | 224 uword stack_limit_address() const { |
225 return reinterpret_cast<uword>(&stack_limit_); | 225 return reinterpret_cast<uword>(&stack_limit_); |
226 } | 226 } |
227 | 227 |
228 void SetStackLimit(uword value); | 228 void SetStackLimit(uword value); |
229 uword stack_limit() const { return stack_limit_; } | 229 uword stack_limit() const { return stack_limit_; } |
230 | 230 |
231 void SetStackLimitFromCurrentTOS(uword isolate_stack_top); | 231 void SetStackLimitFromCurrentTOS(uword isolate_stack_top); |
232 | 232 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 ApiState* api_state_; | 281 ApiState* api_state_; |
282 StubCode* stub_code_; | 282 StubCode* stub_code_; |
283 CodeIndexTable* code_index_table_; | 283 CodeIndexTable* code_index_table_; |
284 Debugger* debugger_; | 284 Debugger* debugger_; |
285 LongJump* long_jump_base_; | 285 LongJump* long_jump_base_; |
286 TimerList timer_list_; | 286 TimerList timer_list_; |
287 uword stack_limit_; | 287 uword stack_limit_; |
288 uword stack_limit_on_overflow_exception_; | 288 uword stack_limit_on_overflow_exception_; |
289 intptr_t ast_node_id_; | 289 intptr_t ast_node_id_; |
290 | 290 |
291 static Dart_IsolateInitCallback init_callback_; | 291 static Dart_IsolateCreateCallback create_callback_; |
292 | 292 |
293 DISALLOW_COPY_AND_ASSIGN(Isolate); | 293 DISALLOW_COPY_AND_ASSIGN(Isolate); |
294 }; | 294 }; |
295 | 295 |
296 } // namespace dart | 296 } // namespace dart |
297 | 297 |
298 #if defined(TARGET_OS_LINUX) | 298 #if defined(TARGET_OS_LINUX) |
299 #include "vm/isolate_linux.h" | 299 #include "vm/isolate_linux.h" |
300 #elif defined(TARGET_OS_MACOS) | 300 #elif defined(TARGET_OS_MACOS) |
301 #include "vm/isolate_macos.h" | 301 #include "vm/isolate_macos.h" |
302 #elif defined(TARGET_OS_WINDOWS) | 302 #elif defined(TARGET_OS_WINDOWS) |
303 #include "vm/isolate_win.h" | 303 #include "vm/isolate_win.h" |
304 #else | 304 #else |
305 #error Unknown target os. | 305 #error Unknown target os. |
306 #endif | 306 #endif |
307 | 307 |
308 #endif // VM_ISOLATE_H_ | 308 #endif // VM_ISOLATE_H_ |
OLD | NEW |