Граф коммитов

44673 Коммитов

Автор SHA1 Сообщение Дата
Ryan VanderMeulen 20b8e5e433 Backed out changeset 72ec272d143d (bug 1005922) for B2G debug emulator-kk bustage. 2014-09-10 18:35:52 -04:00
Hannes Verschore 591bf9f526 Bug 1064251 - IonMonkey: Fold strict (not) equal on constant numbers, r=sstangl 2014-09-10 23:21:12 +02:00
Jason Orendorff 7b9ec355ff Bug 1057587 - Crash [@ JSString::ensureLinear] with Symbol and environment object.
--HG--
extra : rebase_source : af77bb098aefe1191c5ea26e5dfcf1d775fa3c84
extra : amend_source : 07dc0c27907e76748fcc34dc74e97fc914ab4ac7
2014-09-09 19:04:52 -05:00
ziyunfei e78810b679 Bug 1058396 - Make String(aSymbol) return the symbol's description, as specified in ES6 draft rev 27. r=jorendorff.
--HG--
extra : rebase_source : 40b8293fe1fa14667d00f00170b69f3138586279
2014-09-03 17:29:54 -05:00
Hannes Verschore 2757090497 Bug 1047346 - IonMonkey: Delay linking for scripts that are on the stack, r=jandem 2014-09-10 22:39:51 +02:00
Inanc Seylan fd3f8a3184 Bug 1005922: IonMonkey: Remove bailing on NewObject/NewArray during arguments usage analysis; r=h4writer 2014-09-10 22:22:27 +02:00
Felipe Gomes 382f4efc2f Bug 1063848 - Disable e10s in safe mode. r=bsmedberg,ally. 2014-09-10 15:53:55 -03:00
Terrence Cole 62fae135f8 Bug 914402 - Remove the defunct conservative stack scanner; r=sfink
--HG--
extra : rebase_source : c261ef7492694e9724c78edc7bc0dac7aa4357ba
2014-09-09 15:08:23 -07:00
Nicolas B. Pierron 8b6b6f64a9 Bug 1063816 - Rename usesBefore* to *WarmUpThreshold. r=h4writer 2014-09-10 19:11:20 +02:00
Nicolas B. Pierron 2e870be9ec Bug 1063816 - Rename useCount to warmUpCounter. r=h4writer 2014-09-10 19:11:20 +02:00
Aetf 6f01df6e2f Bug 1050649 - Implement recover instruction for RegExpReplace. r=nbp 2014-09-10 19:02:40 +02:00
Hannes Verschore a6c9583db6 Bug 1034184 - IonMonkey: Disable and/or for now and fix incorrect OOM flagging, r=bbouvier 2014-09-10 14:28:48 +02:00
Sushant Dinesh 4f4d73453f Bug 1034184 - IonMonkey: Enable taking the union of a filter at tests. r=h4writer 2014-09-10 12:10:52 +02:00
Sushant Dinesh b8d695fb8b Bug 1034184 - IonMonkey: Enable filtering at tests for and/or. r=h4writer 2014-09-10 12:10:49 +02:00
Peter Van der Beken 092abdc9c1 Bug 1063700 - Remove unused IsSecurityWrapper functions. r=bholley.
--HG--
extra : rebase_source : 32499305e3e28c690d0158f3e9df333b73e2259b
2014-09-09 15:38:45 +02:00
Benjamin Bouvier c2fc5d658f Bug 1064493: Better wording for globals validation errors in asm.js; r=luke 2014-09-10 11:47:12 +02:00
Benjamin Bouvier 01295a41f2 Bug 1064493: Use failName rather than failf when validating asm.js globals; r=luke 2014-09-10 11:47:07 +02:00
David Major 1275047f59 Backed out 040e85d18eab (bug 931687) for causing bug 1018402
--HG--
extra : rebase_source : c41a6125fabb2b11fb546a3253979003d80095eb
2014-09-10 15:48:56 +12:00
Bobby Holley 7c712dca7b Bug 981198 - Make JS_{Get,Set}ErrorReporter take a JSRuntime. r=terrence,r=bz 2014-09-09 16:02:10 -07:00
Bobby Holley c0ede38401 Bug 981198 - Internally move the JSErrorReporter to the JSRuntime. r=terrence 2014-09-09 16:02:10 -07:00
Shu-yu Guo d0920d771c Bug 1064844 - Only restore propagatingForcedReturn state in AutoSaveExceptionState if there isn't a new error. (r=jorendorff) 2014-09-09 14:49:58 -07:00
Alexandre Poirot b277edf2b4 Bug 1064935 - Alias ctypes.jschar to ctypes.char16_t. r=cpeterson 2014-09-09 09:46:00 -04:00
Eric Faust 8c3b097bac Bug 1031092 followup - Give up on moving jsproxy.h and jswrapper.h; fix bustage on a CLOSED TREE. (r=BurningManWasLastWeekRight?)
--HG--
rename : js/src/proxy/jsproxy.h => js/src/jsproxy.h
rename : js/src/proxy/jswrapper.h => js/src/jswrapper.h
2014-09-09 14:31:20 -07:00
Eric Faust 88719d2f94 Bug 1031092 - Part 10: Factor out SecurityWrapper. (r=bholley) 2014-09-09 12:09:46 -07:00
Eric Faust 4caf5b559e Bug 1031092 - Part 9: Factor out CrossCompartmentWrapper. (r=bholley) 2014-09-09 12:09:46 -07:00
Eric Faust fa1db4fb82 Bug 1031092 - Part 8: Factor out DeadObjectProxy. (r=bholley) 2014-09-09 12:09:46 -07:00
Eric Faust d97dbebd63 Bug 1031092 - Part 7: Move jswrapper.* to js/src/proxy/. (r=bholley)
--HG--
rename : js/src/jswrapper.cpp => js/src/proxy/Wrapper.cpp
rename : js/src/jswrapper.h => js/src/proxy/jswrapper.h
2014-09-09 12:09:46 -07:00
Eric Faust b27a7fb109 Bug 1031092 - Part 6: Factor out engine Proxy entry point. (r=bholley)
--HG--
rename : js/src/proxy/jsproxy.cpp => js/src/proxy/Proxy.cpp
2014-09-09 12:09:46 -07:00
Eric Faust 9b52d16c0f Bug 1031092 - Part 5: Factor out ScriptedIndirectProxyHandler. (r=bholley) 2014-09-09 12:09:45 -07:00
Eric Faust 1d90da9992 Bug 1031092 - Part 4: Factor out ScriptedDirectProxyHandler. (r=bholley) 2014-09-09 12:09:45 -07:00
Eric Faust 4a4cc44728 Bug 1030192 - Part 3: Factor out DirectProxyHandler. (r=bholley) 2014-09-09 12:09:45 -07:00
Eric Faust 57bd4de2e4 Bug 1031092 - Part 2: Factor out BaseProxyHandler. (r=bholley) 2014-09-09 12:09:45 -07:00
Eric Faust 0c4327b43f Bug 1031092 - Part 1: Move jsproxy.* to new js/src/proxy/. (r=bholley)
--HG--
rename : js/src/jsproxy.cpp => js/src/proxy/jsproxy.cpp
rename : js/src/jsproxy.h => js/src/proxy/jsproxy.h
2014-09-09 12:09:45 -07:00
Irving Reid d5feb83b80 Bug 1064424 - Use Timestamp::ProcessCreation to calculate Cu.now(). r=bz 2014-09-08 14:15:04 -04:00
ProgramFOX f85d7e6ce3 Bug 948379: Added int32x4 border test cases; r=bbouvier 2014-09-06 11:21:28 +02:00
Luke Wagner 917d692479 Bug 1064668 - OdinMonkey: Only add AsmJSActivation to profiling stack after it is fully initialized (r=djvj) 2014-09-09 11:35:07 -05:00
Luke Wagner 856798cdc0 Bug 1064668 - OdinMonkey: Maintain correct offsets for src line info (r=bbouvier)
--HG--
extra : rebase_source : 62f73408bf57b273d9e043dc93be013a7d085a84
2014-09-09 11:33:56 -05:00
Kannan Vijayan 7b21808c59 Backout 0abf93858f17 for bustage on CLOSED TREE r=tbpl-red 2014-09-09 11:43:28 -04:00
Bobby Holley 01390fc30d Bug 1064437 - Remove Proxy special-case in ForceCOWBehavior. r=gabor 2014-09-09 08:21:45 -07:00
Kannan Vijayan 4736cfc4d0 Bug 1057082 - Part 2 - Fix JitcodeGlobalEntry comparison function and add helper debug methods. r=luke 2014-09-09 11:11:35 -04:00
Jan de Mooij 42c230d84d Bug 1002473 part 2 - Remove Baseline IsTopFrameConstructing and simplify the code. r=nbp 2014-09-09 16:57:07 +02:00
Brian Hackett 7f465e0a47 Bug 1059459 - Tolerate resume points with constants defined later in the block when unrolling loops, r=jandem. 2014-09-09 08:23:44 -06:00
Brian Hackett 1ab12e0244 Bug 1063182 - Always instantiate types for objects written to by Ion SETPROP caches, r=jandem. 2014-09-09 08:21:13 -06:00
Brian Hackett 5f4a0db072 Bug 1054601 - Don't unroll loops which aren't actually loops, r=jandem. 2014-09-09 08:15:35 -06:00
Jan de Mooij d3a44f6093 Bug 1064777 part 1 - Remove CNG check in TypeScript::InitObject. r=bhackett 2014-09-09 15:11:24 +02:00
Bobby Holley ad40fc3b65 Bug 1064550 - Remove xpcWrappedJSErrorReporter. r=bz
Given that the JS engine always clears exceptions immediately after reporting
them, the empty body after JSREPORT_IS_EXCEPTION causes us to eat exceptions
here.
2014-09-08 22:22:19 -07:00
Chris Peterson d126c3c24f Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem 2014-07-21 21:43:21 -07:00
Shu-yu Guo f353135bf9 Bug 1056411 - Part 2: Remove the JSAPI C debug mode functions. (r=jimb) 2014-09-08 21:03:31 -07:00
Shu-yu Guo c2475516fe Bug 1056411 - Part 1: Remove DebugFromC and clean up compartment debug mode logic. (r=jimb) 2014-09-08 21:03:31 -07:00
Shu-yu Guo 634925d6a5 Bug 1057156 - Remove dead GlobalObject::addDebugger. (r=jimb) 2014-09-08 21:03:31 -07:00
Shu-yu Guo 89ff546770 Bug 1060572 - Skip inner asm.js functions in D.S.p.getChildScripts. (r=jimb) 2014-09-08 21:03:30 -07:00
Jeff Walden 4116b28a2b Bug 1019838 - Various non-unified compilation bustage fixes. r=bustage in a CLOSED TREE 2014-09-08 19:33:58 -07:00
Gokcehan Kara b2b634e5b6 Bug 1019838 - Fix various leaks in dosprintf (in jsprf.cpp and nsTextFormatter.cpp). r=jwalden
--HG--
extra : rebase_source : d0dff2bfa1590db460729f412e92c9ce9dfe1869
2014-09-08 17:26:49 -07:00
Jeff Walden d69330ead0 Bug 1064054 - Don't assert in baseline that JSOP_INITPROP is never used with __proto__, because it is for method definitions. r=shu
--HG--
extra : rebase_source : 2aefdcebe0d26560cce5237366f76e0f192ea28d
2014-09-08 17:18:53 -07:00
Jeff Walden 3cf0bd780e Bug 1064391 - Fix destructuring into a __proto__ pattern. r=shu
--HG--
extra : rebase_source : dcc08c49d028eeebdcfc1428502fe64e6286b930
2014-09-08 13:59:47 -07:00
Ehsan Akhgari 37098f6c5e Backed out changeset 9a796d86bae8 (bug 1063728) until people agree what they want to do here 2014-09-08 20:38:21 -04:00
Bobby Holley 87c9e0954f Bug 1062077 - Remove now-no-op error reporter munging in mozJSSubScriptLoader.cpp. r=bz
In the past this might theoretically have switched us from
NS_ScriptErrorReporter to xpc::SystemErrorReporter, but those have now been
merged.
2014-09-08 16:30:12 -07:00
Bobby Holley 9ff6cd212d Bug 1062077 - Merge NS_ScriptErrorReporter and xpc::SystemErrorReporter. r=bz
We keep the latter name because it's referenced in more places. Error reporters
will go away entirely in bug 981187.
2014-09-08 16:30:11 -07:00
Bobby Holley 0ffae4a42a Bug 1062077 - Switch SystemErrorReporter to xpc::ErrorReport. r=bz 2014-09-08 16:30:11 -07:00
Bobby Holley 7ba663f3ec Bug 1062077 - Hoist console logging duties into xpc::ErrorReport. r=bz 2014-09-08 16:30:11 -07:00
Bobby Holley e85bd78d5d Bug 1062077 - Introduce xpc::ErrorReport. r=bz
I've got it! Let's just wrap the JS thing in an XPCOM thing that duplicates
its fields with a different ownership model! We totally need another one of
those, right? And we could even stick it in XPConnect! </sarcasm>

