|
| IsolateSpawnState (Dart_Port parent_port, Dart_Port origin_id, const char *script_url, PersistentHandle *closure_tuple_handle, SerializedObjectBuffer *message_buffer, const char *package_config, bool paused, bool errorsAreFatal, Dart_Port onExit, Dart_Port onError, const char *debug_name, IsolateGroup *group) |
|
| IsolateSpawnState (Dart_Port parent_port, const char *script_url, const char *package_config, SerializedObjectBuffer *args_buffer, SerializedObjectBuffer *message_buffer, bool paused, bool errorsAreFatal, Dart_Port onExit, Dart_Port onError, const char *debug_name, IsolateGroup *group) |
|
| ~IsolateSpawnState () |
|
Isolate * | isolate () const |
|
void | set_isolate (Isolate *value) |
|
Dart_Port | parent_port () const |
|
Dart_Port | origin_id () const |
|
Dart_Port | on_exit_port () const |
|
Dart_Port | on_error_port () const |
|
const char * | script_url () const |
|
const char * | package_config () const |
|
const char * | debug_name () const |
|
bool | is_spawn_uri () const |
|
bool | paused () const |
|
bool | errors_are_fatal () const |
|
Dart_IsolateFlags * | isolate_flags () |
|
PersistentHandle * | closure_tuple_handle () const |
|
ObjectPtr | ResolveFunction () |
|
ObjectPtr | BuildArgs (Thread *thread) |
|
ObjectPtr | BuildMessage (Thread *thread) |
|
IsolateGroup * | isolate_group () const |
|
Definition at line 348 of file isolate.cc.
◆ IsolateSpawnState() [1/2]
dart::IsolateSpawnState::IsolateSpawnState |
( |
Dart_Port |
parent_port, |
|
|
Dart_Port |
origin_id, |
|
|
const char * |
script_url, |
|
|
PersistentHandle * |
closure_tuple_handle, |
|
|
SerializedObjectBuffer * |
message_buffer, |
|
|
const char * |
package_config, |
|
|
bool |
paused, |
|
|
bool |
errorsAreFatal, |
|
|
Dart_Port |
onExit, |
|
|
Dart_Port |
onError, |
|
|
const char * |
debug_name, |
|
|
IsolateGroup * |
group |
|
) |
| |
Definition at line 427 of file isolate.cc.
448 serialized_args_(nullptr),
449 serialized_message_(message_buffer->StealMessage()),
452 ASSERT(closure_tuple_handle_ !=
nullptr);
453
455 auto isolate = thread->isolate();
456
457
459}
const char * script_url() const
Dart_Port parent_port() const
const char * debug_name() const
PersistentHandle * closure_tuple_handle() const
Dart_Port on_error_port() const
const char * package_config() const
IsolateGroup * isolate_group() const
Dart_IsolateFlags * isolate_flags()
Dart_Port origin_id() const
bool errors_are_fatal() const
Isolate * isolate() const
Dart_Port on_exit_port() const
void FlagsCopyTo(Dart_IsolateFlags *api_flags) const
static Thread * Current()
◆ IsolateSpawnState() [2/2]
dart::IsolateSpawnState::IsolateSpawnState |
( |
Dart_Port |
parent_port, |
|
|
const char * |
script_url, |
|
|
const char * |
package_config, |
|
|
SerializedObjectBuffer * |
args_buffer, |
|
|
SerializedObjectBuffer * |
message_buffer, |
|
|
bool |
paused, |
|
|
bool |
errorsAreFatal, |
|
|
Dart_Port |
onExit, |
|
|
Dart_Port |
onError, |
|
|
const char * |
debug_name, |
|
|
IsolateGroup * |
group |
|
) |
| |
Definition at line 461 of file isolate.cc.
479 serialized_args_(args_buffer->StealMessage()),
480 serialized_message_(message_buffer->StealMessage()),
481 isolate_flags_(),
484 if (debug_name_ == nullptr) {
486 }
487
488
489
491}
static Isolate * Current()
static const char * NewConstChar(const char *chars)
◆ ~IsolateSpawnState()
dart::IsolateSpawnState::~IsolateSpawnState |
( |
| ) |
|
Definition at line 493 of file isolate.cc.
493 {
494 delete[] script_url_;
495 delete[] package_config_;
496 delete[] debug_name_;
497}
◆ BuildArgs()
Definition at line 538 of file isolate.cc.
538 {
541 serialized_args_.reset();
543}
static ObjectPtr DeserializeMessage(Thread *thread, Message *message)
◆ BuildMessage()
Definition at line 545 of file isolate.cc.
545 {
548 serialized_message_.reset();
550}
◆ closure_tuple_handle()
Definition at line 391 of file isolate.cc.
391 {
392 return closure_tuple_handle_;
393 }
◆ debug_name()
const char * dart::IsolateSpawnState::debug_name |
( |
| ) |
const |
|
inline |
Definition at line 384 of file isolate.cc.
384{ return debug_name_; }
◆ errors_are_fatal()
bool dart::IsolateSpawnState::errors_are_fatal |
( |
| ) |
const |
|
inline |
Definition at line 389 of file isolate.cc.
389{ return errors_are_fatal_; }
◆ is_spawn_uri()
bool dart::IsolateSpawnState::is_spawn_uri |
( |
| ) |
const |
|
inline |
Definition at line 385 of file isolate.cc.
385 {
386 return closure_tuple_handle_ == nullptr;
387 }
◆ isolate()
Isolate * dart::IsolateSpawnState::isolate |
( |
| ) |
const |
|
inline |
◆ isolate_flags()
Definition at line 390 of file isolate.cc.
390{ return &isolate_flags_; }
◆ isolate_group()
IsolateGroup * dart::IsolateSpawnState::isolate_group |
( |
| ) |
const |
|
inline |
Definition at line 399 of file isolate.cc.
399{ return isolate_group_; }
◆ on_error_port()
Dart_Port dart::IsolateSpawnState::on_error_port |
( |
| ) |
const |
|
inline |
Definition at line 381 of file isolate.cc.
381{ return on_error_port_; }
◆ on_exit_port()
Dart_Port dart::IsolateSpawnState::on_exit_port |
( |
| ) |
const |
|
inline |
Definition at line 380 of file isolate.cc.
380{ return on_exit_port_; }
◆ origin_id()
Dart_Port dart::IsolateSpawnState::origin_id |
( |
| ) |
const |
|
inline |
Definition at line 379 of file isolate.cc.
379{ return origin_id_; }
◆ package_config()
const char * dart::IsolateSpawnState::package_config |
( |
| ) |
const |
|
inline |
Definition at line 383 of file isolate.cc.
383{ return package_config_; }
◆ parent_port()
Dart_Port dart::IsolateSpawnState::parent_port |
( |
| ) |
const |
|
inline |
Definition at line 378 of file isolate.cc.
378{ return parent_port_; }
◆ paused()
bool dart::IsolateSpawnState::paused |
( |
| ) |
const |
|
inline |
◆ ResolveFunction()
ObjectPtr dart::IsolateSpawnState::ResolveFunction |
( |
| ) |
|
Definition at line 499 of file isolate.cc.
499 {
501 auto IG = thread->isolate_group();
502 Zone* zone = thread->zone();
503
504
505
506 const Library& lib =
510 if (func.IsNull()) {
511
513 if (obj.IsFunction()) {
514 func ^= obj.ptr();
515 }
516 }
517 if (func.IsNull()) {
519 zone,
521 "Unable to resolve function 'main' in script '%s'.",
script_url()));
522 return LanguageError::New(msg);
523 }
524 return func.ptr();
525}
static StringPtr NewFormatted(const char *format,...) PRINTF_ATTRIBUTE(1
static StringPtr New(const char *cstr, Heap::Space space=Heap::kNew)
◆ script_url()
const char * dart::IsolateSpawnState::script_url |
( |
| ) |
const |
|
inline |
Definition at line 382 of file isolate.cc.
382{ return script_url_; }
◆ set_isolate()
void dart::IsolateSpawnState::set_isolate |
( |
Isolate * |
value | ) |
|
|
inline |
The documentation for this class was generated from the following file: