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 cage_base()15Address LocalIsolate::cage_base() const { return isolate_->cage_base(); } 16 code_cage_base()17Address LocalIsolate::code_cage_base() const { 18 return isolate_->code_cage_base(); 19 } 20 read_only_heap()21ReadOnlyHeap* LocalIsolate::read_only_heap() const { 22 return isolate_->read_only_heap(); 23 } 24 root(RootIndex index)25Object LocalIsolate::root(RootIndex index) const { 26 DCHECK(RootsTable::IsImmortalImmovable(index)); 27 return isolate_->root(index); 28 } 29 root_handle(RootIndex index)30Handle<Object> LocalIsolate::root_handle(RootIndex index) const { 31 DCHECK(RootsTable::IsImmortalImmovable(index)); 32 return isolate_->root_handle(index); 33 } 34 35 } // namespace internal 36 } // namespace v8 37 38 #endif // V8_EXECUTION_LOCAL_ISOLATE_INL_H_ 39