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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 class IsolateSpawnState { | 554 class IsolateSpawnState { |
555 public: | 555 public: |
556 explicit IsolateSpawnState(const Function& func); | 556 explicit IsolateSpawnState(const Function& func); |
557 explicit IsolateSpawnState(const char* script_url); | 557 explicit IsolateSpawnState(const char* script_url); |
558 ~IsolateSpawnState(); | 558 ~IsolateSpawnState(); |
559 | 559 |
560 Isolate* isolate() const { return isolate_; } | 560 Isolate* isolate() const { return isolate_; } |
561 void set_isolate(Isolate* value) { isolate_ = value; } | 561 void set_isolate(Isolate* value) { isolate_ = value; } |
562 char* script_url() const { return script_url_; } | 562 char* script_url() const { return script_url_; } |
563 char* library_url() const { return library_url_; } | 563 char* library_url() const { return library_url_; } |
| 564 char* class_name() const { return class_name_; } |
564 char* function_name() const { return function_name_; } | 565 char* function_name() const { return function_name_; } |
565 char* exception_callback_name() const { return exception_callback_name_; } | 566 char* exception_callback_name() const { return exception_callback_name_; } |
566 bool is_spawn_uri() const { return library_url_ == NULL; } | 567 bool is_spawn_uri() const { return library_url_ == NULL; } |
567 | 568 |
568 RawObject* ResolveFunction(); | 569 RawObject* ResolveFunction(); |
569 void Cleanup(); | 570 void Cleanup(); |
570 | 571 |
571 private: | 572 private: |
572 Isolate* isolate_; | 573 Isolate* isolate_; |
573 char* script_url_; | 574 char* script_url_; |
574 char* library_url_; | 575 char* library_url_; |
| 576 char* class_name_; |
575 char* function_name_; | 577 char* function_name_; |
576 char* exception_callback_name_; | 578 char* exception_callback_name_; |
577 }; | 579 }; |
578 | 580 |
579 } // namespace dart | 581 } // namespace dart |
580 | 582 |
581 #endif // VM_ISOLATE_H_ | 583 #endif // VM_ISOLATE_H_ |
OLD | NEW |