| // 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_LOCAL_ISOLATE_INL_H_ | |
| #define V8_EXECUTION_LOCAL_ISOLATE_INL_H_ | |
| #include "src/execution/isolate.h" | |
| #include "src/execution/local-isolate.h" | |
| #include "src/roots/roots-inl.h" | |
| namespace v8 { | |
| namespace internal { | |
| Address LocalIsolate::isolate_root() const { return isolate_->isolate_root(); } | |
| ReadOnlyHeap* LocalIsolate::read_only_heap() const { | |
| return isolate_->read_only_heap(); | |
| } | |
| Object LocalIsolate::root(RootIndex index) const { | |
| DCHECK(RootsTable::IsImmortalImmovable(index)); | |
| return isolate_->root(index); | |
| } | |
| } // namespace internal | |
| } // namespace v8 | |
| #endif // V8_EXECUTION_LOCAL_ISOLATE_INL_H_ |