OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef V8_COMPILATION_CACHE_H_ | 5 #ifndef V8_COMPILATION_CACHE_H_ |
6 #define V8_COMPILATION_CACHE_H_ | 6 #define V8_COMPILATION_CACHE_H_ |
7 | 7 |
| 8 #include "src/allocation.h" |
| 9 #include "src/handles.h" |
| 10 #include "src/objects.h" |
| 11 |
8 namespace v8 { | 12 namespace v8 { |
9 namespace internal { | 13 namespace internal { |
10 | 14 |
11 // The compilation cache consists of several generational sub-caches which uses | 15 // The compilation cache consists of several generational sub-caches which uses |
12 // this class as a base class. A sub-cache contains a compilation cache tables | 16 // this class as a base class. A sub-cache contains a compilation cache tables |
13 // for each generation of the sub-cache. Since the same source code string has | 17 // for each generation of the sub-cache. Since the same source code string has |
14 // different compiled code for scripts and evals, we use separate sub-caches | 18 // different compiled code for scripts and evals, we use separate sub-caches |
15 // for different compilation modes, to avoid retrieving the wrong result. | 19 // for different compilation modes, to avoid retrieving the wrong result. |
16 class CompilationSubCache { | 20 class CompilationSubCache { |
17 public: | 21 public: |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 232 |
229 friend class Isolate; | 233 friend class Isolate; |
230 | 234 |
231 DISALLOW_COPY_AND_ASSIGN(CompilationCache); | 235 DISALLOW_COPY_AND_ASSIGN(CompilationCache); |
232 }; | 236 }; |
233 | 237 |
234 | 238 |
235 } } // namespace v8::internal | 239 } } // namespace v8::internal |
236 | 240 |
237 #endif // V8_COMPILATION_CACHE_H_ | 241 #endif // V8_COMPILATION_CACHE_H_ |
OLD | NEW |