[code caching] Allow native code entries to take up to half the cache
- Adds new net::CacheType values so the JS code cache can be distinguished from the WASM code cache. GENERATED_BYTE_CODE_CACHE refers to Javascript, GENERATED_NATIVE_CODE_CACHE refers to WebAssembly. - Changes SimpleBackendImpl::MaxFileSize to allow PNACL and WASM cache entries to take up to 1/2 of the cache. The previous limit was 1/8 of the cache. This CL makes it possible for apps with large WASM modules (150 MB) to benefit from code caching on desktop. The limit of 1/2 the cache size is somewhat conservative. PNACL entries are also native code and can occupy the entire cache (see BackEndImpl::MaxFileSize). Bug: chromium:719172 Change-Id: Id177862f00c138034d43a5256d317928a48aa467 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1636648Reviewed-by:Maks Orlovich <morlovich@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Mythri Alle <mythria@chromium.org> Commit-Queue: Bill Budge <bbudge@chromium.org> Cr-Commit-Position: refs/heads/master@{#665925}
Showing
Please register or sign in to comment