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)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: igor, Assigned: igor)
Details
Attachments
(1 file, 1 obsolete file)
|
5.70 KB,
patch
|
brendan
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•19 years ago
|
||
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)
| Assignee | ||
Comment 2•19 years ago
|
||
Attachment #251750 -
Attachment is obsolete: true
Attachment #252028 -
Flags: review?(brendan)
Attachment #251750 -
Flags: review?(brendan)
Comment 3•19 years ago
|
||
Comment on attachment 252028 [details] [diff] [review]
Implementation v1 (cvs diff)
Looks good.
/be
Attachment #252028 -
Flags: review?(brendan) → review+
| Assignee | ||
Comment 4•19 years ago
|
||
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
Updated•19 years ago
|
Flags: in-testsuite-
You need to log in
before you can comment on or make changes to this bug.
Description
•