| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 "v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "assembler.h" | 7 #include "src/assembler.h" |
| 8 #include "compilation-cache.h" | 8 #include "src/compilation-cache.h" |
| 9 #include "serialize.h" | 9 #include "src/serialize.h" |
| 10 | 10 |
| 11 namespace v8 { | 11 namespace v8 { |
| 12 namespace internal { | 12 namespace internal { |
| 13 | 13 |
| 14 | 14 |
| 15 // The number of generations for each sub cache. | 15 // The number of generations for each sub cache. |
| 16 // The number of ScriptGenerations is carefully chosen based on histograms. | 16 // The number of ScriptGenerations is carefully chosen based on histograms. |
| 17 // See issue 458: http://code.google.com/p/v8/issues/detail?id=458 | 17 // See issue 458: http://code.google.com/p/v8/issues/detail?id=458 |
| 18 static const int kScriptGenerations = 5; | 18 static const int kScriptGenerations = 5; |
| 19 static const int kEvalGlobalGenerations = 2; | 19 static const int kEvalGlobalGenerations = 2; |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 } | 421 } |
| 422 | 422 |
| 423 | 423 |
| 424 void CompilationCache::Disable() { | 424 void CompilationCache::Disable() { |
| 425 enabled_ = false; | 425 enabled_ = false; |
| 426 Clear(); | 426 Clear(); |
| 427 } | 427 } |
| 428 | 428 |
| 429 | 429 |
| 430 } } // namespace v8::internal | 430 } } // namespace v8::internal |
| OLD | NEW |