Commit Graph

251 Commits

Author SHA1 Message Date
Robert Sayre
8be5b171b9 Backed out changeset c03ebf340688. Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff). 2009-12-01 09:56:16 -05:00
Brendan Eich
c731045c51 Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff). 2009-11-20 16:14:42 -08:00
Jason Orendorff
3f11018c72 Bug 519719 - TM: crash [@ JS_GetFrameThis] - SynthesizeFrame passes partly-uninitialized JSStackFrame to callHook. r=mrbkap. 2009-11-13 11:04:23 -06:00
Jim Blandy
34a27f0c88 Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
Jim Blandy
ae0ff5874f Bug 514585: Remove macro wrappers for js_NewPrinter and JS_InitArenaPool. r=igor
These macros were intended to help avoid passing unused parameters
when JS_ARENAMETER is not defined, but they're not worth the trouble.
The unused parameter doesn't elicit warnings, and the performance
impact of passing the unneeded argument is negligible.

This also removes support for JS_ARENA_CONST_ALIGN_MASK, which is not
used.
2009-11-18 13:33:53 -08:00
Jason Orendorff
c26c16cb0c Bug 528414 - JS_IsRunning can be wrong. r=brendan.
--HG--
extra : rebase_source : 4fca5efd5f558c1b64b0e86580d2c42af7e61e34
2009-11-13 09:24:12 -06:00
David Mandelin
5ee0760ca7 Bug 519363 debugging followup: strip diagnostic instrumentation, r=lw 2009-11-09 16:57:47 -08:00
Jim Blandy
b76416cc57 Bug 514585: Move 'grouped' to explicit param of JS_NEW_PRINTER. r=igor
Make all the JSPrinter status bits explicit flags to JS_NEW_PRINTER.
Only in public-facing functions like JS_DecompileFunction should we be
peeling bits out of indent values and turning them into flags;
internally, we can change interfaces to make more sense.

This is preparation for adding another flag to JS_NEW_PRINTER.
2009-11-05 14:34:39 -08:00
Robert Sayre
e08b99cf18 bustage fix 2009-10-29 11:48:18 -07:00
Igor Bukanov
0d38a472cc bug 524346 - using jsval, not jsdouble *, for nan and +-oo. r=brendan 2009-10-28 14:57:31 +03:00
David Mandelin
6378284cae Backed out changeset 723a2622ad4a: tracemonkey tinderbox build failures 2009-10-27 17:46:09 -07:00
Jim Blandy
48cec69361 Bug 514585: Move 'grouped' to explicit param of JS_NEW_PRINTER. r=igor
Make all the JSPrinter status bits explicit flags to JS_NEW_PRINTER.
Only in public-facing functions like JS_DecompileFunction should we be
peeling bits out of indent values and turning them into flags;
internally, we can change interfaces to make more sense.

