Luke Wagner
9dabae3069
Bug 542091 - remove JS_PushArguments[VA] (r=mrbkap,dveditz)
2010-02-06 12:26:24 -08:00
Luke Wagner
4f05b945eb
Bug 458421 - dead stuff in spidermonkey (r=jorendorff)
2010-01-22 11:52:17 -08:00
Andreas Gal
2943a7a949
Bug 474500 - TM: Need an API to flush and (optionally?) deallocate the code cache per thread.
2009-12-28 09:46:50 -08:00
Benjamin Smedberg
f92278ab68
Backed out changeset 94561cb0f0bd, bug 474500 because of static-analysis bustage.
2009-12-21 09:55:45 -05:00
gal@uci.edu
d8d110c024
Bug 474500 - TM: Need an API to flush and (optionally?) deallocate the code cache per thread. r=dvander
2009-12-18 21:34:20 -05:00
Jim Blandy
76386acacd
Bug 514585: Machinery for reporting ES5 strict mode errors. r=igor
...
2009-11-19: checkReportFlags adjusted to use js_GetTopStackFrame, to
satisfy static analysis checks. No effect on Sunspider.
At compile-time, we must consult the current JSTreeContext to decide
whether to issue an strict mode error; at run-time, we need to
check the strictness of the currently executing script. Both cases
also check the context options. The design is supposed to make it
easy to follow the principle that conditions treated as errors in
strict mode are a subset of those warned about by JSOPTION_STRICT.
This patch removes report flag handling from js_ExpandErrorArguments,
which is used for both compile-time and run-time errors. At run-time,
the new checkReportFlags handles the checks. At compile-time, we need
different checks depending on the situation, so the checks are done in
js_ReportStrictModeError, js_ReportCompileErrorNumber, and the new
ReportCompileErrorNumberVA.
2009-11-19 09:23:20 -08:00
Jim Blandy
534bfe84e0
Back out ad37dab7ea17: code to check the current frame's script's strictness flag fails the static checks. Using js_GetTopStackFrame introduces a perf regression.
2009-11-18 14:36:55 -08:00
Jim Blandy
bd0b14cc7e
Bug 514585: Machinery for reporting ES5 strict mode errors. r=igor
...
At compile-time, we must consult the current JSTreeContext to decide
whether to issue an strict mode error; at run-time, we need to
check the strictness of the currently executing script. Both cases
also check the context options. The design is supposed to make it
easy to follow the principle that conditions treated as errors in
strict mode are a subset of those warned about by JSOPTION_STRICT.
This patch removes report flag handling from js_ExpandErrorArguments,
which is used for both compile-time and run-time errors. At run-time,
the new checkReportFlags handles the checks. At compile-time, we need
different checks depending on the situation, so the checks are done in
js_ReportStrictModeError, js_ReportCompileErrorNumber, and the new
ReportCompileErrorNumberVA.
2009-11-18 13:33:53 -08:00
Jason Orendorff
54ae492912
Bug 498134 - ABI depends on #define DEBUG. r=Waldo.
...
--HG--
extra : rebase_source : 7add900da11663e2f98c1f8e0ef70387301ad115
2009-10-29 06:39:18 -05:00
Robert Sayre
e08b99cf18
bustage fix
2009-10-29 11:48:18 -07:00
Jason Orendorff
8e3f26b19f
Bug 518463 - Alternative APIs to JS_GetStringBytes/Chars with saner out-of-memory handling. Any code using the old APIs that attempts to handle OOM at all should switch to these. r=brendan.
2009-10-02 12:42:02 -05:00
L. David Baron
7e046dd800
Add assertions that fire when a JSAutoRequest, JSAutoSuspendRequest, JSAutoLocalRootScope, JSAutoTempValueRooter, JSAutoTempIdRooter, JSAutoIdArray, JSAutoEnumStateRooter, or JSAutoResolveFlags is used as a temporary. (Bug 518633) r=igor
2009-09-27 23:17:47 -07:00
Jeff Walden
9d39c0d549
Bug 515285 - Implement JS_SameValue, and make assertEq use it rather than JS_StrictlyEqual. r=jorendorff
2009-09-09 11:51:52 -07:00
David Anderson
a17ec3c834
Follow-up nits (spacing, comment typo) to bug 513844.
2009-09-10 17:24:28 -07:00
David Anderson
fdcaf63219
Greatly improved tracer x64 compliance and compatibility (bug 513844, r=gal).
2009-09-10 15:38:18 -07:00
Andreas Gal
030a8114b2
Backed out changeset 9b6b17a275ec (bug 506125).
2009-08-25 14:42:42 -07:00
Andreas Gal
f808b9ca98
Memory-pressure based GC scheduler (506125, r=igor,jwalden).
2009-08-24 18:24:52 -07:00
Andreas Gal
c438241025
Backout bug 506125.
2009-08-18 17:30:05 -07:00
Andreas Gal
57285268f7
Schedule GC based on process memory pressure (506125, r=igor,waldo).
2009-08-18 16:38:02 -07:00
Andreas Gal
ebc6f01967
Add an API to notify the JS engine that we are about to destroy the runtime (511252, r=brendan).
2009-08-18 16:31:20 -07:00
Jason Orendorff
8384b1e239
Bug 509098 - Remove JS_HAS_LVALUE_RETURN support. r=brendan.
2009-08-13 16:18:33 -05:00
Luke Wagner
fa2f83712c
Bug 507458 - clear the waters a bit regarding JSVAL_BOOLEAN
2009-08-12 16:39:23 -07:00
Jason Orendorff
08c6a1c780
Bug 506721 - Convert JSVAL_TO_INT and INT_TO_JSVAL to functions. r=Waldo.
2009-08-09 07:25:53 -05:00
Andreas Gal
9c938dd547
Backout bug 506125 due to talos failures.
2009-08-04 18:42:53 -07:00
Andreas Gal
06ad033ff2
Memory-pressure based GC scheduler (506125, r=igor).
2009-08-04 14:58:21 -07:00
David Mandelin
cfb0d1fd1b
Bug 506821: clean up trailing whitespace, r=brendan
2009-07-27 18:40:12 -07:00
Boris Zbarsky
887c21b643
Bug 496908. Make JSVAL_IS_* functions, not macros. r=brendan,jwalden
2009-07-27 16:14:12 -04:00
David Mandelin
fd4086beac
Bug 502058: blacklist regexps for native compilation more efficiently and reliably, r=gal
2009-07-06 13:21:32 -07:00
Jason Orendorff
5504115d71
Bug 491646 - Expose js_StrictlyEqual() to consumers. r=mrbkap.
...
--HG--
extra : rebase_source : 620a67bca11c2e04692d3f72df8739028d0dbd21
2009-05-15 14:51:02 -05:00
Robert Sayre
8b3982769a
Bug 442059 - [native JSON] allow to blacklist keys by name when encoding to JSON. r=brendan
2009-05-07 13:28:21 -07:00
Andreas Gal
a51f22dbdf
Need an API exposed to control code cache size (474497, r=bent,brendan, sr=mrbkap).
2009-04-22 16:52:59 -07:00
Brendan Eich
962b187fe5
upvar2, aka the big one take 2 (452598, r=mrbkap).
2009-04-05 21:17:22 -07:00
Andreas Gal
706120c0fb
Backed out changeset 972c44aa9d1f (bug 452598).
2009-04-04 10:14:52 -07:00
Brendan Eich
5f4d9ff474
upvar2, aka the big one (452598, r=mrbkap).
2009-04-04 10:05:49 +01:00
Jason Orendorff
22f1bdf5d6
Bug 483473 - Make JSObjectOps private. r=brendan.
...
--HG--
extra : rebase_source : 3240cb1f5c047dc92f8d1b525963bcb27e0a3521
2009-03-31 09:02:20 -05:00
Andreas Gal
43feef625d
Support calling arbitrary JSFastNatives from trace (463238, r=brendan).
2009-03-20 18:52:11 -07:00
Igor Bukanov
20e6be9c80
bug 362910 - js_GetMethod cleanup. r=brendan
2009-03-14 17:41:47 +01:00
Jason Orendorff
dbb0b6a149
Bug 481218 - js_IsCallable returns false for functions. r=brendan.
...
--HG--
extra : rebase_source : 52d3cba36f3fa1301223cb579bd75ec7bbd5d130
2009-03-11 10:46:45 -05:00
Blake Kaplan
1703c72fbc
Bug 482381 followup -- use a better name for the "value" field. r=brendan
...
--HG--
extra : rebase_source : b819d281fdeaab16d562d9ded6841da5f5ea3cd3
2009-03-10 16:00:27 -07:00
Blake Kaplan
df0c6f4108
Bug 482381 - Add JS_GetPropertyDescriptorById to quickly get all information about a given property, possibly off of the prototype chain. r=brendan/jorendorff
...
--HG--
extra : rebase_source : 2384be436993600204d457861231a3b180bc5147
2009-03-10 15:21:25 -07:00
Igor Bukanov
4ccdead266
bug 480700 - no more static asserts in headers. r=brendan
2009-03-05 12:12:50 +01:00
Brendan Eich
53c9096f08
Bug 480759 - TM: trace RegExp constructors (r=gal).
2009-03-04 19:26:16 -08:00
Brendan Eich
f32c3d8613
Bug 480657 - TM: Add an API to define traceable constructors (r=gal, jorendorff).
2009-03-03 22:53:27 -08:00
Robert Sayre
100a8e68be
Bug 476374 - JSON.parse does not support reviver argument as defined in spec. r=jorendorff
2009-03-03 12:55:11 -05:00
Igor Bukanov
fe9a728583
bug 479252 - avoiding watchdog ticks when idle in jsshell. r=gal
2009-02-20 13:47:46 +01:00
Jeff Walden
1fd43d31f4
Followup nitfixes to bug 463243 not noted in final reviews. Egads, how'd I miss some of these?
2009-02-17 10:27:24 -08:00
Andreas Gal
f796bcd60a
Substitute operation counting with a watchdog thread (477187, 2nd attempt, r=brendan/mrbkap/jst, sr=brendan/jst).
2009-02-10 03:45:36 -08:00
Andreas Gal
2a20c2a6de
Backing out bug 477187. Breaks xpcshell.
2009-02-09 22:54:05 -08:00
Andreas Gal
cbfbbd3cac
Substitute operation counting with a watchdog thread (477187, r=brendan/mrbkap/jst, sr=brendan/jst).
2009-02-09 18:20:50 -08:00
Jeff Walden
3c038a63cb
Bug 463243 - Assert correct type in JSVAL_TO_* (and vice versa) macros to fail fast when type errors happen. r=brendan
2009-02-03 13:56:25 -08:00