Brendan Eich
5bcc54508f
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
Jim Blandy
35e434274a
Bug 499524: Always check for duplicates when destructuring params are present. r=igor
...
Detect duplicate names in parameter lists that include destructuring
parameters, regardless of whether the duplication becomes before or
after the destructuring. Let strict mode complaints take care of
themselves after the body has been parsed.
In BindDestructuringArg, there should never be an entry in tc->decls
for the given name if the call to js_LookupLocal didn't detect a
duplicate argument, so we can simply assert that tc->decl.lookup
returns NULL, instead of checking it.
In HashLocalName, we can tighten the assertion: both the new and
existing entries must be JSLOCAL_ARG, since we detect all non-ARG
(i.e., destructuring) duplicates early.
2009-11-26 10:23:52 -08:00
Jim Blandy
18f28c0cac
Bug 514580: Forbid duplicate formal parameter names in strict mode code. r=mrbkap
...
Note: this patch changes the JSOPTION_STRICT warning from a TypeError
into a SyntaxError, if JSOPTION_WERROR is also set.
2009-11-19 14:08:02 -08:00
Jim Blandy
34a27f0c88
Bug 514585: Recognize "use strict" directives. r=igor
2009-11-18 13:33:53 -08:00
David Mandelin
354c79f502
Bug 525028 followup: fix build bustage on non-tracing-enabled builds, no_r=me
2009-11-09 16:42:38 -08:00
David Mandelin
f381a3d5ed
Bug 525028: don't set args object properties from trace, r=dvander
2009-11-09 15:36:41 -08:00
David Anderson
ab74b2ff81
Added calleValue()/calleObject() inline helpers to JSStackFrame (bug 512371, r=brendan).
2009-10-26 17:28:56 -07:00
Robert Sayre
dd8b93c5d3
Merge mozilla-central to tracemonkey.
2009-10-26 13:29:48 -04:00
Boris Zbarsky
3aef7b8edb
Bug 507448. Expose the names of the function arguments on jsdIScript. r=timeless,brendan
...
--HG--
rename : content/base/test/Makefile.in => js/jsd/test/Makefile.in
2009-10-26 09:30:40 -04:00
David Anderson
8231c0b9ee
Clear argsobj private on trace (bug 522024, r=dmandelin).
2009-10-22 17:56:46 -07:00
Jeff Walden
58c4037788
Bug 523686 - Kill fun_enumerate, since it's no longer necessary now that bug 514603 is fixt. r=jorendorff
2009-10-21 15:00:51 -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
Brendan Eich
9f9a05b0c3
Don't build a stack frame to execute empty scripts (516827, r=igor).
2009-10-18 17:41:24 -07:00
Jim Blandy
0d6cdd1921
Bug 514585: Use bitfields in JSScript instead of a flag word. r=brendan
...
This is behavior-neutral cleanup in preparation for the real patch.
2009-10-08 10:29:03 -07:00
David Mandelin
6a393c2883
Merge backout of bug 495331 patch
2009-10-05 18:32:06 -07:00
David Mandelin
42af5f9b94
Backed out changeset 9cc88d291fc0
2009-10-05 18:31:10 -07:00
Brendan Eich
d5f11b6d2f
Use 'Is' in noun-phrase-named predicate (518103 followup, r=jorendorff/Waldo).
2009-10-05 16:58:54 -07:00
Brendan Eich
8dbcb884d9
Fix constructor method (foo.bar/foo[baz] initialized from a lambda) invocation to go through the method read barrier (518103, r=jorendorff).
2009-10-05 16:55:21 -07:00
David Mandelin
e7d37eba3d
Bug 495331: trace JSOP_LAMBDA for non-null, non-heavyweight case, r=jorendorff,igor
2009-09-28 13:51:46 -07:00
Igor Bukanov
27c2d57074
bug 517749 - removal of weakRoots.newborn = null. r=mrbkap
2009-09-25 16:30:11 +04:00
David Mandelin
99fb23d064
Bug 511695: Fix JS warnings in MSVC8, r=brendan
2009-09-23 11:16:30 -07:00
David Mandelin
b152e9656d
Bug 517117: don't trace JSOP_ARGCNT if arguments.length has been overridden, r=dvander
...
--HG--
extra : rebase_source : a53403064c533bdc3270408f0d29eeec12970040
2009-09-17 18:13:20 -07:00
David Mandelin
836a74cc80
No bug, fixing tinderbox orange apparently caused by missing OOM check, r=gal in person
2009-09-17 17:44:19 -07:00
Nicholas Nethercote
dc36e0b4cd
Follow-up for bug 516298. r=brendan.
2009-09-14 17:38:48 +10:00
Nicholas Nethercote
79ded264a4
Bug 516298 - TM: fix three compiler warnings. r=brendan.
2009-09-14 14:17:45 +10:00
Brendan Eich
79d774b114
Bug 515815 - TM: Regression on shell test case regress-452498-224.js (r=igor).
2009-09-11 10:47:47 -07:00
Brendan Eich
016b0f207a
Bug 514981 - JSStackFrame::sharp{Array,Depth} should be locals allocated due to #n[#=] usage (r=igor).
2009-09-09 20:21:15 -07:00
Jason Orendorff
b53824855d
Bug 513119 - Change JSScript macros to methods. r=Waldo.
2009-09-09 18:52:55 -05:00
David Mandelin
512c25cdc4
Bug 504797 extra bit: newly required include in jsfun.cpp, no_r=me
2009-09-09 11:46:32 -07:00
David Mandelin
a8c3972f23
Bug 504797: give arguments objects created on trace a private value that can be used to look up argument values in the native stack, r=gal
2009-09-09 11:40:21 -07:00
Brendan Eich
7a412f40b3
JSTempValueRooter JSTVU_SINGLE over-constrains GC-thing against static allocation (515000, r=gal).
2009-09-07 00:35:27 -07:00
Igor Bukanov
6bfe4771cc
bug 513190 - avoiding jsint tagging of the private slot data. r=jorendorff
2009-09-05 19:59:11 +04:00
Jeff Walden
bb3a9524fa
Bug 514603 - ES5: (function(){}).propertyIsEnumerable("prototype") should be false, not true. r=brendan
2009-09-04 02:16:05 -07:00
Luke Wagner
6bfe9f9329
Bug 460904 - rename/tweak JSTraceableFunction (take 2)
2009-09-04 13:44:31 -07:00
Luke Wagner
3087376a4d
Backed out changeset 94da2f68afdb
2009-09-04 11:35:52 -07:00
Luke Wagner
52d822b6d2
Bug 460904 - rename/tweak JSTraceableFunction (r=jorendorff)
2009-09-03 11:57:14 -07:00
David Mandelin
a086bb3ab9
Bug 510642: traverse scope chain correctly for traced JSOP_BINDNAME, r=jimb
2009-08-27 15:07:46 -07:00
Jason Orendorff
dafc9b5d2a
Bug 508685 - Remove last parameter of defineProperty op. r=brendan.
2009-08-26 14:28:36 -07:00
David Anderson
d6567c21e2
Build fix (followup to bug 512029).
2009-08-24 17:18:41 -07:00
David Anderson
744033066f
Removed JSStackFrame::callee (bug 512029, r=brendan).
2009-08-24 17:09: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
Igor Bukanov
be037e50cc
bug 495061 - followup - fixing a typo in JS_FASTCALL declaration
2009-08-14 20:54:26 +02:00
Igor Bukanov
7e607aac4d
bug 495061 - js_PutArgsObject and js_PutCallObject that never fail. r=brendan
2009-08-14 20:43:16 +02:00
Jason Orendorff
9dc4a54a5d
Bug 498488 - Change some JSObject macros to methods. r=Waldo.
2009-08-11 15:05:44 -05:00
Jason Orendorff
d60a115007
Bug 509301 - Value chosen for callee in args_resolve is nonsense. Fixes a debug browser assertion. r=Waldo.
2009-08-10 16:23:32 -05: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
Igor Bukanov
ef90f6f522
bug 493457 - uniform access to private slots. r=mrbkap, sr=jwalden
2009-08-04 23:06:55 +02:00
Igor Bukanov
ca5953ea0c
bug 507573 - put activation clenup. r=brendan
2009-08-04 12:55:58 +02:00
David Mandelin
14faeda25e
Bug 507424: allocate slots for cloneable regexps in js_AllocFlatClosure if needed, r=igor
2009-07-31 11:34:33 -07:00
Andreas Gal
e7f2714ea1
When finalizing, deallocate memory in a separate thread (505612, r=bent,brendan,waldo).
2009-07-27 21:10:12 -07:00