Commit Graph

24601 Commits

Author SHA1 Message Date
Yati Sagade
54fcbb6e17 Bug 812179 - Removed hacks for Python < 2.6 from config/ [r=ted] 2013-02-27 22:30:56 +05:30
Hannes Verschore
6e406beacc Bug 843023: IonMonkey: Inline Math.pow when result is expected to be intger, r=sstangl 2013-03-01 01:22:55 +01:00
Nicholas Nethercote
9e3cebd690 Bug 839376 (part 14) - More exact rooting in shell/js.cpp. r=sfink.
--HG--
extra : rebase_source : 5dbacfb158ff5ea3935c0378f1c691006cb013a8
2013-02-28 15:03:17 -08:00
Steve Fink
2480d724b8 Bug 845519 - Spot-fix Unrooted-related problems. r=terrence
--HG--
extra : rebase_source : d725080582e51c4d6385b0adbb188933641988bd
2013-02-28 13:24:47 -08:00
Steve Fink
24d68f4706 Bug 845519 - Use SkipRoots for jschar pointers until we need to start moving them. r=terrence
--HG--
extra : rebase_source : d337dba6972e78e1994dd5563f093622e4475fc8
2013-02-26 16:45:49 -08:00
Steve Fink
7b134aa2b0 Bug 845519 - Check getType(cx) return value (also fixes rooting hazard). r=bhackett
--HG--
extra : rebase_source : 3031e892cd93c36db9096e47fcb20fb3dc9913dc
2013-02-26 15:45:12 -08:00
Steve Fink
e22c0828a5 Bug 845519 - Fix aliasing problem between Rooted<T> and Rooted<derived-from-T>. r=bhackett
--HG--
extra : rebase_source : 38e1a42e7408e6bd60dbdc42f2dbb5cffb68625d
2013-02-15 10:18:30 -08:00
Boris Zbarsky
4549dd5886 Bug 776536 part 4. Turn on WebIDL bindings for NodeIterator and TreeWalker. r=peterv
The behavior here is a bit weird because Document is still not a
WebIDL object, so calling createNodeIterator or createTreeWalker via
an Xray will call the XPCOM versions of those methods.  That means
that I can't just disable XPCOM-based wrapping for TreeWalker and
NodeIterator altogether, unfortunately, which means a web page could
try stashing a TreeWalker in something like userdata and then getting
it back and end up wrapping it as an XPCOM object the second time.

I could "fix" that by adding a wrapper cache and whatnot, I guess, if
desired...  But the problem will go away once we convert Document in
any case.
2013-02-28 12:56:42 -05:00
Boris Zbarsky
09556095dd Bug 843261. Add support for sequence<DOMString> arguments in WebIDL callbacks. r=peterv
This does allow people to accidentally hit the slower path through use
of non-const strings, but I think that's OK now that we're mostly
autogenerating this stuff
2013-02-28 12:56:41 -05:00
Ryan VanderMeulen
ebcc7ae06a Backed out 7 changesets (bug 832920, bug 776536, bug 843261) for mochitest-a11y assertions on a CLOSED TREE.
--HG--
rename : content/base/src/NodeIterator.cpp => content/base/src/nsNodeIterator.cpp
rename : content/base/src/NodeIterator.h => content/base/src/nsNodeIterator.h
rename : content/base/src/TreeWalker.cpp => content/base/src/nsTreeWalker.cpp
rename : content/base/src/TreeWalker.h => content/base/src/nsTreeWalker.h
2013-02-28 14:41:30 -05:00
Olli Pettay
fee019f92c Bug 845631 - Remove nsXMLHttpProgressEvent, r=sicking
--HG--
extra : rebase_source : e5c6e80fbb656782bfe0f530c778cda9d9f97f0f
2013-02-28 20:53:04 +02:00
Boris Zbarsky
30f64b6cf1 Bug 776536 part 4. Turn on WebIDL bindings for NodeIterator and TreeWalker. r=peterv
The behavior here is a bit weird because Document is still not a
WebIDL object, so calling createNodeIterator or createTreeWalker via
an Xray will call the XPCOM versions of those methods.  That means
that I can't just disable XPCOM-based wrapping for TreeWalker and
NodeIterator altogether, unfortunately, which means a web page could
try stashing a TreeWalker in something like userdata and then getting
it back and end up wrapping it as an XPCOM object the second time.

