Commit Graph

2380 Commits

Author SHA1 Message Date
Blake Kaplan
e22778453f Bug 469621 - Protect the new scope object from garbage collection. r=crowder 2008-12-15 16:42:40 -08:00
Brian Crowder
b64d9af643 Bug 446026 - restore utility of eval(s, o). r=mrbkap 2008-12-12 23:47:23 -08:00
Robert Sayre
cf2922c1f4 Backed out changeset f682453c06d0. Failing scriptaculous unit tests, doesn't build on windows or mac ppc. 2008-12-11 20:43:32 -08:00
Brendan Eich
66a6ff0ab1 Bug 465460 - TM: valueOf ignored on third iteration of loop (r=gal). 2008-12-11 17:50:56 -08:00
Benjamin Smedberg
d912ac0702 Merge mozilla-central into tracemonkey, specifically to pick up bug 467579. 2008-12-09 21:37:35 -05:00
Blake Kaplan
bc0205a5cc Bug 468581 - Use a better function to compute principals. r=brendan 2008-12-19 15:47:20 -08:00
Brendan Eich
7294cf7d01 Back out patch for bug 469625, it mysteriously busts stuff. 2008-12-19 01:38:09 -08:00
Brendan Eich
3cbadecc40 Bug 449657 - JS_SealObject fails on Array objects (r=mrbkap, a=sayrer). 2008-12-07 00:03:12 -08:00
Blake Kaplan
3a4cac883d Bug 456284 - JSExtendedClass requires an equality hook. r=crowder, a191=beltzner. 2008-11-28 11:06:30 +01:00
Igor Bukanov
468c6ab271 bug 461158, r=brendan a191=blocker 2008-11-26 20:59:47 -05:00
Brendan Eich
1a344ffefb Bug 456511 - (imacros) TM: Make conversion work on arbitrary JSObjects (r=gal). 2008-11-13 00:30:20 -08:00
Andreas Gal
fd9de39309 Backed out changeset a40f2117bcc0 2008-11-12 17:39:48 -08:00
Brendan
7b8d11c0f0 Add imacros to support conversion of arbitrary JSObjects (456511, r=gal). 2008-11-12 16:55:45 -08:00
Andreas Gal
0adc66c64c Resolve atom/str naming conflicts in the source for narcissus, make narcissus extensions compile again (462436, r=brendan). 2008-10-30 15:38:10 -07:00
Brendan Eich
4a4c3d3d3a Re-land patch for bug 458851 now that latent bug it uncovered (not filed; see hg log) is fixed. 2008-10-28 14:04:29 -07:00
Jason Orendorff
30aac588d8 Backed out changeset d4fe79372140 (bug 458851) due to persistent orange on TraceMonkey tinderboxes. 2008-10-28 10:49:06 -07:00
Brendan Eich
7e901e72c3 Bug 458851 - TM: for-in loops skip every other value in certain cases (r=gal/mrbkap). 2008-10-27 22:30:52 -07:00
Brendan Eich
eb0f0aad56 Bug 461248 - Remove JSOP_RESUME (r=gal/jorendorff). 2008-10-24 12:34:08 -07:00
Jason Orendorff
e8b38260e7 Bug 461492 - TM: INT32 can't be used as return type for traceable native that actually returns an int. r=gal. 2008-10-24 12:49:54 -05:00
Jason Orendorff
aaadf0c55c Bug 460865 - Read barrier for cx->fp. r=mrbkap, r=dmandelin. 2008-12-09 10:38:32 -06:00
Jason Orendorff
453aca28d5 Bug 460157 - Yet more macros for defining builtins. r=brendan 2008-10-21 17:58:06 -05:00
Jason Orendorff
e74beaa953 Bug 460501 - Round-trip change due to "&&" constant-folding leaving extra parens. r=brendan. 2008-10-21 13:35:22 -05:00
Jason Orendorff
21577c9a4c Bug 460117 - TM: Inconsistent results from hasOwnProperty with JIT enabled. r=brendan. 2008-10-21 13:19:22 -05:00
Robert Sayre
1cfb0ed77b Merge m-c to tracemonkey. 2008-12-06 00:54:08 -08:00
Jeff Walden
b54ac541bf Bug 465476 - SpiderMonkey confusion over "-0" and "0" properties of an object. r=brendan 2008-11-21 11:47:35 -08:00
Jason Orendorff
3584746574 Bug 459266 - TM: Allow CALLINFO macros to specify linkage. r=brendan. 2008-10-16 14:24:10 -05:00
Blake Kaplan
9acb48bee2 Merge mozilla-central -> tracemonkey 2008-10-13 11:05:05 -07:00
Jason Orendorff
a1d856231e Bug 458098 - js_DumpObject can't handle objects that share proto's scope (r=crowder) 2008-10-09 07:30:21 -05:00
Jason Orendorff
fccf374129 Bug 458735 - Improve internal API for traceable natives (r=brendan, nanojit r=edwsmith) 2008-10-08 17:08:33 -05:00
Brendan Eich
24a9ca408b Bug 457920 - regexp-dna.js and generality want JSOP_GETELEM(dense array, "0") (r=mrbkap/gal). 2008-10-06 22:30:36 -07:00
Andreas Gal
335bea1b62 Merge. 2008-09-30 16:35:52 -07:00
Andreas Gal
e2f74ec2f4 Add a resume point (JSOP_RESUME) immediately following JSOP_CALL (457789, r=mrbkap). 2008-09-29 18:49:40 -07:00
Jason Orendorff
7befe2e614 Bug 456469 - Dead variable pval in js_NativeSet (r=brendan) 2008-09-25 11:29:12 -05:00
Jason Orendorff
45904a4990 Bug 455953 - js_DumpObject debugging function (r=crowder) 2008-09-25 11:29:12 -05:00
Jason Orendorff
02cbda9371 Bug 389034 - JS_SetProperty() ends up resolving w/o JSRESOLVE_ASSIGNING (r=brendan, sr=bzbarsky) 2008-09-25 11:13:31 -05:00
Brendan Eich
a5c7e9132c Avoid needless prototype-shape purges (454035, r=igor). 2008-09-09 11:24:03 -07:00
Taras Glek
ea9b92b1ba bug 453889: Correct prbool misuse in spidermonkey 2008-09-08 13:41:09 -07:00
Taras Glek
c7528a9f01 bug 432917: Replace "must flow through label" comments with statically-checkable macro. r=igor 2008-09-08 10:51:10 -07:00
Igor Bukanov
a7c6d07217 bug 446386 - eliminating compiler pseudo-frames. r=brendan 2008-09-08 11:47:12 +02:00
Arpad Borsos
5c3d798db7 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
0c47c0b9ae Bug 451729 - " Allow runtime's security callbacks to be overridden by a context". r=brendan. 2008-09-05 16:24:53 -07:00
Jim Blandy
d8cc274426 Bug 97954: Give jsconfig.h a better name, and make room for the new js-config.h. r=bsmedberg
We'd like the SpiderMonkey configure script to generate a header file
named js-config.h to hold #definitions chosen at configure time that
affect the SpiderMonkey API, like JS_THREADSAFE.  However, that name
is very similar to that of an existing header file, jsconfig.h.  This
patch renames the existing header file, and updates all references to
it.
2008-09-05 10:19:17 -07:00
Jason Orendorff
a0f9ff7067 Bug 453383 - Confusing comment, bogus indentation in jsobj.cpp (r=mrbkap) 2008-09-03 15:30:13 -05:00
Brendan Eich
9f541e1e76 Kind of an Array initialiser tour-de-force for bug 452878:
1. Split FastNewArray from FastNewObject built-in for greater speed/specialization and further splitting into Array_1str, etc.
2. Add Array_1str, Array_2obj, and Array_3num builtins for benchmarked new Array(...) constructions.
3. Export ARRAY_SET_DENSE_LENGTH and ARRAY_GROWBY via jsarray.h to jstracer.cpp.
4. Tweaked SetArrayElement to make common/best case code be the predicted/prefetched path.
5. js_MakeArraySlow now preserves the pre-slow length in JSSLOT_ARRAY_COUTN as a jsval-tagged int if possible -- this will help the tracer avoid aborting on dense arrays that turned slow but not sparse by addition of a named property.
6. Export js_fun_apply and js_Object from their respective .cpp files, in these cases just to jstracer.cpp via local prototypes (no .h files involved).
7. More INS_CONSTPTR and INS_CONST macrology for better names in trace debug spew.
8. Fix TraceRecorder::test_property_cache to avoid aborting on JSOP_SETNAME that creates a new global, by setting it to undefined so it can be lazily imported. This helps 3d-raytrace.js, which has an unintended global loop control variable in a function.
9. JSTraceableNative loses its premature-deadwood tclasp member (my bad).
10. TraceRecorder::record_JSOP_NEW() handles 'new Object' now along with the 'new Array' variations. I also cut down the copy-paste code from JSOP_CALL's record method to mostly what is needed now.
11. Add KNOWN_NATIVE_DECL macro for concise prototype of library-private js_* native functions, and alphabetized the lists (too long for any other order to be winning).
12. Big honking special case for foo.apply(obj, [str]), which we can generalize as needed. Helps string-tagcloud.js. What's cool is how tracing allows us to rewrite this to foo(str) with this set to obj, eliminating the Function.prototype.apply. This requires some rewriting in JSOP_ENDINIT's record method.
2008-09-01 01:24:58 -07:00
Brendan Eich
923e281f86 Fix upvar decompilation for eval-from-fun case (452441, r=igor). 2008-08-29 00:24:11 -07:00
Blake Kaplan
3fd64e1d4e Bug 452338 - Abort on the weird case where we find a global name on the prototype of the scope chain. r=brendan 2008-08-28 16:37:03 -07:00
Blake Kaplan
8efe5b4edb Bug 452295 - Deal with embeddings that don't use principals. r=brendan 2008-08-27 13:56:34 -07:00
Brendan Eich
ad6f8c6077 Fix script->owner maintenance; also fix warning. 2008-08-21 05:04:20 -07:00
Brendan Eich
3601eb799d Upvar, v0.1 (limited to looking up from eval in a function, to the function's args and vars). 2008-08-21 03:47:33 -07:00
Brendan Eich
ecbb410e55 Defer eval'ed script destruction to next GC; expose js_obj_eval for tracing. 2008-08-20 22:18:42 -07:00