Commit Graph

310 Commits

Author SHA1 Message Date
Brendan Eich
b73234dea0 Eliminate JSClass::reserveSlots and streamline new-object paths (535416, r=gal). 2010-06-18 17:43:02 -07:00
Gregor Wagner
2e84690bd8 Bug 519949 - TM: remove LocalRootScopes r=igor 2010-06-23 11:37:35 -05:00
Brendan Eich
fa509bbb91 Back out a81f2aed9c9b due to orange. 2010-06-18 17:39:22 -07:00
Brendan Eich
dcc73e0592 Eliminate JSClass::reserveSlots and reserve fixed-per-class slots lazily (535416, r=gal). 2010-06-15 10:06:40 -07:00
Jeff Walden
2f4f00ead4 Bug 572577 - Make property enumeration mechanisms fill in a provided vector of names, rather than return a JSIdArray. r=gal
--HG--
extra : rebase_source : 20994eb4c76aad9fe570b8dcfce1f5b6ceeef0fc
2010-06-16 14:12:21 -07:00
Jason Orendorff
530bcdbe1a Merge backout. 2010-06-07 20:38:30 -05:00
Jason Orendorff
1d3f5a1c76 Back out changeset 5f425aecd7ab again. Still has performance issues; 14% in ThisObject hook. 2010-06-07 20:36:57 -05:00
Luke Wagner
41b9495dcf Bug 565157 - typed JS_AddRoot (r=igor) 2010-06-07 17:05:02 -07:00
Jason Orendorff
17219b2072 Bug 556277 - Compute this eagerly in more cases. r=brendan. Second landing. 2010-06-04 00:34:57 -07:00
Robert Sayre
c5199de06b Merge backout. 2010-06-05 11:43:27 -04:00
Robert Sayre
878aca6218 Backed out changeset 52be13ea0488. Bug 556277 - Compute this eagerly in more cases. r=brendan. Suspected of performance regression on SunSpider unpack-code. 80ms -> 135ms. 2010-06-05 11:42:59 -04:00
Jason Orendorff
5bf5fbc4e7 Bug 556277 - Compute this eagerly in more cases. r=brendan.
--HG--
extra : rebase_source : b295b576f019a95b55d12b86077aaef295e3eec8
2010-06-04 00:34:57 -07:00
Andreas Gal
8c624148c6 Add an API for compartments (570040, r=jorendorff). 2010-06-04 16:32:10 -07:00
Andreas Gal
98a785e069 Rip out proto cache and store prototypes in the global object (569537, r=jorendorff). 2010-06-02 20:30:45 -07:00
David Anderson
1efac35384 Reserve standard class properties in global objects (bug 561923 part 1, r=brendan). 2010-05-23 17:12:08 -07:00
Jason Orendorff
68c0d0f642 Bug 513065 - Part 3, Stay on trace when calculating scope in thisObject hook. r=mrbkap. 2010-05-21 07:27:00 -05:00
Igor Bukanov
fd15cf0041 bug 237006 - automatic detection of the native thread stack base. The patch is based on the initial patches for bug 516832 by gal and gregor. r=gregor 2010-05-19 10:29:05 +02:00
Andreas Gal
9f8b556775 Implement ES Harmony Proxies (bug 546590, r=mrbkap). 2010-05-18 19:21:43 -07:00
Andreas Gal
811ac4cf75 fast object iteration (558754, r=brendan, CLOSED TREE). 2010-05-07 17:52:52 -07:00
Jason Orendorff
dd4e4d158b Silence a compiler warning (in MSVC) about implicitly narrowing jsval to JSBool in JSVAL_IS_INT. Noticed by MikeM. No bug#, rs=Waldo via IRC.
--HG--
extra : rebase_source : 8060def41cdbed1c7b80b01da58b00e1967fb3fe
2010-04-28 16:12:15 -05:00
timeless@mozdev.org
53b71b9fa9 Bug 560815 - PRIVATE_TO_JSVAL(NULL) yields warning: NULL used in arithmetic with gcc 4.2.1. r=jorendorff.
--HG--
extra : rebase_source : bbbf5e801b7ae5bc0c7c30864e487a03ddcf72fc
2010-04-23 20:17:36 -05:00
Jason Orendorff
95065267f5 Bug 527805 - Placeholder comment as requested in review. r=brendan, see comment 6 of the bug. 2010-04-16 15:38:57 -05:00
Jason Orendorff
f677d26051 Bug 527805 - Remove JSCLASS_SHARE_ALL_PROPERTIES. r=brendan. 2010-04-16 15:33:19 -05:00
Dan Witte
5f94338df4 Bug 538324 - Move ctypes into js/src. Part 6: Add ctypes to JSAPI. r=sayrer 2010-04-02 13:07:41 -07:00
Luke Wagner
805c7064c3 Bug 555104 - remove JS_ExecuteScriptPart (r=brendan) 2010-03-26 19:37:45 -07:00
Andreas Gal
5486afbe80 Public JS API for new ES5 Object functions (551595, r=jwalden). 2010-03-24 12:36:42 -07:00
Jason Orendorff
176743c01d Bug 480850 - Add JSAPI function JS_New. r=mrbkap.
--HG--
extra : rebase_source : bb808cedea84d20dfa6e2b3ab6d11b5491aa9058
2010-03-17 10:22:13 -05:00
Igor Bukanov
35f4d91473 bug 551680 - replacing JS_(Suspend|Resume)Request with JSAutoSuspendRequest. r=mrbkap 2010-03-17 10:29:37 +03:00
Robert Sayre
4066e6b277 Merge mozilla-central to tracemonkey. 2010-03-13 11:51:12 -05:00
Andreas Gal
4b7c35b234 Disallow embeddings reaching into our guts (part 1: jsnum.h, bug 548205, r=brendan). 2010-03-01 13:30:23 -08:00
Luke Wagner
7832cb4aba Bug 542091 - remove JS_PushArguments[VA] (r=mrbkap,dveditz) 2010-02-06 12:26:24 -08:00
Luke Wagner
88037b9dce Bug 458421 - dead stuff in spidermonkey (r=jorendorff) 2010-01-22 11:52:17 -08:00
Sid Stamm
1090529f8c bug 515443 CSP no-eval support. r=mrbkap,brendan 2010-03-08 00:24:50 -08:00
Andreas Gal
a8c336688e 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
d84794e3af Backed out changeset 94561cb0f0bd, bug 474500 because of static-analysis bustage. 2009-12-21 09:55:45 -05:00
gal@uci.edu
f18ded3596 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
ffac41c809 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
e5ccb0b9ff 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
bd1f64ac66 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
9a443d248c Bug 498134 - ABI depends on #define DEBUG. r=Waldo.
--HG--
extra : rebase_source : 7add900da11663e2f98c1f8e0ef70387301ad115
2009-10-29 06:39:18 -05:00
Robert Sayre
bc3cdfee08 bustage fix 2009-10-29 11:48:18 -07:00
Jason Orendorff
7afbcb9d74 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
c9b73a028b 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
690999f2e8 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
f05040af92 Follow-up nits (spacing, comment typo) to bug 513844. 2009-09-10 17:24:28 -07:00
David Anderson
97096286be Greatly improved tracer x64 compliance and compatibility (bug 513844, r=gal). 2009-09-10 15:38:18 -07:00
Andreas Gal
6197ee99d3 Backed out changeset 9b6b17a275ec (bug 506125). 2009-08-25 14:42:42 -07:00
Andreas Gal
614a0602cf Memory-pressure based GC scheduler (506125, r=igor,jwalden). 2009-08-24 18:24:52 -07:00
Andreas Gal
ded5eff2b9 Backout bug 506125. 2009-08-18 17:30:05 -07:00
Andreas Gal
019d87781c Schedule GC based on process memory pressure (506125, r=igor,waldo). 2009-08-18 16:38:02 -07:00