blob: 9e82ad9b73b486d9ad45b23eac1195249a22c969 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_EXECUTION_OFF_THREAD_ISOLATE_INL_H_
#define V8_EXECUTION_OFF_THREAD_ISOLATE_INL_H_
#include "src/execution/isolate.h"
#include "src/execution/off-thread-isolate.h"
#include "src/roots/roots-inl.h"
namespace v8 {
namespace internal {
Address OffThreadIsolate::isolate_root() const {
return isolate_->isolate_root();
}
ReadOnlyHeap* OffThreadIsolate::read_only_heap() {
return isolate_->read_only_heap();
}
Object OffThreadIsolate::root(RootIndex index) {
DCHECK(RootsTable::IsImmortalImmovable(index));
return isolate_->root(index);
}
} // namespace internal
} // namespace v8
#endif // V8_EXECUTION_OFF_THREAD_ISOLATE_INL_H_
|