In seriousness - the code to own, format, and display error reports is
currently spread between the JS engine, JSErrorReporters, an async Runnable
abstraction, and elsewhere. We need to condense it somewhere to start chipping
away at this mess.
2014-09-08 16:30:10 -07:00
Bobby Holley 06cc2ae3c2 Bug 1062631 - Remove exception swallowing code in NS_ScriptErrorReporter. r=bz
See bug 1062631 comment 0.
2014-09-08 13:36:22 -07:00
Bobby Holley 0c8cf16e5b Bug 1062631 - Fix up content QI security check and tests. r=bz
This stuff is broken in a bunch of ways. The test isn't doing the right thing
because it's using SpecialPowers. When we pass the content object to
xpconnectArgument(), it gets wrapped in a SpecialPowers wrapper, so the check
succeeds, only to fail down the line when the QI method is actually invoked
with an IID (which we can't pass to content scopes anyway).

This whole security check is probably useless given the above, but let's be
safe, make it a bit more robust, and fix up the test while we're at it.
2014-09-08 13:36:21 -07:00
Aleksandar Zlicic 7be7c1afee Bug 1061562 - IonMonkey MIPS: Fix build failures on MIPS caused by SIMD changes r=nbp 2014-09-04 18:11:49 +02:00
Boris Zbarsky 12857de707 Bug 1063521. Remove the WANT_OUTER_OBJECT classinfo flag, since it's now unused. r=bholley 2014-09-08 10:05:11 -04:00
Johannes Schulte 389029b078 Bug 1059241 - Don't mark array as non-packed, when calling pop() . r=bhackett 2014-09-04 14:26:50 +02:00
Brian Hackett 97130a2dda Bug 1063598 - Infer constant properties even when the type property has not yet been instantiated, r=jandem. 2014-09-07 10:27:31 -06:00
Phil Ringnalda d2bd0b3039 Backed out changeset 7e55ef1c49d1 (bug 1063598) for assertion failures
CLOSED TREE
2014-09-06 22:40:45 -07:00
Brian Hackett 2c905451f3 Bug 1063180 - Don't continue analyzing new script properties after the new script has been cleared, r=jandem. 2014-09-06 21:52:31 -06:00
Brian Hackett 8b6aac3a67 Bug 1063598 - Infer constant properties even when the type property has not yet been instantiated, r=jandem. 2014-09-06 21:50:58 -06:00
ziyunfei 9b5d989b59 Bug 1063915 - Make dumpValue() support symbols. r=evilpie 2014-09-06 18:21:20 +08:00
Wes Kocher cff080e6ec Back out 11 changesets (bug 1063233 and bug 1063247)
* * *
Backed out changeset 7c7c837585fb (bug 1063233)
* * *
Backed out changeset e584d23b3ce3 (bug 1063233)
* * *
Backed out changeset ee169ca2e00b (bug 1063247)
* * *
Backed out changeset 514c713b2313 (bug 1063247)
* * *
Backed out 3 changesets (bug 1063247)

Backed out changeset a6033944c4c1 (bug 1063247)
Backed out changeset c7ffa64956c6 (bug 1063247)
Backed out changeset dd80b2984fe2 (bug 1063247)
* * *
Backed out 4 changesets (bug 1063233)

Backed out changeset 1f6db27e6240 (bug 1063233)
Backed out changeset b8e3d887faa2 (bug 1063233)
Backed out changeset 8e1913c07322 (bug 1063233)
Backed out changeset 04d42b23a489 (bug 1063233)
2014-09-05 17:42:45 -07:00
Jim Blandy eeb67c06a0 Bug 1063233: Re-include js/src/jit/JitOptions.cpp in UNIFIED_SOURCES. r=none 2014-09-05 15:05:40 -07:00
Ehsan Akhgari bf881ddde5 Bug 1063728 - Run check_spidermonkey_style.py before starting to build; r=jandem 2014-09-05 18:00:24 -04:00
Jim Blandy c46d5a6268 Bug 1063233: Remove use of UbiNode.h from IonCode.h, with consequent changes; Windows non-unified builds seem to be unhappy with it. CLOSED TREE r=bustage 2014-09-05 14:57:42 -07:00
Tom Schuster dcb538e74a Bug 1061270 - Fix crash with cross-compartment Set cloning. r=luke 2014-09-05 23:17:39 +02:00
Ehsan Akhgari 37ea61cf99 Bustage fix for bug 1060976, irc-r=efaust, landed on a CLOSED TREE 2014-09-05 15:47:00 -04:00
Ehsan Akhgari 21a9749477 Bug 1060976 - Fix more bad implicit constructors in the JS engine; r=jorendorff 2014-09-05 15:11:39 -04:00
Boris Zbarsky b0b2acb195 Bug 1017424 part 9. Remove redundant xpconnect code looking for ChromeWindow/ModalContentWindow classes. r=bholley 2014-09-05 14:28:46 -04:00
Boris Zbarsky 7dd6d51191 Bug 1017424 part 7. Remove code to handle XPConnect window wrappers from WindowNamedPropertiesHandler and XPCJSRuntime. r=peterv 2014-09-05 14:28:45 -04:00
Boris Zbarsky 4532962c88 Bug 1017424 part 5. Remove classinfo for Window. r=peterv 2014-09-05 14:28:45 -04:00
Boris Zbarsky b197b61892 Bug 1017424 part 4. Remove Web IDL quickstubs for Window. r=peterv 2014-09-05 14:28:44 -04:00
Jim Blandy bad296b02c Bug 1063247: Include declaration for JS::dbg::SetDebuggerMallocSizeOf. CLOSED TREE r=bustage 2014-09-05 11:24:51 -07:00
Jim Blandy fd3073d0be Bug 1063247: Stop checking for malloc_size; we need to get the header file righ. CLOSED TREE r=bustage 2014-09-05 11:11:35 -07:00
Jim Blandy 71484f95ca Bug 1063247: Let embeddings tell Debugger how to find the size of a malloc'd block of memory. r=terrence 2014-09-05 10:43:36 -07:00
Jim Blandy 796704a305 Bug 1063247: Amend JS::ubi::Node::size and its implementations to expect a mozilla::MallocSizeOf function. r=terrence
Note that JS::ubi::Node::size has no callers at present, so we can change its
type without changing any callers.
2014-09-05 10:43:35 -07:00
Jim Blandy 96c87e3727 Bug 1063247: Allow implicit construction of JS::ubi::Node from JS::HandleValue. r=terrence
This seems reasonable, since a ubi::Node is really just a pointer with some
introspection support, so the value and the Node are pretty similar. And I don't
see cases where you'd want an error.
2014-09-05 10:43:35 -07:00
Jim Blandy 2987a288ea Bug 1063233: Move JS::ubi::Node support for js::types::TypeObject next to where it is declared/defined. r=terrence 2014-09-05 10:37:19 -07:00
Jim Blandy 5d4c33121b Bug 1063233: Move JS::ubi::Node support for js::jit::JitCode next to where it is declared/defined. r=terrence 2014-09-05 10:37:19 -07:00
Jim Blandy f45cc6900e Bug 1063233: Move JS::ubi::Node support for js::Shape and js::BaseShape next to their declarations and definitions. r=terrence 2014-09-05 10:36:07 -07:00
Jim Blandy 2f06da2369 Bug 1063233: Move JS::ubi::Node support for js::LazyScript to sit next to the rest of LazyScript's implementation. r=terrence 2014-09-05 10:34:03 -07:00
Jim Blandy 724dc1950b Bug 1062089: Rename js/public/DebugAPI.h to js/public/Debug.h. It's a public header file; *obviously* it's an API. r=jorendorff
--HG--
rename : js/public/DebugAPI.h => js/public/Debug.h
2014-09-05 10:32:29 -07:00
Hannes Verschore 6724407033 Bug 1061646 - Inline CheckForInterrupt on windows, just like we do on linux, r=jorendorff 2014-09-05 18:28:15 +02:00
Brian Hackett a299798558 Bug 1061318 - Improve type information for RegExp.exec result objects, r=h4writer. 2014-09-05 09:27:21 -06:00
Brian Hackett a08965c116 Bug 1062648 - Treat scripts which have been ion compiled or inlined before as hot enough to inline, r=h4writer. 2014-09-05 09:20:39 -06:00
Chris Peterson 7bea2be20a Bug 1036781 - Part 12: Replace MOZ_ASSUME_UNREACHABLE with MOZ_CRASH in js/src/jit. r=jandem 2014-08-21 21:48:01 -07:00
Nicholas Nethercote 94bc3e8dde Bug 1040593 (attempt 2) - Partly allocate elements for |new Array(N)| when N > 2048. r=jandem,bhackett.
--HG--
extra : rebase_source : 2bcccb3aa1543649eb30cd8c43680fc09ec6df91
2014-08-27 23:35:57 -07:00
Wes Kocher edce5ffd3c Backed out changeset 94eed55e5a5b (bug 1040593) on a CLOSED TREE 2014-09-04 18:00:59 -07:00
Nicholas Nethercote 10873906cf Bug 1040593 - Partly allocate elements for |new Array(N)| when N > 2048. r=jandem,bhackett.
This patch makes |new Array(N)| always allocate at least
|EagerAllocationsMaxLength| elements up front.

It also changes |EagerAllocationsMaxLength| from 2048 to 2046, so that when the
two extra slots needed for |ObjectElements| are included, the resulting
allocation size is a power-of-two.

--HG--
extra : rebase_source : 17e069bc9d39c5d5ee957a99e11ab189f7493540
2014-08-27 23:35:57 -07:00
Jim Blandy 48ad8c1cc3 Bug 1061961: Fully initialize ScriptSourceObjects built by XDR and for Function.prototype. r=shu 2014-09-04 15:40:10 -07:00