I could "fix" that by adding a wrapper cache and whatnot, I guess, if
desired...  But the problem will go away once we convert Document in
any case.
2013-02-28 12:56:42 -05:00
Boris Zbarsky
7015a00262 Bug 843261. Add support for sequence<DOMString> arguments in WebIDL callbacks. r=peterv
This does allow people to accidentally hit the slower path through use
of non-const strings, but I think that's OK now that we're mostly
autogenerating this stuff
2013-02-28 12:56:41 -05:00
Ms2ger
3813557cac Merge m-i to b-s. 2013-02-28 14:46:10 +01:00
Jan de Mooij
2af3344a27 Bug 845841 - Don't inline object element read if the value may be a string. r=bhackett 2013-02-28 09:40:17 +01:00
Gregory Szorc
89d297a677 Merge mozilla-central into build-system
The 3 merged files had no conflicts and were manually verified to ensure
no incompatible changes crept in.
2013-02-27 21:02:02 -08:00
Gregory Szorc
f0b7e3972c Merge mozilla-central into build-system
There were merges in configure.in and some Makefile.in. None had any
conflicts. I spot verified the Makefile.in changes and confirmed that
the changes did not touch any DIRS* variables.
2013-02-27 10:03:52 -08:00
Ms2ger
cd9c6150fe Merge m-c to b-s. 2013-02-26 19:09:25 +01:00
Hannes Verschore
7a456295a3 Bug 843866: IonMonkey: Make sure inference ran before inlining empty script, r=jandem 2013-02-26 11:20:03 +01:00
Gregory Szorc
faf262c4ee Merge mozilla-central into build-system
Only conflict was configure.in amd was due to context, not
changed lines themselves.
2013-02-25 22:09:18 -08:00
Brian Hackett
97d638251f Bug 841530 - Tweaks to fit JIT inspector after the decompilerectomy, r=pierron. 2013-02-25 15:31:49 -07:00
Gregory Szorc
01c06b3b88 Bug 784841 - Part 19: Remove allmakefiles.sh and friends; r=ted 2013-02-25 14:09:16 -08:00
Gregory Szorc
c1b5e29e19 Bug 784841 - Part 18s: Convert /js; r=glandium 2013-02-25 12:47:22 -08:00
Gregory Szorc
aa1ef1d3f8 Bug 784841 - Part 18e: Convert /build, /config, and core build system; r=ted 2013-02-25 12:47:18 -08:00
Gregory Szorc
39ec7e4cdf Bug 784841 - Part 16: Use moz.build files to build the tree; r=ted, glandium 2013-02-25 12:47:11 -08:00
Nicholas D. Matsakis
b87286ac46 Bug 843684 - Patch up include to avoid compilation warnings when JS_THREADSAFE is not defined r=njn 2013-02-25 08:06:48 -05:00
Ed Morley
2863af18c4 Backed out changeset d9d90bf85bcf (bug 845569) for bug839758.js assertions 2013-02-27 10:31:18 +00:00
Ehsan Akhgari
3a2fdeb18a Bug 780474 - Disable the struct/class mismatch warning on MSVC as well; r=glandium
--HG--
extra : rebase_source : 3e593b71e589df349abc41f9182739305478690f
2013-02-25 12:10:41 -05:00
Brian Hackett
b9530756ad Bug 844482 - Watch for OOM disabling TI under CreateThisForFunction, r=dvander. 2013-02-25 15:21:13 -07:00
Brian Hackett
59348db6ca Bug 844364 - Fix bogus assertion, inverted test when compiling JSOP_EVAL, r=jandem. 2013-02-25 15:17:12 -07:00
Bobby Holley
c014987e4f Bug 836301 - Hoist some assertions, remove a bunch of no-op trap overrides, and add assertions that we've entered our policy. r=mrbkap 2013-02-25 13:54:18 -08:00
Bobby Holley
f84dddd71f Bug 836301 - Hoist enter() calls from {Xray,}Wrapper::foo into Proxy::foo. r=mrbkap 2013-02-25 13:54:18 -08:00
Bobby Holley
83a57c8d91 Bug 836301 - Introduce an RAII class for entering policies. r=mrbkap
This will allow us to make some hard assertions that a given policy has been
entered exactly once.
2013-02-25 13:54:18 -08:00
Bobby Holley
15161f36d3 Bug 836301 - Hoist enter() into BaseProxyHandler. r=mrbkap 2013-02-25 13:54:18 -08:00
Bobby Holley
97705ea7e1 Bug 836301 - Add tracking for whether we have a non-trivial enter() trap. r=mrbkap
This will allow us to skip the virtual function call for non-security-wrapper
proxies, which are the cases where we care most about performance.
2013-02-25 13:54:18 -08:00
Bobby Holley
1c9777f504 Bug 836301 - Stop enter()ing with CALL for nativeCall. r=mrbkap
This is kind of nonsensical, because CALL means "the wrapped object is being
called", whereas nativeCall means "the wrapped object is being unwrapped to
have a JSNative invoked on it", which are two very different things.

We _could_ add a NATIVECALL enter() trap, but our current policy enforcement
around nativeCall involves overriding the trap itself, so we wouldn't use it
for anything. So let's just get rid of it.
2013-02-25 13:54:17 -08:00
Bobby Holley
a1a88275ee Bug 836301 - Add Special handling to allow us to call enter() for defineProperty on Xrays. r=mrbkap 2013-02-25 13:54:17 -08:00
Bobby Holley
6f2c3cdc97 Bug 836301 - Stop using JSRESOLVE_ASSIGNING to determine GET vs SET. r=mrbkap
This is just a heuristic, anyway, and some of the usage is downright broken.
There are two cases here:

1 - Deciding what to do for get{Own,}PropertyDescriptor. In these cases, we can
just enter with GET and rely on the filtering machinery to filter out dangerous
setters for security wrappers.

2 - Custom Xray props. None of these make sense in a |set| context. In fact,
    they generally have null setters anyway, so we can just assume GET.

The policy-entering code in XrayWrapper is super haphazard. We'll get rid of it
entirely later in these patches.
2013-02-25 13:54:17 -08:00
Bobby Holley
43540aa59a Bug 836301 - Assert against JSID_VOID in JSID wrapping. r=mrbkap
Luke explained to me that it should never get there.
2013-02-25 13:54:17 -08:00
Daniel Holbert
77c149b73d Bug 845021: Add size_t cast in assertion, to silence build warning, in ObjectWrapperChild::AnswerNewEnumerateNext. r=Waldo 2013-02-25 13:46:56 -08:00
Phil Ringnalda
6734097077 Back out 0fc2a36c23d8 (bug 844253) for bustage
CLOSED TREE
2013-02-24 22:52:40 -08:00
Kannan Vijayan
5d86893048 Bug 844253 - Change useNewType to be a flag on StackFrame instead of an explicitly passed argument. r=bhackett 2013-02-25 00:57:39 -05:00
Nicholas Nethercote
303eefa8b5 Bug 843462 (part 3) - Use a Vector to build the bytecode. r=jorendorff.
--HG--
extra : rebase_source : b5f266d41f94daf626540f40986f22a1f26c0556
2013-02-20 21:13:28 -08:00
Nicholas Nethercote
6b8ee78c07 Bug 843462 (part 2) - Use a Vector to build the source notes. r=jorendorff.
--HG--
extra : rebase_source : 57d50732d55b9e73bad04ec0c01b58b20de275b3
2013-02-20 21:13:26 -08:00
Nicholas Nethercote
160fb3d26e Bug 843462 (part 1) - Make Vector::insert() less error-prone. r=luke.
--HG--
extra : rebase_source : 8cc2ba2a01d7d4970aacb7728bb2936ea473dcf5
2013-02-20 21:13:25 -08:00
Gary Kwong
dcf70892da Bug 845569 - Land tests for various bugs. r=terrence 2013-02-27 10:40:01 -08:00
Jim Blandy
5bd2646110 Bug 841998: JS GDB support: Make prettyprinters.lookup_for_objfile cope with non-SpiderMonkey objfiles correctly. r=sfink 2013-02-27 09:30:02 -08:00
Bob Clary
45c167de16 Bug 845770 - Change fails-if(Android) js date tests to random-if(Android), r=jmaher. 2013-02-27 06:52:06 -08:00
Nicholas Nethercote
89f5a487ae Bug 843999 - Shrink the property cache. r=bhackett.
--HG--
extra : rebase_source : a05435c289528619856b70665453703a628c3790
2013-02-24 14:15:23 -08:00
Kannan Vijayan
ad6184732e Bug 844253 - Change useNewType to be a flag on StackFrame instead of an explicitly passed argument. r=bhackett 2013-02-25 15:15:38 -05:00