Commit 366b97a5 authored by Leszek Swirski's avatar Leszek Swirski Committed by V8 LUCI CQ

[compiler] Remove bad "no cache reason" DCHECK

The API doesn't forbid passing in a "no cache reason" even when there's
a cache.

Change-Id: I4392bd9707333e8bc39129de72de753d88265c5c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3099950Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#76347}
parent 831dd7c3
...@@ -2429,7 +2429,6 @@ MaybeLocal<UnboundScript> ScriptCompiler::CompileUnboundInternal( ...@@ -2429,7 +2429,6 @@ MaybeLocal<UnboundScript> ScriptCompiler::CompileUnboundInternal(
i::MaybeHandle<i::SharedFunctionInfo> maybe_function_info; i::MaybeHandle<i::SharedFunctionInfo> maybe_function_info;
if (options == kConsumeCodeCache) { if (options == kConsumeCodeCache) {
DCHECK_EQ(no_cache_reason, NoCacheReason::kNoCacheNoReason);
if (source->consume_cache_task) { if (source->consume_cache_task) {
// Take ownership of the internal deserialization task and clear it off // Take ownership of the internal deserialization task and clear it off
// the consume task on the source. // the consume task on the source.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment