[ScriptStreamer] Unify logic for deciding whether resource has a code cache.

Only suppress streaming in the cases where V8 will actually consume the code
code cache. It is no longer necessary to suppress it when we might want to
produce a code cache.

BUG=865098

Change-Id: I5ac4e798d7c7a732f87e0520ec4221da2646ae3e
Reviewed-on: https://chromium-review.googlesource.com/1149360
Commit-Queue: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#578130}
3 files changed