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
Brendan Eich
3fcd3cab28
Bug 454184 - Implement eval caching (r=mrbkap).
2009-01-27 19:56:55 -08:00
Andrei Saprykin
7b91b30052
bug 474801 - Checking for MaybeGC conditions when allocating GC things in JS shell. r=igor
2009-01-27 18:21:51 +01:00
Blake Kaplan
2ddd004009
Bug 462428 - Make __lookup[GS]etter__ work on quickstubbed properties by faking it for XPConnect prototype objects only. r=jorendorff sr=brendan
2009-01-23 15:44:01 -08:00
Igor Bukanov
c032867e33
bug 472702 - using watchdog thread in js shell to trigger operation callback
2009-01-14 18:23:51 +01:00
Andreas Gal
135f143d10
Backed out changeset adbe8e4b21dc due to tinderbox failures/timeouts (453157).
2009-01-05 16:22:42 -08:00
Andrei Saprykin
9f7c96f36f
bug 453157 - watchdog thread as an alternative to operation count. r=myself,mrbkap
2009-01-05 22:09:23 +01:00
David Mandelin
4202e18d74
Bug 463997: JS regression test bug with 'with (window) ...', r=mrbkap
2009-01-02 13:11:46 -08:00
Igor Bukanov
81c3a2b632
Backed out changeset 2d5e6b1c7254 - busted the WINNT 5.1 talos tracemonkey.
2008-12-23 19:24:09 +01:00
Andrei Saprykin
11dac3f234
bug 453157 - watchdog thread as an alternative to operation count. r=igor,mrbkap
2008-12-23 16:12:11 +01:00
Igor Bukanov
136838d60b
Backed out changeset 7184e014cd05 - the patch for bug 453157 bursted tgfx test on Windows.
2008-12-21 21:49:06 +01:00
Andrei Saprykin
c68c632137
bug 453157 - watchdog thread as an alternative to operation count
2008-12-21 17:16:09 +01:00
Igor Bukanov
6df56327b7
bug 458099 - DOMOperationCallback can get a JSContext with no global object. r=peterv sr=mrbkap
2008-12-14 22:40:10 -08:00
David Mandelin
0952a00f72
Bug 463535: compile regexps to native lazily, r=gal
2008-11-21 17:54:53 -08:00
Robert Sayre
03d49a666b
Merge mozilla-central to tracemonkey.
2008-11-04 02:05:05 -05:00
Blake Kaplan
dab238daea
Bug 462910 - Add a JS_ValueToSource API. r=brendan
2008-11-03 14:28:36 -08:00
Jim Blandy
216f4ef465
Bug 97954: Record configuration details in an installable header. r=bsmedberg
...
Have js/src/configure create a header file, js-config.h, that records
configure-controlled options that affect the SpiderMonkey API, like
'--enable-threadsafe'. js-config.h is namespace-clean, so it can be
installed with jsapi.h.
This means that clients can configure SpiderMonkey however they like,
and then simply #include "jsapi.h" and have everything work; they
don't have to remember to match their own compiler -D flags with those
SpiderMonkey's configure script chose. For example, mozilla-config.h
needn't concern itself with JS_THREADSAFE.
It seems to me this could also be done by having js-config --cflags
print -D options. The approach taken here seems a bit more robust: if
you can find jsapi.h at all, then you know you're getting the right
settings.
2008-10-29 08:29:37 -07:00
Aristid Breitkreuz
661d3c51b2
Bug 461163 - No public API for OBJ_GET_PROPERTY or the JavaScript [] operator (and similar functions). r=brendan.
2008-10-24 12:09:09 -05:00
Blake Kaplan
54cdbe81ec
Merge mozilla-central -> tracemonkey
2008-10-13 11:05:05 -07:00
Jason Orendorff
a27d101dab
Bug 458735 - Improve internal API for traceable natives (r=brendan, nanojit r=edwsmith)
2008-10-08 17:08:33 -05:00
Robert Sayre
9f7138d61c
Bug 459065. JSON space patrol. r=gal
2008-10-08 13:31:07 -04:00
Robert Sayre
690f7346b8
Bug 408838. Native JSON. r/sr=shaver
2008-10-06 16:54:12 -04:00
Robert Sayre
c59514f66e
Bug 408838 - DOM binding for native JSON. r+sr=shaver
2008-10-01 02:13:58 -04:00
Reed Loden
a4f6f0e831
Back out Robert Sayre's patch from bug 408838 due to test failures (changeset 2fe3cb0c9f7c).
2008-10-01 03:22:30 -05:00
Jason Orendorff
c35bfc3682
Bug 389034 - JS_SetProperty() ends up resolving w/o JSRESOLVE_ASSIGNING (r=brendan, sr=bzbarsky)
2008-09-25 11:13:31 -05:00
Ben Turner
c6eb5d4c06
Properly initialized mSaveDepth in JSAutoSuspendRequest, r=sayrer.
2008-09-08 15:09:41 -07:00
Arpad Borsos
9b6f558fee
Bug 398946 - Remove JS_STATIC_DLL_CALLBACK and JS_DLL_CALLBACK from the tree; r=(benjamin + bent.mozilla)
2008-09-07 00:21:43 +02:00
Ben Turner
1e5c70827f
Bug 451729 - " Allow runtime's security callbacks to be overridden by a context". r=brendan.
2008-09-05 16:24:53 -07:00
Brendan Eich
eaf4254c15
Merge from mozilla-central.
2008-08-08 18:58:04 -07:00
Igor Bukanov
b16852c1cd
bug 412296 - removal of minarg support for fast native
2008-08-08 18:02:50 +02:00
Graydon Hoare
aaf41f8ee5
Bug 447713, remove the import/export functionality from spidermonkey, r=brendan
2008-08-06 17:34:58 -07:00
Brendan Eich
a8c6046d8c
Avoid JSOP_POPV in global scripts from load(), etc.
2008-07-26 01:23:12 +02:00
shaver@mozilla.org
8a97552a28
merge (mostly, doesn't build)
2008-07-22 23:58:43 -04:00
Ben Turner
b9aab16257
Bug 443870 - Add JSAutoSuspendRequest to match JSAutoRequest
...
r=brendan
2008-07-17 12:37:32 -04:00
Mike Hommey
35ed02d3ae
Bug 398810 - "Remove MOZILLA_1_8_BRANCH ifdefs from core on trunk" [r=sicking r=brendan r=bsmedberg]
2008-07-12 17:26:52 -05:00
Andreas Gal
ea9279b6d0
Sync with mozilla-central.
2008-07-03 21:45:09 -07:00
Andreas Gal
0c5757a21f
Add a new option -j to enable the JIT. The default is off so we can easily benchmark the overhead without the tracer.
2008-06-27 00:22:53 -08:00
Brendan Eich
2f95757906
Igor's fix for bug 432881, r=me.
2008-05-23 19:14:05 -07:00
Igor Bukanov
f1d02b2322
[Bug 442242] SM: fixing INT_FITS_IN_JSVAL on 64 bit platforms
2008-06-30 18:36:59 +02:00
Igor Bukanov
d24b2f9846
[Bug 432881] SM: JSVAL_VOID as a pseudo-boolean. r=brendan
2008-06-25 11:43:02 +02:00
Jason Orendorff
0a6388d819
Backed out changeset 79c0748ff2ac.
...
Assertion failure: !JSDOUBLE_IS_INT(d, i) || !INT_FITS_IN_JSVAL(i), at /builds/moz2_slave/mozilla-central-macosx-debug/build/js/src/jsapi.cpp:1839
2008-06-24 15:55:15 -05:00
Jason Orendorff
4f34d4b1bb
Bug 435288 - Deprecate JS_NewDouble and JS_NewDoubleValue, add correctness assertions (r=brendan)
2008-06-24 14:42:42 -05:00
jwalden@mit.edu
04e96f253b
Bug 416636 - Remove JSCLASS_FIXED_BINDING; the code that was to use it was removed, and it just clutters the API. r=brendan, a=schrep
2008-03-18 19:47:40 -07:00
igor@mir2.org
bf88fe6798
bug=422348 r,a1.9=shaver proper overflow error reporting
2008-03-12 16:07:47 -07:00
brendan@mozilla.org
4f4cb9e28b
Unregress perf in wake of 418069 (420426, r=mrbkap, a=mconnor).
2008-03-01 14:15:21 -08:00
reed@reedloden.com
9f08bac7ce
Bug 412985 - "Provide stubs for JS_THREADSAFE APIs in non-JS_THREADSAFE builds" [p=jorendorff@mozilla.com (Jason Orendorff) r+a1.9=brendan]
2008-02-20 03:22:06 -08:00
brendan@mozilla.org
080383a8f8
Lazy ComputeGlobalThis required now in fast native implementations (417893, r=mrbkap).
2008-02-17 16:12:33 -08:00
brendan@mozilla.org
dfd7f0a7b4
Optimize wrapper creation via JS_NewObjectWithGivenProto, and avoid cycle-check overhead in JS_Set{Prototype,Parent} (408871, r=mrbkap).
2008-02-13 21:10:42 -08:00
brendan@mozilla.org
23c36b84f4
Return of the property cache (365851, r=shaver).
2008-02-07 15:18:45 -08:00
reed@reedloden.com
ffc995d036
Bug 412985 - "Provide stubs for JS_THREADSAFE APIs in non-JS_THREADSAFE builds" [p=jorendorff@mozilla.com (Jason Orendorff) r+a1.9=brendan]
2008-02-06 13:33:44 -08:00
crowder@fiverocks.com
52337e9048
Bug 408113: allocate stackPools less often, r=brendan, a=blocking1.9 (schrep)
2008-01-29 18:11:30 -08:00
igor@mir2.org
7bc03fee82
Bug 409109: using the new operation counting JS API for monitoring long-running scripts. r=brendan,jst
2008-01-10 07:39:02 -08:00
igor@mir2.org
1a974d67e5
Bug 409109: backing the checking as the tree was closed.
2008-01-09 07:31:13 -08:00
igor@mir2.org
f8145c5e61
Bug 409109: using the new operation counting JS API for monitoring long-running scripts. r=brendan,jst
2008-01-09 07:20:39 -08:00