| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef V8CacheOptions_h | 31 #ifndef V8CacheOptions_h |
| 32 #define V8CacheOptions_h | 32 #define V8CacheOptions_h |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 enum V8CacheOptions { | 36 enum V8CacheOptions { |
| 37 V8CacheOptionsDefault, // Use whatever the current default is. | 37 V8CacheOptionsDefault, // Use whatever the current default is. |
| 38 V8CacheOptionsNone, // V8 caching turned off. |
| 38 V8CacheOptionsParse, // Use parser caching. | 39 V8CacheOptionsParse, // Use parser caching. |
| 39 V8CacheOptionsCode, // Use code caching. | 40 V8CacheOptionsCode, // Use code caching. |
| 40 V8CacheOptionsCodeCompressed, // Use code caching and compress the code. | |
| 41 V8CacheOptionsNone, // V8 caching turned off. | |
| 42 V8CacheOptionsParseMemory, // Use parser in-memory caching (no disk). | |
| 43 V8CacheOptionsHeuristics, // Mixed strategy: Cache code if it's a likely win
. | |
| 44 V8CacheOptionsHeuristicsMobile, // As above, but tuned for mobile. | |
| 45 V8CacheOptionsHeuristicsDefault, // Cache code or default. | |
| 46 V8CacheOptionsHeuristicsDefaultMobile, // As above, but tuned for mobile. | |
| 47 V8CacheOptionsRecent, // Cache recently compiled code. | |
| 48 V8CacheOptionsRecentSmall // Cache small recently compiled code. | |
| 49 }; | 41 }; |
| 50 | 42 |
| 51 } // namespace blink | 43 } // namespace blink |
| 52 | 44 |
| 53 #endif // V8CacheOptions_h | 45 #endif // V8CacheOptions_h |
| OLD | NEW |