Closed Bug 1782753 Opened 3 years ago Closed 3 years ago

Remove unused HandleScope from CheckPatternSyntaxImpl

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file, 3 obsolete files)

Frontend uses irregexp only to check the syntax, by irregexp::CheckPatternSyntax,
and most part of irregexp::Isolate is unnecessary.

To decouple JSContext from frontend, check-pattern-specific part of irregexp::Isolate needs to be factored out.

CheckPatternSyntaxImpl shouldn't allocate any GC things, and
HandleScope shouldn't be necessary.

Depends on D153555

js::irregexp::ParseIsolate is base class which provides feature necessary for
CheckPatternSyntax.
This class definition is exposed to make it possible to be allocated on stack.

v8::internal::Isolate provides all methods, delegating to v8::internal::RuntimeIsolate for most of them.

v8::internal::RuntimeIsolate is previous v8::internal::Isolate that provides everything.

Isolate backed by ParseIsolate can be used only in CheckPatternSyntax.
Isolate backed by RuntimeIsolate can be used for all cases.

Depends on D153704

Attachment #9288428 - Attachment is obsolete: true
Attachment #9288429 - Attachment is obsolete: true
Attachment #9288430 - Attachment is obsolete: true

Most part gets resolved by bug 1779849

Summary: Factor out CheckPatternSyntax-specific part from js::irregexp::Isolate → Remove unused HandleScope from CheckPatternSyntaxImpl
Attachment #9288426 - Attachment description: Bug 1782753 - Part 1: Remove unused HandleScope from CheckPatternSyntaxImpl. r?iain! → Bug 1782753 - Remove unused HandleScope from CheckPatternSyntaxImpl. r?iain!
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/c144248852e3 Remove unused HandleScope from CheckPatternSyntaxImpl. r=iain
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: