Commit Graph

25729 Commits

Author SHA1 Message Date
Olli Pettay
ee2eec15f3 Bug 691059, don't throw when setting interface.prototype.onmouseenter/leave, r=bz
--HG--
extra : rebase_source : 617c1329d2f863e01f8654da96736095152b5734
2011-10-10 14:42:55 +03:00
Olli Pettay
5feb87bacd Bug 691059, don't throw when setting interface.prototype.onmouseenter/leave, r=bz
--HG--
extra : rebase_source : 0bbc272f1389cda424334a9f5c804c9c70fe7815
2011-10-10 14:42:17 +03:00
Luke Wagner
cae317490d Bug 692366 - Soften nativeCall assert to allow for generic non-generic methods (yeah, that's right) (r=waldo)
--HG--
extra : rebase_source : 3bca2d458118cce3959f978a36a5c5aa85a5ef9c
2011-10-07 11:58:47 -07:00
Luke Wagner
df7e5cc0c0 Bug 692300 - date_valueOf should claim to be date_valueOf to NonGenericMethodGuard (r=waldo)
--HG--
extra : rebase_source : dfbe787ad430c8f173f1f8a22ffe66e2cd5cf352
2011-10-07 11:58:45 -07:00
Luke Wagner
6789a74c55 Bug 632064 - remove use of GetScopeChain in e4x (r=igor)
--HG--
extra : rebase_source : 656a975ea0ca945b9c55b26768545c6e06190754
2011-10-04 10:50:25 -07:00
Kyle Huey
29da26def0 Merge m-c to b-s. 2011-09-30 16:25:07 -04:00
Jason Orendorff
2fee8d7595 Fix GCC warnings about using CHECK_EQUAL macro to compare a pointer to NULL. no_r=red. 2011-09-29 15:52:05 -05:00
Jason Orendorff
ed342f5f00 Bug 688571 - JS_PropertyIterator is broken. r=Waldo.
--HG--
extra : rebase_source : bde827991fb39bfc1fbae9e39dac2923713cf13d
2011-09-29 15:05:07 -05:00
Chris Leary
e1353bf8b3 Fix license block errors. (DONTBUILD) 2011-09-29 11:54:51 -07:00
Rafael Ávila de Espíndola
f9a5a340cd Bug 689066 - Fix c++11 incompatibility. r=luke. 2011-09-29 13:49:54 -04:00
Ehsan Akhgari
fc78bec76a Merge mozilla-central into mozila-inbound 2011-09-29 12:51:50 -04:00
Kyle Huey
9200ef4402 Bug 688417: Test for Bug 505915 expects setting xhr.onreadystatechange to unwrap the object passed in. r=mrbkap 2011-09-29 12:06:36 -04:00
Kyle Huey
d189cf1746 Bug 688776: test_doublewrappedcompartments.xul relies on XHR event listener being a wrapped JSObject. r=mrbkap 2011-09-29 12:06:36 -04:00
Kyle Huey
28a72a046f Bug 688416: Test for Bug 502959 relies on XHR event listener being an nsIDOMEventListener. r=mrbkap 2011-09-29 12:06:35 -04:00
Michael Wu
d2b70213ac Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Makoto Kato
89bf0597c8 Bug 681202 - Add Android x86 target. r=glandium 2011-09-29 13:39:03 +09:00
Luke Wagner
7afec73791 Bug 632064 - remove JS_GetScopeChain (r=mrbkap)
--HG--
extra : rebase_source : dcaab70f180d23ad3e9cd12c2d84d326b012fbb2
2011-09-28 17:57:27 -07:00
Jan de Mooij
e193f71c40 Bug 693311 - Fix strict equality correctness bug. r=billm 2011-10-10 18:06:06 +02:00
Reuben Morais
8a52f149a1 Bug 647390 - Remove the calloc+placement-new pattern (r=luke) 2011-09-28 09:17:51 -07:00
Felix Fung
1309a8a8fa Bug 674012 - Remove checks for HAVE_GCC3_ABI. r=glandium 2011-09-28 11:32:39 -07:00
Teemu Mannermaa
174e476fa1 Bug 689157 - Fix CC variables used in "cl -showIncludes" detection logic. r=khuey 2011-09-29 15:20:51 +02:00
Makoto Kato
fc7ee15ecc Bug 689288 - xpcshell\tests\js\src\xpconnect\tests\unit\test_attributes.js and test_params.js are perma-orange on Win64. r=bsmedberg 2011-09-29 18:43:50 +09:00
Gavin Barraclough
f5852ac0b8 Bug 683838: Fix return logic in backTrackParentheses, r=dmandelin 2011-10-07 17:52:50 -07:00
Bobby Holley
cd61da6abc Bug 657260 - Handle NULL return from JS_NewExternalString in XPCStringConvert::ReadableToJSVal. r=mrbkap 2011-10-07 19:34:40 -04:00
Bobby Holley
4c1e66e1e4 Bug 657260 - Check JS string length against maximum in more places. r=Waldo 2011-10-07 19:34:28 -04:00
Bobby Holley
64652fec72 Bug 657260 - Move CheckStringLength to JSString. r=Waldo 2011-10-07 19:34:28 -04:00
Chris Leary
1736081a74 Bug 692069 followup: Unburn no-methodjit. 2011-10-07 16:31:48 -07:00
Chris Leary
41aa0881f3 Bug 692069: Regexp engine agnostic abstraction. (r=luke) 2011-10-05 11:12:59 -07:00
Jim Blandy
a2b44f3d29 Bug 692903: Identify scripts more helpfully in InferSpew output. r=bhackett
This delays assigning id numbers to scripts until the first time the id is
actually retrieved, and at that point produces an InferSpew message
identifying the script by id, address, url and line number. This means that
we only identify scripts we actually mention in InferSpew output.

If JSScript::id had users other than jsinfer, this wouldn't be appropriate.

With this patch applied, we get output like this, the first time a given script is mentioned:

[infer] script #2: 0x7ffff5906660 /home/jimb/moz/dbg/js/src/jit-test/lib/prolog.js:1
[infer] typeSet: T0x9ff748 bytecode0 #2
...
2011-10-07 15:12:12 -07:00
Jim Blandy
7f1c16c84c Bug 692911: Delete useless call to target->addType in js::types::TypeConstraintSubsetBarrier::newType. r=bhackett
js::types::TypeConstraintSubsetBarrier::newType calls 'target->hasType(type)',
and if that returns true, calls 'target->addType(cx, type)'. That second call
should have no effect: it just adds to target a type that it already has.

This patch deletes the call to target->addType.
2011-10-07 15:08:56 -07:00
Jim Blandy
877a54532a Bug 692243: Change the InferSpew for TypeObject::setFlags to print flags in hex. r=bhackett 2011-10-07 13:07:05 -07:00
Jim Blandy
13d317f8cb (no bug): Fix Emacs/vi mode line at top of js/src/methodjit/StubCalls.cpp. r=only comments changed 2011-10-07 11:46:17 -07:00
Bobby Holley
c828917f16 Bug 690362 - Fix incorrect parenthetical grouping of nsXPTType::T_PWSTRING_SIZE_IS in xpcwrappednative.cpp. r=peterv 2011-10-07 13:51:29 -04:00
Bobby Holley
ad94db4487 Bug 599791 - part 6 - Return the sentinel when we fail in ClosureStub. r=jorendorff 2011-10-07 13:51:21 -04:00
Bobby Holley
65e11eb11f Bug 599791 - part 5 - Prepare the sentinel value and store it in ClosureInfo. r=jorendorff 2011-10-07 13:51:21 -04:00
Bobby Holley
d35215058f Bug 599791 - part 4 - Do ClosureInfo cleanup with a destructor. r=jorendorff 2011-10-07 13:51:21 -04:00
Bobby Holley
f0fde856e2 Bug 599791 - part 3 - Pass errVal down into the closure constructor. r=jorendorff 2011-10-07 13:51:21 -04:00
Bobby Holley
a79483e98e Bug 599791 - part 2 - restructure argument handling in PointerType::ConstructData. r=jorendorff 2011-10-07 13:51:21 -04:00
Bobby Holley
862f944567 Bug 599791 - part 1 - Remove unnecessary conditional logic. r=jorendorff 2011-10-07 13:51:21 -04:00
Bobby Holley
ce266cd768 Bug 682504 - Don't try to ImplicitConvert a void return value. r=jorendorff 2011-10-07 13:51:21 -04:00
Bobby Holley
52cd2b3167 Bug 682180 - Allocate executable trampoline buffers in darwin 10 and beyond. r=khuey
--HG--
rename : js/src/ctypes/libffi.patch => js/src/ctypes/patches-libffi/00-base.patch
2011-10-07 13:51:21 -04:00
Nathan Froyd
f75f832485 Bug 687121 - GCC 4.6 build warning: "js/src/xpconnect/shell/xpcshell.cpp:549: warning: variable 'preBytes' set but not used [-Wunused-but-set-variable]". r=jorendorff 2011-10-07 16:16:36 +01:00
Brian Hackett
c0666bfd18 Avoid reentrant constraint solving when breaking type barriers, bug 685186. r=dvander 2011-10-07 07:55:06 -07:00
Brian Hackett
7420e23819 Fix recompilation hazard in CALLELEMENT, bug 686107. r=dvander 2011-10-07 07:45:50 -07:00
Chris Leary
0602bff26b Bug 691695: Refactor RegExp components as prep for lazifying. (r=luke)
--HG--
rename : js/src/jsregexpinlines.h => js/src/vm/RegExpObject-inl.h
rename : js/src/jsregexp.cpp => js/src/vm/RegExpObject.cpp
rename : js/src/jsregexp.h => js/src/vm/RegExpObject.h
2011-10-04 23:48:32 -07:00
Steve Fink
2eba974f58 Bug 693712 - fix --enable-dtrace build by including appropriate headers in jsprobes.h (r=billm) 2011-10-11 11:25:02 -07:00
Jim Blandy
6c25ae970c (no bug): Fix comment reference to RejoinInterpreter (now js_InternalInterpret). r=bhackett
DONTBUILD
2011-09-28 15:40:23 -07:00
Luke Wagner
c9c1e201ce Bug 683361 - Fix part 6: add and call Proxy::objectClassIs (r=waldo)
--HG--
extra : rebase_source : b387bc288a45fc985df06ce2ca84823cf45803b3
2011-09-28 08:48:16 -07:00
Paul Biggar
ab139c261a Bug 668024 - Make Array.prototype.splice better conform to ES5, with a clearer stepwise algorithm. Patch also includes modifications from jwalden. r=jwalden, r=bhackett
--HG--
extra : rebase_source : dfac9c33e46ab950321492bb0a2827b561e9223f
2011-09-23 12:13:11 -07:00
Jeff Walden
c3a7c75d4f Bug 690031 - Exclude __proto__ from showing up when enumerating properties of Object.prototype again. r=jorendorff
--HG--
extra : rebase_source : 7d3d23b852a6fae4e616bb383876aed426c75dc6
2011-09-29 14:07:59 -07:00
Chris Leary
3b3f1cf4c7 Bug 684039: rewrite JS LIFO allocator, avoids thrashing. (r=luke)
--HG--
rename : js/src/jsarena.h => js/src/ds/LifoAlloc.h
extra : rebase_source : 098bf9561114f82363ebd0862213acf952709257
2011-09-22 13:22:30 -07:00
Luke Wagner
0004849d29 Bug 683361 - quell GCC over-warning from 90ff7402febc (r=me) 2011-09-27 23:20:46 -07:00
Luke Wagner
8e79ac3c24 Bug 683361, part 5 - Handle transparent proxies correctly in [[Class]] == "X" queries (r=waldo)
--HG--
extra : rebase_source : 42d32c87f8cffc765649bbb5890009edfb4a4807
2011-09-20 16:48:50 -07:00
Luke Wagner
b1f52b6885 Bug 683361, part 4 - Handle transparent proxies correctly in non-generic methods (r=waldo)
--HG--
extra : rebase_source : 0f36c83685f2822453ce203a87cca4076222c48c
2011-09-08 21:18:23 -07:00
Luke Wagner
79b8d507e0 Bug 683361, part 3 - add ProxyHandler::nativeCall (r=mrbkap)
--HG--
extra : rebase_source : 4494ddfc1e3f76bf550013c199a3f3b17a5e941f
2011-09-08 21:06:41 -07:00
Luke Wagner
9a4f70c9e6 Bug 683361, part 2 - use CallArgs more (r=waldo)
--HG--
extra : rebase_source : 0825a9729a7e24706e9fa1f3fdfb1586c475d8cf
2011-09-08 21:02:26 -07:00
Luke Wagner
b49c9e1267 Bug 683361, part 1 - Strip JS prefix from proxy names since they are already in namespace js (r=gal)
--HG--
extra : rebase_source : 5eded8e02c36991322c94fca1092970910c2ceea
2011-09-08 20:29:15 -07:00
Jeff Walden
72665286da Rewrite a very awkwardly worded comment describing the flat closure optimization. rs=cdleary over IRL 2011-09-27 16:35:41 -07:00
Chris Leary
26b394eaee Bug 687951: Shrink js_EmitTree frame. (r=Waldo) 2011-09-27 13:35:07 -07:00
Rafael Ávila de Espíndola
0ea5ec82f6 Bug 689269 - Don't read memory from other compartments in gc. r=wmccloskey. 2011-09-27 15:44:26 -04:00
Boris Zbarsky
b09cd1ed8c Version bump to 10.0a1 on CLOSED TREE 2011-09-27 13:19:35 -04:00
Jonas Sicking
46d7b33413 Bug 687400 - Adds a warning about isSameNode going to be removed. r=smaug 2011-09-27 12:07:11 +02:00
Mounir Lamouri
e743505ab6 Backout last two commits because of ownership issue. 2011-09-27 12:18:02 +02:00
Jonas Sicking
572eb25937 Bug 687400 - Adds a warning about isSameNode going to be removed. r=smaug 2011-09-27 12:07:11 +02:00
Matheus Kerschbaum
b833cdd785 Bug 687766 part 1: Remove build-time dependency on libIDL. r=khuey 2011-09-27 10:09:54 +02:00
Steve Fink
d8be4253fc Bug 688327 - tempCallReg cannot return callee-saved registers since they may be held live across FASTCALLs (r=dvander)
--HG--
extra : rebase_source : 10d63c752478157a9eb3fb4a5325405de9d20227
2011-09-22 15:06:08 -07:00
Matt Brubeck
ff7228b25e Merge mozilla-central to mozilla-inbound 2011-09-26 19:09:08 -07:00
Jeff Walden
2a604475b1 Bug 688646 - Followup fix to make recent test changes feature-test for shell-only functionality. r=orange 2011-09-26 18:28:57 -07:00
Steve Fink
2d00fc8b3a backout 75010170a6ee (bug 688327) 2011-09-26 17:06:42 -07:00
Steve Fink
215d4f3373 backout 7b4c94293707 (bug 686230) 2011-09-26 17:06:15 -07:00
Steve Fink
3008328012 backout 0cce4b4dead8 (bug 687102) 2011-09-26 16:55:37 -07:00
Steve Fink
f34cf265e4 backout 91f8565205db 2011-09-26 16:55:05 -07:00
Chris Leary
931f3f492b Back out bug 684039.
--HG--
rename : js/src/ds/LifoAlloc.h => js/src/jsarena.h
2011-09-26 16:50:17 -07:00
Chris Leary
8e7db87c8c Bug 684039: rewrite JS LIFO allocator, avoids thrashing. (r=luke)
--HG--
rename : js/src/jsarena.h => js/src/ds/LifoAlloc.h
2011-09-22 13:22:30 -07:00
Terrence Cole
2c7812b967 Bug 688646 - Remove its.bindMethod and js/src/tests/js1_5/Function/15.3.4.4.js; r=jwalden
Section 1 of the existing tests is already in js/src/tests/ecma_3/Function/
15.3.4.4-1.js.  Section 2 is an internal detail of our implementation that in
the near future is going to be changing.  Currently, we sometimes stilll walk
the parent pointers to get to globals; soon we will have a faster way to get
them in all cases, either through compile-n-go or IM.  What we really want to
test is that we get the lexical globals, not the caller globals.  This adds such
a test to our newer Function tests and simply removes the old Function tests.

--HG--
extra : rebase_source : 8d4c9440750245e895a01f8b92d1ceb3d18d8e8f
2011-09-26 15:17:05 -07:00
Jeff Walden
30f829f162 Bug 689285 - Make [[ThrowTypeError]] properly non-extensible. r=luke
--HG--
extra : rebase_source : 159ea15fc162ce0f7fe9e92adf18175c6ae15a8d
2011-09-26 13:59:23 -07:00
Chris Leary
5db5bc98eb Fix JS shell build. (r=luke) 2011-09-26 16:09:47 -07:00
Steve Fink
ae4efa89c7 Bug 687102 - Range check the PC argument to trap/untrap/line2pc/etc. in JS shell (r=cdleary) 2011-09-16 15:55:03 -07:00
Steve Fink
0c6caf335b Backout a21f23d350d8 (bug 645111) 2011-09-26 15:38:51 -07:00
Steve Fink
a11570a981 Bug 686230 - Add JS_CallOnce to the JSAPI for module initialization (r=luke)
--HG--
extra : rebase_source : 02b57a1e87cbc6676db9e9eb2c6567f43da99ba8
2011-09-11 11:37:43 -07:00
Peter Van der Beken
b03aa67b98 Bustage fix: temporarily disable assertion, we deal with the failure. 2011-10-10 11:48:13 +02:00
Peter Van der Beken
4ca416adf9 Bug 648801 (new DOM list bindings) - Add new dom binding for nsHTMLOptionCollection. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : 2d2f6177031958b61b01f819cb28a4c56861a815
2011-08-20 15:53:34 +02:00
Peter Van der Beken
9b6068d890 Bug 648801 (new DOM list bindings) - Bring order of getters/setters in line with WebIDL. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : 70625cb118be79cf773a193262d8ad1c8db8a1ec
2011-08-20 15:53:33 +02:00
Peter Van der Beken
7d742750a7 Bug 648801 (new DOM list bindings) - Generate setters on new DOM bindings. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : e1bfe25da439b22a4a72404331163826588f83a9
2011-08-20 15:53:33 +02:00
Peter Van der Beken
075926c483 Bug 648801 (new DOM list bindings) - Generate new DOM bindings. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : 6b34182856cbb4ba3fba8d3001de648b10157a29
2011-08-20 15:53:33 +02:00
Peter Van der Beken
4ef486c32d Bug 648801 (new DOM list bindings) - Support setting of properties on new DOM bindings. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : 0666433fbbb0b5b6e63a4395767dbcf6ac5e60ff
2011-08-20 15:53:33 +02:00
Peter Van der Beken
ad57f49c9a Bug 648801 (new DOM list bindings) - Support prototypes other than Object for the new proxy-based DOM binding. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : 9bc15dba3beaee01909281ccf57b1cd9ab7ec74b
2011-08-20 15:53:33 +02:00
Peter Van der Beken
cd1bb66b0f Bug 648801 (new DOM list bindings) - Prepare for more DOM list implementations. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : 2ac9d52f30ab53f9ae13c70bda45869c70fc5405
2011-09-22 08:50:16 -07:00
Peter Van der Beken
806fb0b99f Bug 648801 (new DOM list bindings) - Move some code around. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : 3185428a517441ec4b66ccb188f5fafa94ecc694
2011-09-22 08:01:11 -07:00
Peter Van der Beken
3354c2f546 Bug 648801 (new DOM list bindings) - Renaming. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : b74c8b0d8664c6ed8d5b1d1939fde461c8f4a0db
2011-08-20 15:53:33 +02:00
Peter Van der Beken
cb751cde8f Bug 648801 (new DOM list bindings) - Rename xpc::dom to mozilla::dom::binding. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : 6e27f15c5f0cc83a75cc9b8cb9dec425a37b56b0
2011-08-20 15:53:32 +02:00
Peter Van der Beken
5a2e8ffd3c Bug 648801 (new DOM list bindings) - Implement more of XrayProxy. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : 9cdcc6882e748cf214f332fa8173f999af2b28ce
2011-08-20 15:53:32 +02:00
Peter Van der Beken
f9e5d5345e Bug 648801 (new DOM list bindings) - Share obj_toString implementation. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : 5ba430a8fec8fcd974ed0ad5a9fa30e05884cfe9
2011-08-20 15:53:32 +02:00
Peter Van der Beken
15fab8aeac Bug 648801 (new DOM list bindings) - Optimize conversion to ints a bit. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : 9a96114824e1c9a7b49cd6fb2cf248ac96b63e29
2011-08-20 15:53:27 +02:00
Joey Armstrong
72252fe1ea Bug 680246 - threadsafe mkdir makefile library rules. r=ted 2011-08-18 17:16:21 -04:00
Peter Van der Beken
42cea0ac68 Bug 648801 (new DOM list bindings) - Fix GetNativeOfWrapper/GetJSObjectOfWrapper/xpc_OkToHandOutWrapper/quickstubs to deal with the new DOM bindings. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : 1b9afcc9d588ece15753fb36b249bc3a288e98c0
2011-08-02 15:16:05 +02:00
Peter Van der Beken
f2b151495f Bug 648801 (new DOM list bindings) - Support more properties than 'length'. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : 321d6cda4825e0db43dc5eb97b34a9d6c060f711
2011-07-29 13:56:41 +02:00
Peter Van der Beken
0608b17bf5 Bug 648801 (new DOM list bindings) - Stop using nsDOMClassInfo's jsids in new DOM bindings. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : 2020f6ec499bc1839c9f2d98ab7611d4ac6d103d
2011-07-26 11:51:14 +02:00
Peter Van der Beken
2375b7e89a Bug 648801 (new DOM list bindings) - Add a pref (dom.new_bindings) to enable/disable new bindings. r=bz/jst/mrbkap.
--HG--
extra : rebase_source : 055a7bdac534147baa29d8735794970234c98145
2011-06-29 19:17:37 +02:00
Matt Brubeck
f468fc2de6 Bug 689288 - Annotate failing xpcshell tests on Win64 [r=khuey] 2011-09-26 14:27:37 -07:00