OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "compilation-cache.h" | 30 #include "compilation-cache.h" |
31 | 31 |
32 namespace v8 { | 32 namespace v8 { |
33 namespace internal { | 33 namespace internal { |
34 | 34 |
35 | 35 |
36 // The number of sub caches covering the different types to cache. | 36 // The number of sub caches covering the different types to cache. |
37 static const int kSubCacheCount = 4; | 37 static const int kSubCacheCount = 4; |
38 | 38 |
39 // The number of generations for each sub cache. | 39 // The number of generations for each sub cache. |
40 #if V8_TARGET_ARCH_ARM | 40 #if defined(ANDROID) |
41 static const int kScriptGenerations = 1; | 41 static const int kScriptGenerations = 1; |
42 static const int kEvalGlobalGenerations = 1; | 42 static const int kEvalGlobalGenerations = 1; |
43 static const int kEvalContextualGenerations = 1; | 43 static const int kEvalContextualGenerations = 1; |
44 static const int kRegExpGenerations = 1; | 44 static const int kRegExpGenerations = 1; |
45 #else | 45 #else |
46 static const int kScriptGenerations = 5; | 46 static const int kScriptGenerations = 5; |
47 static const int kEvalGlobalGenerations = 2; | 47 static const int kEvalGlobalGenerations = 2; |
48 static const int kEvalContextualGenerations = 2; | 48 static const int kEvalContextualGenerations = 2; |
49 static const int kRegExpGenerations = 2; | 49 static const int kRegExpGenerations = 2; |
50 #endif | 50 #endif |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 } | 478 } |
479 | 479 |
480 | 480 |
481 void CompilationCache::Disable() { | 481 void CompilationCache::Disable() { |
482 enabled = false; | 482 enabled = false; |
483 Clear(); | 483 Clear(); |
484 } | 484 } |
485 | 485 |
486 | 486 |
487 } } // namespace v8::internal | 487 } } // namespace v8::internal |
OLD | NEW |