Flutter Engine
The Flutter Engine
third_party
dart-lang
sdk
runtime
vm
thread_stack_resource.cc
Go to the documentation of this file.
1
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
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.
4
5
#include "
vm/thread_stack_resource.h
"
6
7
#include "
platform/assert.h
"
8
#include "
vm/isolate.h
"
9
#include "
vm/thread.h
"
10
#include "
vm/zone.h
"
11
12
namespace
dart
{
13
14
ThreadStackResource::~ThreadStackResource
() {
15
#if defined(DEBUG)
16
if
(
thread
() !=
nullptr
) {
17
BaseIsolate::AssertCurrent(
reinterpret_cast<
BaseIsolate
*
>
(
isolate
()));
18
}
19
#endif
20
}
21
22
Isolate
*
ThreadStackResource::isolate
()
const
{
23
return
thread
()->
isolate
();
24
}
25
26
IsolateGroup
*
ThreadStackResource::isolate_group
()
const
{
27
return
thread
()->
isolate_group
();
28
}
29
30
}
// namespace dart
assert.h
dart::BaseIsolate
Definition:
base_isolate.h:21
dart::IsolateGroup
Definition:
isolate.h:268
dart::Isolate
Definition:
isolate.h:956
dart::ThreadStackResource::~ThreadStackResource
~ThreadStackResource()
Definition:
thread_stack_resource.cc:14
dart::ThreadStackResource::thread
Thread * thread() const
Definition:
thread_stack_resource.h:28
dart::ThreadStackResource::isolate_group
IsolateGroup * isolate_group() const
Definition:
thread_stack_resource.cc:26
dart::ThreadStackResource::isolate
Isolate * isolate() const
Definition:
thread_stack_resource.cc:22
dart::Thread::isolate
Isolate * isolate() const
Definition:
thread.h:534
dart::Thread::isolate_group
IsolateGroup * isolate_group() const
Definition:
thread.h:541
isolate.h
dart
Definition:
dart_vm.cc:33
thread.h
thread_stack_resource.h
zone.h
Generated on Sun Jun 23 2024 21:55:50 for Flutter Engine by
1.9.4