Commit Graph

16584 Commits

Author SHA1 Message Date
Blake Kaplan
96025ac3bc Bug 532124 - Set aside the frame chain when wrapping for chrome so we don't get confused by any content code on the stack. r=jst 2009-12-11 10:33:32 -08:00
Blake Kaplan
4af15abf01 Bug 532469 - Don't allow deleting arbitrary properties. r=jst 2009-10-20 17:21:42 -07:00
Blake Kaplan
8f5d1a781e Bug 535079 - Get the XPCNativeWrapper class without compiling and running JS code. r=jst sr=sicking 2009-12-16 16:51:06 -08:00
Blake Kaplan
2e37e51b5b Bug 522621 - Use namespaces in the wrapper code and generally clean up the internal interfaces between the wrappers. r=jst 2009-10-20 17:21:39 -07:00
Benjamin Smedberg
44e1ce7702 Merge plugin changes from electrolysis to mozilla-central. 2009-12-16 19:06:54 -05:00
Benjamin Smedberg
33ea815453 Merge mozilla-central to electrolysis. 2009-12-16 19:02:20 -05:00
Benjamin Smedberg
2f6ab7ed7d Mark the two tests random on Windows which are causing problems, bug 524732 (reverting http://hg.mozilla.org/mozilla-central/rev/9f7c1fa9b2de to random-if instead of fails-if) 2009-12-16 16:14:22 -05:00
Benjamin Smedberg
8051ceb908 Merge only plugin changes from e10s to mozilla-central. 2009-12-16 09:19:07 -05:00
Benjamin Smedberg
b51dfb8d55 Merge mozilla-central into electrolysis 2009-12-16 08:38:42 -05:00
Dietrich Ayala
1f7f806825 Bug 532563 - XPCOMUtils has anonymous functions (r=sdwilsh) 2009-12-15 23:25:38 -08:00
Benjamin Smedberg
c827f3a584 Electrolysis-plugin-only bookkeeping commit. 2009-12-15 20:33:05 -05:00
Benjamin Smedberg
83b97480d2 Merge mozilla-central into electrolysis. 2009-12-15 20:31:04 -05:00
Ben Turner
9ee0d71899 Bug 534308 - 'Request needed for jsshell'. r=jorendorff. 2009-12-15 16:07:04 -08:00
Dan Witte
cead3c8fea Bug 518621 - JS_ReportErrorNumber ignores exception type for user-generated messages. r=mrbkap 2009-12-15 14:20:48 -08:00
Benjamin Smedberg
f2b62bb114 Merge mozilla-central into electrolysis. 2009-12-14 21:27:17 -05:00
Bob Clary
8417d2efdd bug 524732 - reenable js1_5/Regress/regress-344804.js | js1_5/Scope/regress-181834.js after electrolysis landing, r=bsmedberg 2009-12-14 16:31:53 -05:00
Benjamin Smedberg
5c177ecd89 End the electrolysis-plugins-only branch: merge in the remaining changes from electrolysis head in preparation for pushing to mozilla-central. 2009-12-14 09:56:08 -05:00
Benjamin Smedberg
a54e6acfd8 Merge mozilla-central into electrolysis. 2009-12-14 08:01:18 -05:00
Benjamin Smedberg
636d74b114 Merge mozilla-central into electrolysis. One code change was required: in nsDocShell::CreateStaticClone I replaced EnsureDocShell with MaybeCreateDocShell. 2009-12-12 13:38:25 -05:00
Boris Zbarsky
2a82462290 Bug 533636. Speed up IsSecurityWrapper. r=mrbkap 2009-12-11 22:36:35 -08:00
Benjamin Smedberg
a17ea948ee Merge additional changes from electrolysis and mozilla-central into the electrolysis-plugins-only tracking branch.
--HG--
branch : electrolysis-plugins-only
2009-12-04 11:42:28 -05:00
Benjamin Smedberg
4e352d7aeb Merge mozilla-central into electrolysis 2009-12-04 11:28:50 -05:00
Blake Kaplan
bd7ad3a43f Bug 532259 - Protect against a null script. r=jst a=sayrer
--HG--
extra : rebase_source : 926c94ac7dca681c195e4bd013db0331e79f78ca
2009-12-03 14:52:56 -08:00
Blake Kaplan
fe691b1962 Bug 531222 - Don't access the SSM off the main thread. r=bent sr+a=jst 2009-12-02 12:06:18 -08:00
Benjamin Smedberg
e7c8d5d2a1 Straight revert of xpcshell to its mozilla-central state.
--HG--
branch : electrolysis-plugins-only
2009-11-30 14:17:24 -05:00
Benjamin Smedberg
e98d1daf07 Merge mozilla-central into Electrolysis 2009-11-30 12:59:43 -05:00
Boris Zbarsky
76560b7f4a Bug 534676. Fix object hashtable lifetime management. r=timeless 2009-12-14 21:31:59 -08:00
Benjamin Smedberg
e53a7195d5 Merge mozilla-central into Electrolysis. 2009-11-24 10:06:03 -05:00
Brendan Eich
3fcf83f1f9 Undo hackaround for bug 529837. 2009-11-24 15:42:03 -08:00
Brendan Eich
28e780dc8d Undo hackaround for bug 529837. 2009-11-24 15:17:16 -08:00
Daniel Brooks
fdc5ea52b6 revert an unintentional change from revision 0ccbfef948d5 2009-11-24 05:58:50 -06:00
Ted Mielczarek
2dae1cece4 bug 530093 - allow building with VC10. configure+build system changes. r=bsmedberg 2009-11-23 10:20:21 -05:00
Ted Mielczarek
12d7421c97 bug 531135 - rewrite build-list.pl in Python to fix race conditions with locking. r=bsmedberg 2009-12-14 06:55:40 -05:00
Benjamin Smedberg
d74c6776f3 Merge mozilla-central into electrolysis. 2009-11-19 12:41:46 -05:00
Brendan Eich
4e545f14ca Disabling the joined method optimization from bug 524826 again (529837, talked about it with dbaron and sayrer). 2009-11-19 09:21:54 -08:00
Robert Sayre
f3126269b1 Merge. 2009-11-19 01:23:03 +01:00
Robert Sayre
9a8e17bf6f Merge mozilla-central to tracemonkey. 2009-11-19 01:21:34 +01:00
Brendan Eich
6bb8477127 Fix uninitialized var bug (529679, r=jorendorff). 2009-11-18 15:56:34 -08:00
Brendan Eich
23da431b7a Fix method barrier not to brand, period (branding withou reshaping is worse, branding correctly is unnecessary; 524826, r=jorendorff). 2009-11-18 13:47:06 -08:00
Jason Orendorff
4d092db314 Bug 505523 - Property cache can skip JSClass::resolve or JSClass::addProperty hooks. r=graydon, r=brendan.
--HG--
extra : rebase_source : a77b0e81203010aabe07b92b639762dce83200c0
2009-11-18 14:29:58 -06: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
Brendan Eich
0356dc2712 Fix method barrier not to brand, period (branding without reshaping is worse, branding correctly is unnecessary; 524826, r=jorendorff). 2009-11-18 13:41:40 -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
Jim Blandy
395529f458 Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
Jim Blandy
3ade5c55b3 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
David Anderson
b19869e407 Fixed string flag bugs on VC++ x64 (bug 512866, r=waldo). 2009-11-18 13:24:24 -05:00
David Anderson
a7ee7473f0 Fixed accidentally trying to trace compile a recursive generator (bug 529130, r=gal). 2009-11-18 12:41:51 -05:00
Blake Kaplan
efad2dae5f Bug 528126 - Ensure the GC can see the new object. r=brendan 2009-11-18 15:54:27 +01:00
Blake Kaplan
eb3a807c59 Bug 520572 - Test watch() on an outer object. r=brendan/bc
--HG--
extra : rebase_source : e675a97028a914de51f39962b6865e2bf59f80fd
2009-11-18 12:58:28 +01:00
Brendan Eich
94fceb75d4 Fix js_FindDuplicateFormal to crack the fun->u.i.names union correctly, and spruce it up with C++ (532041, r=jimb). 2009-12-01 14:48:05 -08:00