This is preparation for adding another flag to JS_NEW_PRINTER.
2009-10-27 16:38:09 -07:00
Jim Blandy
fb80546171 Bug 523139: Add an ECMAScript 5 value to the JSVersion type. r=brendan 2009-10-27 14:17:01 -07:00
Igor Bukanov
8785797ba7 Backed out changeset 14c76164f4c2 - patch for bug 524346 caused test fails 2009-10-27 19:21:47 +03:00
Igor Bukanov
ed4f6edf7f bug 524346 - using jsval, not jsdouble *, for nan and +-oo. r=brendan 2009-10-27 13:26:57 +03:00
Brendan Eich
02c0dc3df2 Factor jsscopeinlines.h out, clean up #include order (524267, r=gal/jorendorff). 2009-10-26 13:39:39 -07:00
Jason Orendorff
326aa1d148 Bug 522590 - FF 3.7 crash on startup with chromebug. r=brendan. 2009-10-21 15:27:35 -05:00
Andreas Gal
09041f31f7 Explicitly call destructor instead of delete (follow-up for 521859, r=dvander). 2009-10-20 20:11:32 -07:00
Andreas Gal
ebb3f8e3e1 Replace JSPtrTable with js::Vector (523463, r=luke). 2009-10-20 15:08:28 -07:00
Brendan Eich
9f9a05b0c3 Don't build a stack frame to execute empty scripts (516827, r=igor). 2009-10-18 17:41:24 -07:00
Igor Bukanov
d615c5e729 bug 521390 - avoid checking for malloc memory pressure when allocating GC things from free lists. r=brendan 2009-10-18 19:40:19 +04:00
Igor Bukanov
af1a5810f7 bug 505315 - constructing GC free lists during finalization. r=brendan 2009-10-16 10:10:54 +04:00
Igor Bukanov
9212853abd Backed out changeset 487b81c753c0 - landing of bug 505315 caused talos crashes across platforms. 2009-10-15 13:53:40 +04:00
Igor Bukanov
0d37930589 bug 505315 - constructing GC free lists during finalization. r=brendan 2009-10-15 11:41:08 +04:00
David Mandelin
dbad0b0f5d Bug 519363 - topcrash [@ js_Interpret], change some code to aid in debugging efforts. r=brendan
--HG--
extra : rebase_source : 51c16011f74f154bee8d124b2dedfd5f2f5a5a62
2009-10-07 17:30:34 -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
Igor Bukanov
79b9eab8cb bug 520046 - eliminating "uintN flags" parameter from js_NewSomeGCThing functions. r=brendan 2009-10-02 12:21:19 +04:00
Igor Bukanov
3fa86d4157 Backed out changeset 19b4c1cacdb8 - everything related to bug 517199. 2009-10-01 16:10:42 +04:00
Igor Bukanov
fed9242625 bug 517199 - typed GC free lsists - newborn refactoring. r=brendan 2009-10-01 08:13:04 +04:00
Igor Bukanov
27c2d57074 bug 517749 - removal of weakRoots.newborn = null. r=mrbkap 2009-09-25 16:30:11 +04:00
David Mandelin
6b652df63e Bug 516458 followup: adding the terminator to improve accuracy for short strings, rs=brendan 2009-09-21 17:00:25 -07:00
David Mandelin
328ad0c965 Bug 514071: count external strings as malloc'd memory for JS GC scheduling, r=igor
--HG--
extra : rebase_source : b2888a1705c49deabaf4aeac9be23c4ed06132d7
2009-09-21 11:01:09 -07:00
Igor Bukanov
8da9fad53a bug 512046 - avoid maintaing a per-runtime iterator list. r=brendan 2009-09-19 13:40:43 +04:00
Blake Kaplan
afba815d74 Merge tracemonkey to mozilla-central. 2009-09-16 16:15:59 -07:00
Brendan Eich
eaabbf253c Bug 516075 - Move shape into JSObjectMap from JSScope, const-ipate and use LIR_ldc* to get to it (r=jorendorff). 2009-09-14 20:29:46 -04:00
Luke Wagner
854c0294df Bug 412571 - replace thisp with thisv (r=brendan,mrbkap) 2009-09-11 19:07:00 -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
Ben Newman
e5a024bacf Bug 500644 - PAC: crash when using PAC-based manual proxy config and the attached testcase. r=mrbkap sr=brendan
--HG--
extra : rebase_source : 68dbf79d8e257f3915b817723ca51deb840e4298
2009-08-27 18:07:44 -07:00
Luke Wagner
3cf8a59c01 Bug 503952 - Use JSTempVector in scanner/parser; remove JSStringBuffer (r=brendan) 2009-08-14 16:10:59 -07:00
David Mandelin
6e0758faf2 Trailing whitespace cleanup, no_r=me 2009-08-20 15:21:14 -07:00
Andreas Gal
c09eb5d1a9 Remove debug printfs (no bug). 2009-08-19 15:29:56 -07:00
Andreas Gal
81c28c4fe8 Notify JS_CommenceRuntimeShutdown from CycleCollector (511522, r=graydon). 2009-08-19 15:13:02 -07:00
Luke Wagner
1f36a4f0c2 Bug 503952 - Use JSTempVector in jsstr.cpp (r=waldo)
--HG--
extra : rebase_source : ac955b5d784ca8fc9a61129e580c2751beb4109f
2009-08-14 16:10:59 -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
Luke Wagner
94a2c2cadd Bug 503952 - replace JSStringBuffer with JSTempVector in json.cpp 2009-08-13 17:22:55 -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
9dc4a54a5d Bug 498488 - Change some JSObject macros to methods. r=Waldo. 2009-08-11 15:05:44 -05:00