1 // Copyright 2015 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 #include "src/type-cache.h" 6 7 #include "src/base/lazy-instance.h" 8 #include "src/types-inl.h" 9 10 namespace v8 { 11 namespace internal { 12 13 namespace { 14 15 base::LazyInstance<TypeCache>::type kCache = LAZY_INSTANCE_INITIALIZER; 16 17 } // namespace 18 19 20 // static Get()21TypeCache const& TypeCache::Get() { return kCache.Get(); } 22 23 } // namespace internal 24 } // namespace v8 25