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 23 matching lines...) Expand all Loading... |
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 V8CacheOptionsParse, // Use parser caching. | 38 V8CacheOptionsParse, // Use parser caching. |
39 V8CacheOptionsCode, // Use code caching. | 39 V8CacheOptionsCode, // Use code caching. |
40 V8CacheOptionsCodeCompressed, // Use code caching and compress the code. | 40 V8CacheOptionsCodeCompressed, // Use code caching and compress the code. |
41 V8CacheOptionsNone, // V8 caching turned off. | 41 V8CacheOptionsNone, // V8 caching turned off. |
42 V8CacheOptionsParseMemory, // Use parser in-memory caching (no disk). | 42 V8CacheOptionsParseMemory, // Use parser in-memory caching (no disk). |
43 V8CacheOptionsHeuristics, // Mixed strategy: Cache code if it's a likely win
. | 43 V8CacheOptionsHeuristics, // Mixed strategy: Cache code if it's a likely win
. |
44 V8CacheOptionsHeuristicsMobile // As above, but tuned for mobile. | 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. |
45 }; | 49 }; |
46 | 50 |
47 } // namespace blink | 51 } // namespace blink |
48 | 52 |
49 #endif // V8CacheOptions_h | 53 #endif // V8CacheOptions_h |
OLD | NEW |