local-isolate-inl.h 793 Bytes
Newer Older
1 2 3 4
// 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.

5 6
#ifndef V8_EXECUTION_LOCAL_ISOLATE_INL_H_
#define V8_EXECUTION_LOCAL_ISOLATE_INL_H_
7 8

#include "src/execution/isolate.h"
9
#include "src/execution/local-isolate.h"
10 11 12 13 14
#include "src/roots/roots-inl.h"

namespace v8 {
namespace internal {

15
Address LocalIsolate::cage_base() const { return isolate_->cage_base(); }
16
ReadOnlyHeap* LocalIsolate::read_only_heap() const {
17 18 19
  return isolate_->read_only_heap();
}

20
Object LocalIsolate::root(RootIndex index) const {
21 22 23
  DCHECK(RootsTable::IsImmortalImmovable(index));
  return isolate_->root(index);
}
24 25 26 27

}  // namespace internal
}  // namespace v8

28
#endif  // V8_EXECUTION_LOCAL_ISOLATE_INL_H_