| 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 class IsolateSpawnState { | 534 class IsolateSpawnState { |
| 535 public: | 535 public: |
| 536 explicit IsolateSpawnState(const Function& func); | 536 explicit IsolateSpawnState(const Function& func); |
| 537 explicit IsolateSpawnState(const char* script_url); | 537 explicit IsolateSpawnState(const char* script_url); |
| 538 ~IsolateSpawnState(); | 538 ~IsolateSpawnState(); |
| 539 | 539 |
| 540 Isolate* isolate() const { return isolate_; } | 540 Isolate* isolate() const { return isolate_; } |
| 541 void set_isolate(Isolate* value) { isolate_ = value; } | 541 void set_isolate(Isolate* value) { isolate_ = value; } |
| 542 char* script_url() const { return script_url_; } | 542 char* script_url() const { return script_url_; } |
| 543 char* library_url() const { return library_url_; } | 543 char* library_url() const { return library_url_; } |
| 544 char* class_name() const { return class_name_; } | |
| 545 char* function_name() const { return function_name_; } | 544 char* function_name() const { return function_name_; } |
| 546 char* exception_callback_name() const { return exception_callback_name_; } | 545 char* exception_callback_name() const { return exception_callback_name_; } |
| 547 bool is_spawn_uri() const { return library_url_ == NULL; } | 546 bool is_spawn_uri() const { return library_url_ == NULL; } |
| 548 | 547 |
| 549 RawObject* ResolveFunction(); | 548 RawObject* ResolveFunction(); |
| 550 void Cleanup(); | 549 void Cleanup(); |
| 551 | 550 |
| 552 private: | 551 private: |
| 553 Isolate* isolate_; | 552 Isolate* isolate_; |
| 554 char* script_url_; | 553 char* script_url_; |
| 555 char* library_url_; | 554 char* library_url_; |
| 556 char* class_name_; | |
| 557 char* function_name_; | 555 char* function_name_; |
| 558 char* exception_callback_name_; | 556 char* exception_callback_name_; |
| 559 }; | 557 }; |
| 560 | 558 |
| 561 } // namespace dart | 559 } // namespace dart |
| 562 | 560 |
| 563 #endif // VM_ISOLATE_H_ | 561 #endif // VM_ISOLATE_H_ |
| OLD | NEW |