blob: d05aaa1f4dd0f23b839db62f68f8ac60b657de79 [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// 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"
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00008
9namespace v8 {
10namespace internal {
11
12namespace {
13
14base::LazyInstance<TypeCache>::type kCache = LAZY_INSTANCE_INITIALIZER;
15
16} // namespace
17
18
19// static
20TypeCache const& TypeCache::Get() { return kCache.Get(); }
21
22} // namespace internal
23} // namespace v8