diff options
Diffstat (limited to 'deps/v8/src/compiler/type-cache.cc')
-rw-r--r-- | deps/v8/src/compiler/type-cache.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/deps/v8/src/compiler/type-cache.cc b/deps/v8/src/compiler/type-cache.cc new file mode 100644 index 0000000000..cd80dc315a --- /dev/null +++ b/deps/v8/src/compiler/type-cache.cc @@ -0,0 +1,24 @@ +// Copyright 2015 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/compiler/type-cache.h" + +#include "src/base/lazy-instance.h" + +namespace v8 { +namespace internal { +namespace compiler { + +namespace { + +base::LazyInstance<TypeCache>::type kCache = LAZY_INSTANCE_INITIALIZER; + +} // namespace + +// static +TypeCache const& TypeCache::Get() { return kCache.Get(); } + +} // namespace compiler +} // namespace internal +} // namespace v8 |