Commit Graph

23253 Commits

Author SHA1 Message Date
Nicolas B. Pierron
18bdbffa67 Bug 814177 - Use a callVM for generic InstanceOf cases. r=dvander 2012-11-26 19:09:52 -08:00
Boris Zbarsky
a9602fb558 Bug 815460. Always inline JS_THIS so that we don't run into performance issues if the compiler decides not to inline it. r=waldo 2012-11-26 21:16:05 -05:00
Jim Blandy
109b52e995 Bug 815044: Make js_DecompileScript, and js_DecompileFunction static to jsopcode.cpp. Delete js_DecompileFunctionBody; it is unused. r=jorendorff 2012-11-26 16:47:59 -08:00
Marty Rosenberg
6ad84efe62 Finally fix the second stack alignment check (second half of 3136d5ea2399) (bug 810996, bug 807156, r=djvj) 2012-11-26 19:06:41 -05:00
David Anderson
c3c04cb395 Add incremental barriers to addprop ICs (bug 811058, r=billm).
--HG--
extra : rebase_source : 518dcb987ddd2967ffd24e79afcee203d9d83820
2012-11-26 13:57:46 -08:00
Kyle Huey
531578ec07 Bug 814102: Make the 'this' object used when compartment sharing a FakeBackstagePass. r=mrbkap 2012-11-26 14:41:59 -08:00
Kyle Huey
9048d562b8 Bug 811784: Account for subscripts when figuring out what object to stick properties on. r=mrbkap 2012-11-26 14:41:55 -08:00
Brian Hackett
932c478b34 Clone type sets to avoid races when compiling off thread, bug 815258. r=dvander 2012-11-26 16:32:45 -05:00
Brian Hackett
04c672558f Add config option for off thread compilation, bug 815199. r=dvander 2012-11-26 16:30:37 -05:00
Brian Hackett
e8335d9feb Factor common register allocation code and add integrity checker to RegisterAllocator.h, add baseline StupidAllocator, bug 812945. r=jandem 2012-11-26 12:27:05 -05:00
Till Schneidereit
03c985104e Bug 814729 - Add getSelfHostedValue function to JS shell. r=shu 2012-11-24 16:06:06 +01:00
Brian Hackett
9d4f3c622a Add type specialized paths for instanceof to Ion, bug 814861. r=pierron 2012-11-25 11:04:21 -05:00
Brian Hackett
dc4f919839 Add symbolic range analysis for loop induction variables, bug 766592. r=mjrosenb 2012-11-23 23:23:03 -05:00
Brian Hackett
229b6c663a Count instruction and spill code bytes in Ion basic blocks, bug 814489. r=pierron 2012-11-23 23:18:59 -05:00
Ryan VanderMeulen
ec1e3c19e6 Backed out changeset 68b3734f36e3 (bug 814489) for build failures. 2012-11-23 19:48:45 -05:00
Brian Hackett
89b083b5ae Count instruction and spill code bytes in Ion basic blocks, bug 814489. r=pierron 2012-11-23 19:13:56 -05:00
Brian Hackett
897d4409ee Ensure off thread compilations are properly canceled on new type barriers or monitored bytecodes, bug 813559. r=dvander 2012-11-23 18:26:34 -05:00
Brian Hackett
1838654456 Remove bogus assert, bug 813029. r=dvander 2012-11-23 12:25:06 -05:00
Niko Matsakis
9ba397217b Bug 814233 - Make things build when threadsafe/nspr are not present. r=bhackett 2012-11-21 21:09:39 -05:00
Ryan VanderMeulen
c817e39674 Backed out changeset 0a197ef0840c (bug 766592) for talos crashes. 2012-11-23 10:04:14 -05:00
Brian Hackett
c9ff6b1e5e Add symbolic range analysis for loop induction variables, bug 766592. r=mjrosenb 2012-11-23 08:54:41 -05:00
Mike Hommey
0506649c45 Bug 799295 - Work around gcc 4.5 miscompilation of CanEncodeInfoInHeader by always inlining it 2012-11-23 07:44:30 +01:00
Nicolas B. Pierron
883432ed4f Bug 810253 - Correctly dump arguments. r=dvander 2012-11-22 18:12:51 -08:00
Nicolas B. Pierron
d0c3f5b577 Bug 799185 part 4 - Add tests for ReconstructPCStack. r=the-toad 2012-11-22 16:50:29 -08:00
Nicolas B. Pierron
6b879c0d6e Bug 799185 part 3 - Improve debug utilities within NoGCScope. r=terrence 2012-11-22 16:50:28 -08:00
Nicolas B. Pierron
23477fed33 Bug 799185 part 2 - Add comments to ReconstructPCStack. r=jorendorff 2012-11-22 16:50:18 -08:00
Kannan Vijayan
f796e24b3c Bug 814472 - Add jump(Register) method to Ion macro assembler. r=jandem 2012-11-22 13:13:29 -05:00
Brian Hackett
d47e1a36ee Add --thread-count=N to shell, use at most one core for off thread compilation, disallow off thread compilation during IGC, bug 813559. r=dvander 2012-11-22 10:02:18 -05:00
Peter Van der Beken
b045a6d2b2 Fix for bug 812333 (Replace Node quickstubs with new binding methods) - part 2: install Node's binding methods on the XPConnect proto. r=bz. 2012-11-22 12:09:41 +01:00
Peter Van der Beken
3fb06020ff Fix for bug 814022 (Make instanceof for new DOM bindings work across scopes). r=bz. 2012-11-19 11:59:13 +01:00
Paul Adenot
3c2724d53c Bug 779997 - Backout e35029dcac2d to enable libsoundtouch again. 2012-11-22 11:38:28 +01:00
Boris Zbarsky
b389f53d5e Bug 812392. Make sure we don't allow descendant protoss to confuse whether a proto corresponds to a DOM type. r=bhackett,peterv 2012-11-21 11:19:26 -05:00
Bobby Holley
6d0cce4a71 Bug 812415 - Use wrapperSubsumes rather than isChrome in XPCNativeWrapper.unwrap. r=mrbkap
The current behavior breaks same-origin Xrays in sandboxes. This makes it match
the check we do in XrayWrapper.cpp for the .wrappedJSObject property.
2012-11-21 17:55:58 -08:00
Till Schneidereit
40f7bb6875 Bug 791850 - Cleanup of lazy script handling. r=bhackett
--HG--
extra : rebase_source : eb676d1a38675f0c556e2f367465a726085eefcc
2012-11-21 17:42:27 +01:00
Till Schneidereit
3a75951e96 Bug 784294 - Convert some array extras to self-hosted js implementations. r=Waldo
The following methods are converted:
- lastIndexOf
- indexOf
- forEach
- some
- every
- reduce
- reduceRight

--HG--
extra : rebase_source : 600a9bba7c9a3871b10936f89b2e8c6fbee6d769
2012-08-28 14:35:15 +02:00
Terrence Cole
348c31f896 Bug 811911 - Allow UTF-8 output from the SpiderMonkey shell; r=Norbert 2012-11-16 18:14:51 -08:00
Bobby Holley
e01eac97a5 Bug 813394 - Test both |window.location| and |location| in navigated-away-from frame. r=bz 2012-11-21 13:20:05 -08:00
Bobby Holley
d889379068 Bug 808608 - Fix test_bug802557. r=bz
There are a number of fixes to this important tests, so this warrants a separate
patch.

First of all, the boundTo machinery goes away, because we no longer have same-
compartment Xrays giving us the weird bound methods.

Furthermore, now that the sensitive methods are just regular old methods
off the prototype. They'll fail correctly when used on a same-scope object,
but not for cross-scope XOWs they'll just fail in the
GetWrappedNativeOfJSObject rat's nest (when they can't unwrap the security
wrapper), so we'll just get a generic XPConnect error instead of a security
exception. I want to fix this soon, so I changed the skipMessageCheck stuff
to use todo_is.

However, _that_ caused an UNEXPECTED-PASS for the DefaultValue test (which
was the only one of the array of tests that was throwing a security exception
in step 2). So I added an annotation for that in item[2].
2012-11-21 13:20:05 -08:00
Bobby Holley
4fb0eb55a2 Bug 808608 - Remove Xray shadowing protection infrastructure. r=mrbkap
This is now unused.
2012-11-21 13:20:05 -08:00
Bobby Holley
645bf15f18 Bug 808608 - Fix up tests to work with new behavior. r=bz,me 2012-11-21 13:20:05 -08:00
Bobby Holley
deb1246831 Bug 808608 - Remove special testing for Location in test_bug505915. r=me
Removing test coverage isn't great. But the only reason this test is doing all
this funny stuff with Location is that it thinks that it's always wrapped in
an Xray wrapper and that we always do a dynamic security check, which is no
longer true. Moreover, it checks for very specific error messages, which are
kind of in flux right now as I'm fixing up GWNOJO. The calls are never going
to actually succeed (since location isn't a Node), so it's not really clear
how to fix up this test to do something uniquely useful in a readable way.
I've added enough Location test coverage recently that I'm comfortable removing
this part.
2012-11-21 13:20:05 -08:00
Bobby Holley
9081886d4a Bug 808608 - Remove specialized Location security wrappers. r=mrbkap 2012-11-21 13:20:05 -08:00
Bobby Holley
de65cd77ed Bug 808608 - Remove unnecessary outparam. r=mrbkap 2012-11-21 13:20:05 -08:00
Bobby Holley
aa8b4abfd6 Bug 808608 - Implement shadowing protection in nsDOMClassInfo. r=mrbkap
This allows us to remove the same-compartment Location wrappers. This can
go away when we move Location to the new bindings and get access to
[Unforgeable].
2012-11-21 13:20:05 -08:00
Bobby Holley
52508e361a Bug 808608 - Rescue expando sharing tests. r=mrbkap
We have a very nice and robust infrastructure for per-origin expando sharing
for Xrays. Unfortunately, the only way to currently exercise it is with
Location objects, since those are the only objects with same-origin Xrays
(cross-origin Xrays don't allow expandos at all). Sandbox wantXrays would
almost work here, but we actually make an explicit exception for sandboxes
so that they never share expandos (the 'exlusive global' stuff).

I think the infrastructure is nice and that we may want it in the future, so
I don't really want to back it out. But I also don't want to leave it in the
tree untested. So I'm adding an explicit Cu API to force DOM compartments to
use same-origin Xrays. This allows us to keep testing this stuff, which I think
is important.
2012-11-21 13:20:04 -08:00
Brian Hackett
748221ed7d Show generated assembly in Ion PC count information, bug 811349. r=pierron 2012-11-21 13:53:18 -05:00
Shu-yu Guo
601262cf64 Bug 791850 - Followup: fix computing caller stack formal position. (r=jorendorff) 2012-11-21 10:50:01 -08:00
Niko Matsakis
66511efcf5 Bug 801087 - Implement parallel workers threadpool in preparation for Rivertrail. r=dmandelin 2012-11-21 13:31:57 -05:00
Daniel Holbert
41aacf08c9 Bug 811057: Make DeferredFinalizeFunction take a uint32 instead of an int32 as its "slice" parameter. r=peterv 2012-11-21 10:20:32 -08:00
Ryan VanderMeulen
4b287535f2 Backed out changesets 1a8b11ae0f4b, e02a02fd1208 (bug 776443), 86a3edf2960d (bug 812392), 26c59f23fd8f, and 288c74d7f87d (bug 812744) for mochitest orange.
CLOSED TREE
2012-11-21 12:47:40 -05:00