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