Commit f5274dfe authored by Jakob Gruber's avatar Jakob Gruber Committed by V8 LUCI CQ

[regexp] Check we've got a ByteArray in the interpreter

Happy hunting.

Bug: chromium:1262676
Change-Id: I0f3a5519cb9ed3dc4787acd61cb437ee8c2bf2d1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3257716
Auto-Submit: Jakob Gruber <jgruber@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77681}
parent 3f8310d3
...@@ -1075,6 +1075,9 @@ IrregexpInterpreter::Result IrregexpInterpreter::MatchInternal( ...@@ -1075,6 +1075,9 @@ IrregexpInterpreter::Result IrregexpInterpreter::MatchInternal(
uint32_t backtrack_limit) { uint32_t backtrack_limit) {
DCHECK(subject_string.IsFlat()); DCHECK(subject_string.IsFlat());
// TODO(chromium:1262676): Remove this CHECK once fixed.
CHECK(code_array.IsByteArray());
// Note: Heap allocation *is* allowed in two situations if calling from // Note: Heap allocation *is* allowed in two situations if calling from
// Runtime: // Runtime:
// 1. When creating & throwing a stack overflow exception. The interpreter // 1. When creating & throwing a stack overflow exception. The interpreter
......
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