Skip to content

Commit

Permalink
Support compilation cache (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhackett1024 committed Jun 23, 2023
1 parent 0539d29 commit 7a73c97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ vars = {
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling V8
# and whatever else without interference from each other.
'v8_revision': '9a6f7f7cbb951c2aff493b9bdac2b6896bb5aa77',
'v8_revision': '98c2fea170026f0635174d79816de5131833b2a1',
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling swarming_client
# and whatever else without interference from each other.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ V8CodeCache::GetCompileOptions(mojom::blink::V8CacheOptions cache_options,

// The code cache doesn't behave correctly when scripts have record/replay
// instrumentation.
if (recordreplay::IsRecordingOrReplaying("no-compile-cache")) {
if (recordreplay::IsRecordingOrReplaying("no-compile-cache", "V8CodeCache::GetCompileOptions")) {
return std::make_tuple(v8::ScriptCompiler::kNoCompileOptions,
ProduceCacheOptions::kNoProduceCache,
no_cache_reason);
Expand Down
2 changes: 1 addition & 1 deletion third_party/blink/renderer/modules/cache_storage/cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ bool ShouldGenerateV8CodeCache(ScriptState* script_state,

// Bytecode varies between recording, replaying, and regular execution
// and is not cached when recording/replaying.
if (recordreplay::IsRecordingOrReplaying("no-compile-cache"))
if (recordreplay::IsRecordingOrReplaying("no-compile-cache", "ShouldGenerateV8CodeCache"))
return false;

return true;
Expand Down

0 comments on commit 7a73c97

Please sign in to comment.