Closed Bug 367226 Opened 19 years ago Closed 19 years ago

Option to change JS_THREADED_INTERP without changing the code

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: igor, Assigned: igor)

Details

Attachments

(1 file, 1 obsolete file)

Currently JS_THREADED_INTERP macro in jsinterp.c is defined as: #if JS_VERSION >= 160 && ( \ __GNUC__ >= 3 || \ (__IBMC__ >= 700 && defined __IBM_COMPUTED_GOTO) || \ __SUNPRO_C >= 0x570) # define JS_THREADED_INTERP 1 #else # undef JS_THREADED_INTERP #endif That does not allow to redefine the macro when invoking the compiler without changing the code. It would be nice to permit that for debugging/testing.
Attached patch Implementation v1 (quilt diff) (obsolete) — Splinter Review
The patch defines JS_THREADED_INTERP only if it is not already defined and changes the checks for the macro from if defined JS_THREADED_INTERP to if JS_THREADED_INTERP.
Attachment #251750 - Flags: review?(brendan)
Attachment #251750 - Attachment is obsolete: true
Attachment #252028 - Flags: review?(brendan)
Attachment #251750 - Flags: review?(brendan)
Comment on attachment 252028 [details] [diff] [review] Implementation v1 (cvs diff) Looks good. /be
Attachment #252028 - Flags: review?(brendan) → review+
I committed the patch from comment 2 to the trunk: Checking in jsinterp.c; /cvsroot/mozilla/js/src/jsinterp.c,v <-- jsinterp.c new revision: 3.325; previous revision: 3.324 done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: