Commit Graph

28211 Commits

Author SHA1 Message Date
Jim Blandy
56af1e088d Bug 488018: Propagate errors from tracer to interpreter. r=igor
Rename JSMonitorRecordingStatus to JSRecordingStatus.  The JSMRS_
prefix becomes JSRS_, accordingly.

Make 'record_' functions return JSRecordingStatus, not bool.  'false'
becomes 'JSRS_STOP'; 'true' becomes 'JSRS_CONTINUE'.  Since subsequent
patches will begin to use more than two values (the next assigns
meaning to JSRS_IMACRO), take care to propagate values to callers
accurately.

Define a new recording status, JSRS_ERROR.  Return it from recording
functions when appropriate.  Check for it at appropriate bottlenecks
in tracer and interpreter.

ABORT_TRACE becomes one of:
. ABORT_TRACE, for when we're simply aborting the recording process
. ABORT_TRACE_ERROR, for aborting due to an error
. ABORT_TRACE_CV, for producing an error message and returning something
  other than JSRS_STOP --- some contexts require boolean values.

Conditionally provide an alternative definition for the
JSRecordingStatus type that cannot be converted to 'bool', so that we
can use the C++ compiler to catch improperly converted code.

Use recording function return value for imacro invocation.  Eliminate
the JSFRAME_IMACRO_START frame flag.  Instead, return JSRS_IMACRO
directly from recording functions.
2009-04-30 17:30:46 -07:00
Andreas Gal
cafa156d52 We don't cache access to shared properties in the property cache (490666, r=igor,brendan). 2009-04-30 15:52:13 -07:00
Brendan Eich
e9db6fcb64 Bug 375250 - Reject (JSON is fixed now) E4X masquerading as JS source (r=igor/mrbkap). 2009-04-29 16:46:43 -07:00
Igor Bukanov
b8405f1171 bug 487846 - optimizing shape prediction for set opcodes. r=brendan 2009-04-29 07:07:21 -07:00
Andreas Gal
776395aee0 Eliminate test_property_cache_direct_hit (490370, r=jorendorff). 2009-04-27 16:01:52 -07:00
Brendan Eich
040f6baa77 Bug 490339 - Unexpected ReferenceError when using "new Function()" (r=mrbkap). 2009-04-27 14:43:49 -07:00
Graydon Hoare
9188f47f3a Backout a seemingly problematic line of cset d8c2060b0f9b. 2009-04-24 23:13:27 -07:00
Graydon Hoare
bb4177dccd Bug 490044 - TM: Add deep-bailing write barrier to global shape change code, r=brendan. 2009-04-24 17:47:32 -07:00
Andreas Gal
e58ef54027 js_NewInstance locks ctor on trace (490092, r=brendan). 2009-04-24 19:41:36 -07:00
Andreas Gal
214ea26d91 Compilation fix for 489899. 2009-04-24 16:35:42 -07:00
Andreas Gal
a89bbaad23 Stay on trace when reading holes from dense arrays (489899, r=brendan). 2009-04-24 16:28:21 -07:00
Graydon Hoare
3471a48ea3 Bug 470964 - Simulate CFG in imacro assembler and decompiler, r=brendan. 2009-04-24 09:07:49 -07:00
Graydon Hoare
76accb1b4f Bug 488967 - TM: Add global size check to global shape check, r=gal. 2009-04-23 20:46:40 -07:00
Jeff Walden
d19e88a97f Bug 488989 - Don't go slow if we don't have to. r=jorendorff 2009-04-23 13:34:18 -07:00
Brendan Eich
52153f3522 Bug 488842 - Local Scope Variables are not displayed by default (r=mrbkap). 2009-04-22 23:22:42 -07:00
Andreas Gal
92ed04cddc Remove dead code inside #if 0 from JSOP_GENERATOR (cleanup, no bug). 2009-04-22 17:58:51 -07:00
Andreas Gal
9471e12092 Fix burning PowerPC builds. 2009-04-22 17:16:26 -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
b554a4c785 Bug 489552 - Earth Day Recycling for Fun Kids - Assertion failure: RecycleFuncNameKids, at ../jsparse.cpp:444 (r=mrbkap). 2009-04-22 15:30:36 -07:00
Jason Orendorff
4ea515fa8b Bug 488874 - Change tm.onTrace to tm.tracecx. r=brendan.
--HG--
extra : rebase_source : bf683bee5e518cf5bfea8113c17685b8301d72c9
2009-04-22 15:07:55 -05:00
Andreas Gal
b3d5ba6b16 JSOP_BINDNAME wrongful abort due to fp->fun instead of fp->callee usage (489644, r=brendan). 2009-04-22 12:52:35 -07:00
Igor Bukanov
e4bc4e81cb bug 488995 - fixing error reporting for getter-only properties. r=mrbkap sr=jst 2009-04-22 12:39:08 +02:00
Arpad Borsos
ebaa2ed732 Bug 474369 - get rid of nsVoidArray, rdf part; r+sr=bsmedberg 2009-04-22 10:43:15 +02:00
Olli Pettay
fc5f3a87aa backout bug484775 2009-05-07 10:19:06 +03:00
Olli Pettay
f01fca6fe2 Bug 424300, r+sr=peterv
--HG--
extra : rebase_source : 56e3b2e745fa0d648c7c5022ad8c2b6d4d98284a
2009-05-07 09:31:56 +03:00
Olli Pettay
d9072725ae Bug 484775 - DocumentFragments and Attribute nodes should expose nsIDOMEventTarget to JS, r+sr=peterv
--HG--
extra : rebase_source : 9c6f8f9d3cd1283adb7b69b93440f7da01924326
2009-05-07 09:31:04 +03:00
Olli Pettay
6fa0681aee Bug 489270 - Crash [@ GetPreviousWSNode], r+sr=peterv
--HG--
extra : rebase_source : d219264be4d548ce6063c9fbd95897188219731f
2009-05-07 09:27:31 +03:00
Masayuki Nakano
1ff97425c2 fix bustage on WinCE (bug 491438) r=stuart 2009-05-07 15:53:33 +09:00
Leon Sha<leon.sha@sun.com>
b8845d61de Bug 488639 - SPARC jit: testIntOverflow, testIntUnderflow failed. r=gal. 2009-04-22 16:06:45 +08:00
Brendan Eich
50b885546d Shoot me now (489089). 2009-04-21 22:50:51 -07:00
jimb
b861fed2d3 Bug 469237: Only trace where BINDNAME will choose the global object. 2009-04-21 22:42:43 -07:00
Andreas Gal
c5c7bd2f6c Trace getting String.length (484332, r=brendan). 2009-04-21 18:56:24 -07:00
Brendan Eich
b2edd9eb0c Bug 489079 - Google Calendars disappear with latest trunk of Shredder [Error: Error parsing XML streamReferenceError: gCal is not defined] (r=mrbkap). 2009-04-21 18:20:21 -07:00
Brendan Eich
a27f8153f6 Oh for crying out loud (489089). 2009-04-21 18:09:44 -07:00
Brendan Eich
0aadb94a7b Bug 489089 - JSON.parse is way slower than it needs to be (r=igor/sayrer). 2009-04-21 12:09:27 -07:00
Brendan Eich
af27492080 Bug 488963 - "Assertion failure: cg->lexdeps.lookup(atom), at ../jsemit.cpp" (tachyonal r=mrbkap). 2009-04-20 18:46:46 -07:00
jorendorff
e1b8077e65 Leaving outermost request should js_LeaveTrace (480301, r=brendan). 2009-04-20 18:22:00 -07:00
Brendan Eich
7f4de719f8 Fix dangling JS_PROPERTY_CACHE_METERING bits broken by patch for bug 489171. 2009-04-20 17:32:36 -07:00
igor
48c3925a9a js_SetPropertyHelper does not null *entryp for read-only properties (489171, r=gal,brendan). 2009-04-20 17:00:59 -07:00
Brendan Eich
be23b17c5d Bug 488690 - "Assertion failure: dn->pn_defn, at ../jsemit.cpp" (r=mrbkap). 2009-04-20 15:51:27 -07:00
Blake Kaplan
3224ee7ee8 Bug 488843 - Restore missing check for un-optimiziable frames. r=brendan 2009-04-20 15:40:58 -07:00
Jeff Walden
ac7bbee9e5 Bug 489124 - Remove an unnecessary guard, specialize tracing of typeof for functions now that JSVAL_TFUN exists. r=gal 2009-04-20 12:25:43 -07:00
Blake Kaplan
f3d1280a04 Bug 488925 - Check for string indexes in the API entry points. r=brendan 2009-04-20 12:21:44 -07:00
Andreas Gal
b3ec5b0f4d Abort trace if the global object gets wrapped and we already hold a reference to the unwrapped object (489007, r=brendan). 2009-04-20 11:30:32 -07:00
Andreas Gal
26a670957d Remove bogus assert (489040, r=brendan). 2009-04-20 09:52:56 -07:00
Igor Bukanov
4ad2e764fa bug 488414 - js_GenerateShape just schedules, not run, the GC. r=brendan,gal 2009-04-20 12:10:29 +02:00
Igor Bukanov
fd49b19773 Backed out changeset f4662701526b (bug 488414) to fix !JS_THREADSAFE compilation errors 2009-04-20 11:59:36 +02:00
Igor Bukanov
56547f8087 bug 488414 - js_GenerateShape just schedules, not run, the GC. r=brendan,gal 2009-04-20 10:17:28 +02:00
Brad Lassey
8080f6b880 bug 481914 - dialogs shouldn't be larger than available screen space. Listen to soft keyboad notifications r=neil 2009-04-20 02:17:48 -04:00
Neil
04547712e1 bug 481914 - dialogs shouldn't be larger than available screen space r=blassey 2009-05-05 15:03:27 -04:00