Skip to content

Commit f2c5458

Browse files
verwaestV8 LUCI CQ
authored andcommitted
[maglev] CreateRegExpLiteral can throw...
... stack overflow Bug: v8:7700, 339759428 Change-Id: I3a38905c763f13f238a90bd6848ecca745bba180 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5544144 Reviewed-by: Patrick Thier <[email protected]> Commit-Queue: Patrick Thier <[email protected]> Commit-Queue: Toon Verwaest <[email protected]> Auto-Submit: Toon Verwaest <[email protected]> Cr-Commit-Position: refs/heads/main@{#93950}
1 parent 6544396 commit f2c5458

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/maglev/maglev-ir.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3846,6 +3846,7 @@ void CreateRegExpLiteral::GenerateCode(MaglevAssembler* masm,
38463846
pattern().object(), // pattern
38473847
Smi::FromInt(flags()) // flags
38483848
);
3849+
masm->DefineLazyDeoptPoint(lazy_deopt_info());
38493850
}
38503851

38513852
int GetTemplateObject::MaxCallStackArgs() const {

src/maglev/maglev-ir.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5367,8 +5367,9 @@ class CreateRegExpLiteral
53675367
int flags() const { return flags_; }
53685368

53695369
// The implementation currently calls runtime.
5370-
static constexpr OpProperties kProperties =
5371-
OpProperties::Call() | OpProperties::NotIdempotent();
5370+
static constexpr OpProperties kProperties = OpProperties::Call() |
5371+
OpProperties::NotIdempotent() |
5372+
OpProperties::CanThrow();
53725373

53735374
int MaxCallStackArgs() const;
53745375
void SetValueLocationConstraints();

0 commit comments

Comments
 (0)