Closed Bug 459783 Opened 16 years ago Closed 15 years ago

TM: We don't trace RegExp() constructor.

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 487134

People

(Reporter: gal, Assigned: gal)

Details

Attachments

(2 files, 1 obsolete file)

brendan or mrbkap, could you pick this one up? Its a bit out of my league.
Blocking speeding up strings-unpack-code.
Attached patch my attempt at FastNewRegExp (obsolete) (deleted) — Splinter Review
Attached patch new patch, rebased to tip (deleted) — Splinter Review
Assignee: general → gal
Attachment #343471 - Attachment is obsolete: true
Attachment #343483 - Flags: review?(mrbkap)
Attachment #343483 - Flags: review?(mrbkap) → review+
Comment on attachment 343483 [details] [diff] [review] new patch, rebased to tip >diff --git a/js/src/jsregexp.cpp b/js/src/jsregexp.cpp >+ JS_ReportErrorFlagsAndNumber(cx, JSREPORT_ERROR, >+ js_GetErrorMessage, NULL, >+ JSMSG_BAD_FLAG, charBuf); Nit: align overflow lines with the other parameters, so: JS_ReportErrorFlagsAndNumber(cx, JSREPORT_ERROR, js_GetErrorMessage, NULL, JSMSG_BAD_FLAG, charBuf);
Attachment #344017 - Flags: review?
Missed the nit and I co-mingled the two patches. Meh.
Attachment #344017 - Flags: review? → review?(mrbkap)
Comment on attachment 344017 [details] [diff] [review] added testcase and a missing string.replace() case >diff --git a/js/src/jsbuiltins.h b/js/src/jsbuiltins.h >+ switch (s[i]) { >+ case 'g': >+ *flags |= JSREG_GLOB; >+ break; Nit: Please follow the crazy SpiderMonkey switch indentation rules! r=mrbkap with that picked (and brendan's other nit!).
Attachment #344017 - Flags: review?(mrbkap) → review+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: