// 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. #include "src/heap/local-factory.h" #include "src/common/globals.h" #include "src/execution/local-isolate.h" #include "src/handles/handles.h" #include "src/heap/concurrent-allocator-inl.h" #include "src/heap/local-heap-inl.h" #include "src/numbers/hash-seed-inl.h" #include "src/objects/fixed-array.h" #include "src/objects/heap-object.h" #include "src/objects/string.h" #include "src/roots/roots-inl.h" #include "src/strings/string-hasher.h" namespace v8 { namespace internal { #ifdef V8_SANDBOXED_EXTERNAL_POINTERS LocalFactory::LocalFactory(Isolate* isolate) : roots_(isolate), isolate_for_sandbox_(isolate) {} #else LocalFactory::LocalFactory(Isolate* isolate) : roots_(isolate) {} #endif void LocalFactory::AddToScriptList(Handle