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 494 matching lines...) Loading... |
505 Isolate* new_isolate_; | 505 Isolate* new_isolate_; |
506 Isolate* saved_isolate_; | 506 Isolate* saved_isolate_; |
507 uword saved_stack_limit_; | 507 uword saved_stack_limit_; |
508 | 508 |
509 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); | 509 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); |
510 }; | 510 }; |
511 | 511 |
512 | 512 |
513 class IsolateSpawnState { | 513 class IsolateSpawnState { |
514 public: | 514 public: |
515 IsolateSpawnState(const Function& func, const Function& callback_func); | 515 explicit IsolateSpawnState(const Function& func); |
516 explicit IsolateSpawnState(const char* script_url); | 516 explicit IsolateSpawnState(const char* script_url); |
517 ~IsolateSpawnState(); | 517 ~IsolateSpawnState(); |
518 | 518 |
519 Isolate* isolate() const { return isolate_; } | 519 Isolate* isolate() const { return isolate_; } |
520 void set_isolate(Isolate* value) { isolate_ = value; } | 520 void set_isolate(Isolate* value) { isolate_ = value; } |
521 char* script_url() const { return script_url_; } | 521 char* script_url() const { return script_url_; } |
522 char* library_url() const { return library_url_; } | 522 char* library_url() const { return library_url_; } |
523 char* function_name() const { return function_name_; } | 523 char* function_name() const { return function_name_; } |
524 char* exception_callback_name() const { return exception_callback_name_; } | 524 char* exception_callback_name() const { return exception_callback_name_; } |
525 | 525 |
526 RawObject* ResolveFunction(); | 526 RawObject* ResolveFunction(); |
527 void Cleanup(); | 527 void Cleanup(); |
528 | 528 |
529 private: | 529 private: |
530 Isolate* isolate_; | 530 Isolate* isolate_; |
531 char* script_url_; | 531 char* script_url_; |
532 char* library_url_; | 532 char* library_url_; |
533 char* function_name_; | 533 char* function_name_; |
534 char* exception_callback_name_; | 534 char* exception_callback_name_; |
535 }; | 535 }; |
536 | 536 |
537 } // namespace dart | 537 } // namespace dart |
538 | 538 |
539 #endif // VM_ISOLATE_H_ | 539 #endif // VM_ISOLATE_H_ |
OLD | NEW |