OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/type-cache.h" | 5 #include "src/compiler/type-cache.h" |
6 | 6 |
7 #include "src/base/lazy-instance.h" | 7 #include "src/base/lazy-instance.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
| 11 namespace compiler { |
11 | 12 |
12 namespace { | 13 namespace { |
13 | 14 |
14 base::LazyInstance<TypeCache>::type kCache = LAZY_INSTANCE_INITIALIZER; | 15 base::LazyInstance<TypeCache>::type kCache = LAZY_INSTANCE_INITIALIZER; |
15 | 16 |
16 } // namespace | 17 } // namespace |
17 | 18 |
18 | |
19 // static | 19 // static |
20 TypeCache const& TypeCache::Get() { return kCache.Get(); } | 20 TypeCache const& TypeCache::Get() { return kCache.Get(); } |
21 | 21 |
| 22 } // namespace compiler |
22 } // namespace internal | 23 } // namespace internal |
23 } // namespace v8 | 24 } // namespace v8 |
OLD | NEW |