phpv8 / php-v8

PHP extension for V8 JavaScript engine
https://php-v8.readthedocs.io
MIT License
217 stars 14 forks source link

Add support for ScriptCompiler::kProduceFullCodeCache #71

Closed pinepain closed 7 years ago

pinepain commented 7 years ago
Name Value
Since v8 version 6.3.215
Commit hash https://github.com/v8/v8/commit/7f9de3dce97ca4ec252de3eb8b2e2de7da615789
Chromium issue https://bugs.chromium.org/p/chromium/issues/detail?id=768705

[snapshot] add kProduceExhaustiveCodeCache option.

  • Add kProduceExhaustiveCodeCache to v8::ScriptCompiler::CompileOptions to request eager compilation to add as much as possible to the code cache for the script.
  • Repurpose ParseInfo::kLazy flag.
  • Remove ParseInfo::kDebug flag.
  • Remove --serialize-toplevel as it has become obsolete.

FTR, in fact it is kProduceFullCodeCache, not kProduceExhaustiveCodeCache as stated in commit message, see CR issue for details.