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

48656 Коммитов

Автор SHA1 Сообщение Дата
Chris Peterson 987f3c1f53 Bug 1125698 - Add ExpandErrorArguments() varargs helper function and remove uninitialized `dummy` va_list variable. r=Waldo 2015-01-25 18:38:28 -08:00
Mike Hommey b077d9624d Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
L. David Baron 831b749b58 Backed out changeset e942133b1f9b (bug 1149769) for jittest-2, jsreftest, and spidermonkey test failures, on a CLOSED TREE.
--HG--
rename : js/src/tests/js1_8_5/reflect-parse/destructuring__proto__.js => js/src/tests/js1_8_5/extensions/reflect-parse-destructuring-__proto__.js
rename : js/src/tests/js1_8_5/reflect-parse/proxyArgs.js => js/src/tests/js1_8_5/extensions/reflect-parse-proxy.js
2015-03-31 19:37:54 -07:00
Eric Faust ab2801e6d7 Bug 1149769 - Split reflect-parse.js reftest into its own subdirectory. (r=Waldo)
--HG--
rename : js/src/tests/js1_8_5/extensions/reflect-parse-destructuring-__proto__.js => js/src/tests/js1_8_5/reflect-parse/destructuring__proto__.js
rename : js/src/tests/js1_8_5/extensions/reflect-parse-proxy.js => js/src/tests/js1_8_5/reflect-parse/proxyArgs.js
2015-03-31 18:29:10 -07:00
Tom Schuster ac250f9d73 Bug 1147005 - Change JSAddPropertyOp signature. r=jorendorff,peterv 2015-03-28 14:47:02 +01:00
Sean Stangl eba440e824 Bug 1148375 - Ignore unhandled Elements. r=jandem 2015-03-30 13:34:19 -07:00
Sean Stangl a0f2b74c75 Bug 1146619 - Rename "Prolog" to "Prologue" everywhere. r=efaust 2015-03-23 14:13:26 -07:00
Boris Zbarsky ab624ae20e Bug 1149280 part 1. Make nullprincipal creation faster. r=smaug 2015-03-31 13:11:00 -04:00
Boris Zbarsky c35c1ecc2e Bug 1148973. When skipping shape guards in Ion common getter/setter code because the object has a non-configurable property, first verify that its current shape matches the shape we're using to compile our code. r=jandem 2015-03-30 23:44:01 -04:00
Terrence Cole fe2626ebf3 Bug 1147670 - Remove duplicate IsMarked/IsAboutToBeFinalized for off-thread use; r=jonco 2015-03-26 10:47:44 -07:00
Nicolas B. Pierron 1b1fed738d Bug 1134626 part 1 - Move all x86-shared files into their own directory. r=jandem
--HG--
rename : js/src/jit/shared/Assembler-x86-shared.cpp => js/src/jit/x86-shared/Assembler-x86-shared.cpp
rename : js/src/jit/shared/Assembler-x86-shared.h => js/src/jit/x86-shared/Assembler-x86-shared.h
rename : js/src/jit/shared/AssemblerBuffer-x86-shared.cpp => js/src/jit/x86-shared/AssemblerBuffer-x86-shared.cpp
rename : js/src/jit/shared/AssemblerBuffer-x86-shared.h => js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h
rename : js/src/jit/shared/BaseAssembler-x86-shared.h => js/src/jit/x86-shared/BaseAssembler-x86-shared.h
rename : js/src/jit/shared/BaselineCompiler-x86-shared.cpp => js/src/jit/x86-shared/BaselineCompiler-x86-shared.cpp
rename : js/src/jit/shared/BaselineCompiler-x86-shared.h => js/src/jit/x86-shared/BaselineCompiler-x86-shared.h
rename : js/src/jit/shared/BaselineIC-x86-shared.cpp => js/src/jit/x86-shared/BaselineIC-x86-shared.cpp
rename : js/src/jit/shared/CodeGenerator-x86-shared.cpp => js/src/jit/x86-shared/CodeGenerator-x86-shared.cpp
rename : js/src/jit/shared/CodeGenerator-x86-shared.h => js/src/jit/x86-shared/CodeGenerator-x86-shared.h
rename : js/src/jit/shared/Constants-x86-shared.h => js/src/jit/x86-shared/Constants-x86-shared.h
rename : js/src/jit/shared/Disassembler-x86-shared.cpp => js/src/jit/x86-shared/Disassembler-x86-shared.cpp
rename : js/src/jit/shared/Encoding-x86-shared.h => js/src/jit/x86-shared/Encoding-x86-shared.h
rename : js/src/jit/shared/LIR-x86-shared.h => js/src/jit/x86-shared/LIR-x86-shared.h
rename : js/src/jit/shared/Lowering-x86-shared.cpp => js/src/jit/x86-shared/Lowering-x86-shared.cpp
rename : js/src/jit/shared/Lowering-x86-shared.h => js/src/jit/x86-shared/Lowering-x86-shared.h
rename : js/src/jit/shared/MacroAssembler-x86-shared.cpp => js/src/jit/x86-shared/MacroAssembler-x86-shared.cpp
rename : js/src/jit/shared/MacroAssembler-x86-shared.h => js/src/jit/x86-shared/MacroAssembler-x86-shared.h
rename : js/src/jit/shared/MoveEmitter-x86-shared.cpp => js/src/jit/x86-shared/MoveEmitter-x86-shared.cpp
rename : js/src/jit/shared/MoveEmitter-x86-shared.h => js/src/jit/x86-shared/MoveEmitter-x86-shared.h
rename : js/src/jit/shared/Patching-x86-shared.h => js/src/jit/x86-shared/Patching-x86-shared.h
2015-03-31 14:30:41 +02:00
Mike Hommey bd5f80575d Bug 1149416 - Don't make free-nonheap-object warning an error on a CLOSED TREE . r=glandium 2015-03-31 16:36:37 +09:00
Shu-yu Guo 9c4897ec79 Bug 1145781 - Fix hazard on a CLOSED TREE. 2015-03-30 23:56:53 -07:00
Chris Peterson 0d8c63ab94 Bug 1083498 - Remove SpiderMonkey's nonstandard behavior for destructuring for..in loops in JS1.7. r=jorendorff 2015-03-23 20:43:10 -07:00
Shu-yu Guo 67fd53e740 Bug 1118865 - Relax assertion in DebugScopeProxy::isMagicMissingArgumentsValue. (r=nbp) 2015-03-30 22:26:43 -07:00
Shu-yu Guo d6762d23a7 Bug 1145781 - Unlazify functions when getting their debug scopes. (r=jimb) 2015-03-30 22:26:43 -07:00
L. David Baron 45f7af0cb3 Back out changeset 501a8f687a91 (bug 1148973) for widespread test bustage. 2015-03-30 21:51:41 -07:00
Boris Zbarsky a6e4c12439 Bug 1148973. When skipping shape guards in Ion common getter/setter code because the object has a non-configurable property, first verify that its current shape matches the shape we're using to compile our code. r=jandem 2015-03-30 23:44:01 -04:00
Bill McCloskey 11851d2c88 Bug 1148962 - Use TakeOwnershipOfErrorReporting in CPOW code (r=bholley) 2015-03-30 20:13:06 -07:00
Wes Kocher 57d47ad975 Backed out changeset 399c30b5e357 (bug 1145781) for bc1 orange CLOSED TREE
--HG--
extra : amend_source : e1df0c6ff3c1b8939a287a02355ffe75a718033e
2015-03-30 18:50:06 -07:00
Wes Kocher 620a898f95 Backed out changeset 912d7039be45 (bug 1118865) 2015-03-30 18:50:05 -07:00
Wes Kocher 3570779694 Backed out changeset a9137f699a08 (bug 1146696) for cgc orange CLOSED TREE 2015-03-30 16:23:49 -07:00
Eric Faust 3cba916b7f Bug 1145795 - Remove LJSCallInstructionHelper::numStackArgs() footgun. (r=jandem) 2015-03-30 15:29:18 -07:00
Eric Faust 24e5bff8a4 Bug 1147581 - Remove the now defunct TMPSLOT mechanism. (r=jorendorff) 2015-03-30 15:29:16 -07:00
Shu-yu Guo 0db8b8164e Bug 1118865 - Relax assertion in DebugScopeProxy::isMagicMissingArgumentsValue. (r=nbp) 2015-03-30 15:25:06 -07:00
Shu-yu Guo 563ee14859 Bug 1145781 - Unlazify functions when getting their debug scopes. (r=jimb) 2015-03-30 15:25:06 -07:00
Terrence Cole f7a8d43601 Bug 1147669 - Replace id marking functions with TraceEdge; r=jonco
--HG--
extra : rebase_source : 44ba3b4c1b581873ee3fcade3af6ed9d407b9b93
2015-03-26 10:23:30 -07:00
Terrence Cole 1ba8bfe1dd Bug 1147665 - Replace value marking functions with TraceEdge; r=jonco
--HG--
extra : rebase_source : a98597b77a7ea5b1489d526122cf11da57fd3f31
2015-03-26 10:23:27 -07:00
Terrence Cole 926bb80b05 Bug 1147588 - Replace slots marking functions with TraceEdge; r=jonco
--HG--
extra : rebase_source : 49ab5df46f66896ea8bd47ee1d9f80fef0b0f41b
2015-03-26 10:23:26 -07:00
Terrence Cole 84990b5a8f Bug 1147533 - Add cross-compartment tracing methods via the new tracing paths; r=jonco
--HG--
extra : rebase_source : 1a28fde1abe96b6d9048409ff46da1250e8e6952
2015-03-26 10:17:51 -07:00
Terrence Cole 25366d2606 Bug 1147180 - Replace the generic Mark functions with TraceEdge; r=jonco
--HG--
extra : rebase_source : 116cf115658d6b710048381a1916431ebea3b71c
2015-03-24 14:37:16 -07:00
Terrence Cole 017640936f Bug 1147180 - Introduce a new, strongly-typed tracing path; r=jonco, r=sfink
--HG--
extra : rebase_source : 8eb525ad1842240a20d9c94faac284dd5adadb4a
2015-02-26 14:15:26 -08:00
Jon Coppeard eb57959ceb Bug 1146696 - Don't assume there are no arenas available after last ditch GC. r=terrence
--HG--
extra : rebase_source : 20fc89a49cda291b70b1155f78bf9aac51cb94e9
2015-03-30 11:03:35 +01:00
Andrew McCreight 2f48802ae0 Bug 1147572 - Remove implementation language field from DOM class info. r=jst 2015-03-30 10:45:39 -07:00
Andrew McCreight 89727e3fac Bug 1147951, part 3 - Remove unnecessary includes of nsIProgrammingLanguage. r=baku 2015-03-30 10:45:39 -07:00
Tom Tromey 878c34ac31 Bug 979094 - Fix ending location of variable declaration. r=jimb 2015-03-27 08:38:00 -04:00
Ryan VanderMeulen 9b6ccab847 Backed out changesets 490d2e6a5026 and f1bd22adbd0c (bug 1146696) for frequent mochitest-bc leaks.
CLOSED TREE
2015-03-30 11:36:59 -04:00
Jan de Mooij d7048c7469 Bug 1148880 - Make Trampoline-arm.cpp compile with Clang again. r=nbp 2015-03-30 15:29:29 +02:00
Jon Coppeard 0a665301a5 Bug 1146696 - Fix test failures on windows cgc builds r=me 2015-03-30 13:32:31 +01:00
Jon Coppeard 62eec7cee8 Bug 1146696 - Don't assume there are no arenas available after last ditch GC r=terrence 2015-03-30 11:03:35 +01:00
Andrew McCreight 46dfeaba0b Bug 1148070 - Change nsIClassInfo::getHelperForLanguage() to getScriptableHelper(). r=bholley 2015-03-29 07:52:54 -07:00
Andrew McCreight 69bad032ab Bug 1147967 - Remove CreateStackFrameLocation. r=bholley
This method is defined on nsIXPConnect and StackFrame, but is not used.

Also the non-default constructor that for StackFrame that is no longer used.
2015-03-29 07:52:53 -07:00
Brian Hackett 93182b7b9b Bug 1142843 - Optimize accesses through prototypes with typed object receivers in baseline and ion, r=jandem. 2015-03-28 17:03:45 -07:00
Jan de Mooij b8b1677f0f Bug 1144366 - Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff 2015-03-28 23:22:11 +01:00
Emanuel Hoogeveen ac0b81cd97 Bug 1148214 - Replace manual AllocKind range checks with a few centralized functions. r=terrence 2015-03-26 17:07:00 -04:00
Phil Ringnalda bdfca27768 Backed out 7 changesets (bug 1147588, bug 1147669, bug 1147533, bug 1147665, bug 1135985, bug 1147180, bug 1147670) for frequent 10.10 devtools-2 GC assertion failures
CLOSED TREE

Backed out changeset 0bd8c4ec41fa (bug 1147670)
Backed out changeset 35ad82ff9ee7 (bug 1147669)
Backed out changeset ffe7f2e2a0f0 (bug 1147665)
Backed out changeset 37c42cff2c01 (bug 1147588)
Backed out changeset be4138f208ba (bug 1147533)
Backed out changeset 6bbd529bd995 (bug 1147180)
Backed out changeset 853e3ad56dad (bug 1135985)
2015-03-28 10:41:32 -07:00
Phil Ringnalda c8a25251c1 Backed out changeset 0c030f97a04f (bug 1144366) for being on top of patches being backed out
CLOSED TREE
2015-03-28 10:39:56 -07:00
Phil Ringnalda 70731646e2 Backed out changeset d72144153749 (bug 1147005) for being on top of a patch on top of a patch being backed out
CLOSED TREE
2015-03-28 10:39:09 -07:00
Tom Schuster 8a5dbf7c06 Bug 1147005 - Change JSAddPropertyOp signature. r=jorendorff,peterv 2015-03-28 14:47:02 +01:00
Jan de Mooij 8d6d44ecb8 Bug 1144366 - Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff 2015-03-28 12:08:37 +01:00
Wes Kocher 18a6da0131 Merge m-c to inbound a=merge
--HG--
extra : rebase_source : 31afc1b4de1d4c9d48057dbbe0d96e7c385bf2dc
2015-03-27 17:31:19 -07:00
Nicolas B. Pierron ec1f0abb85 Bug 1145811 - Remove simdSet argument of PushRegsInMask. r=bbouvier 2015-03-28 01:08:13 +01:00
Nicolas B. Pierron eb662504c1 Bug 1143011 - Use AllocatableSet or LiveSet for all register set uses. r=jandem 2015-03-28 01:08:12 +01:00
Nicolas B. Pierron b775223668 Bug 1143011 - Extract the has/add/take logic out of the register sets to distinguish between allocatable and live sets. r=jandem,Waldo 2015-03-28 01:08:12 +01:00
Wes Kocher f7b636d799 Merge fx-team to m-c a=merge 2015-03-27 16:52:38 -07:00
Ryan VanderMeulen 97e5856337 Backed out 2 changesets (bug 854037, bug 1146644) for LexicalEnvironment/const-declaration-in-for-loop.js jsreftest failures.
Backed out changeset 2d59ec36a2e4 (bug 854037)
Backed out changeset 031ded170326 (bug 1146644)

CLOSED TREE
2015-03-27 13:28:58 -04:00
Nicolas B. Pierron ccb0a2a4b7 Bug 1134074 - IonBuilder: Atomize strings when inlining String.split. r=djvj 2015-03-27 17:40:57 +01:00
Jeff Walden 5bb4485558 Bug 854037 - Make lexical declarations in the initializing component of a for(;;) loop create a fresh binding for each iteration of the loop. r=shu
--HG--
extra : rebase_source : 2e34e927af8c674b0a5597c7bd7f3c3e3842af6c
2015-03-27 12:29:50 -04:00
Ryan VanderMeulen da1028199c Merge m-c to fx-team. a=merge 2015-03-27 12:21:41 -04:00
Jon Coppeard c05411817f Backed out changeset 49aa36d0b28a and eaf2526ffd90 (bug 1146696) for jit-test failures on a CLOSED TREE 2015-03-27 15:04:35 +00:00
Jon Coppeard 1fb886e76c Bug 1146696 - Fix testcase not to over-recurse r=me on a CLOSED TREE 2015-03-27 13:55:07 +00:00
Jeff Walden c74e3d6143 Bug 1146644 - Don't assert compiling a for-loop with a const loop-variable declaration. r=shu
--HG--
extra : rebase_source : e490335dfef3b2851808643c1a23104ee27d6df9
2015-03-26 14:12:31 -04:00
Douglas Crosher cdcd24c1a7 Bug 1147353 - Odin: simplify the masked index bounds check test. r=sfink, r=luke 2015-03-26 10:04:05 +11:00
Jeff Walden d82e49937f Bug 1145058 - Annotate the SpeciesConstructor utility function with step-by-step comment numbering to make clear where we do (and do not!) follow the spec. Also fix issues related to our half-pretense of implementing this method without having first implemented the well-known @@species symbol. r=efaust 2015-03-25 23:33:49 -04:00
Benjamin Bouvier 9a884f454c Bug 1146311: Make some SIMD nodes cloneable and movable; r=sunfish
--HG--
extra : rebase_source : 91d2e3953d8bf089c84a2bafa718c4d8ff7e1cb1
extra : amend_source : 6f3ebd9acdde1524fcc22301d111201f4af86a24
2015-03-23 13:41:10 +01:00
Benjamin Bouvier ff20d99b23 Bug 1147405: Have math_ceil_handle use setNumber rather than setDouble; r=nbp
--HG--
extra : rebase_source : a08f4f08ca3fdb323671bd7d91974c04aed79168
extra : amend_source : 75d36c6d9076038d80756d4eb3d58c6becf647ec
2015-03-26 15:44:55 +01:00
Benjamin Bouvier 1b253da1ec Bug 1147662: LexicalCheck should be a guard, so as not to be removed; r=shu
--HG--
extra : rebase_source : cbf32b1a882d03d40fa71f67edccf90fc3d9bafb
extra : amend_source : 398562a1029a863c704ed6c9ad0b7598ff02b9bf
2015-03-26 12:59:26 +01:00
Lars T Hansen 3bb7364380 Bug 1146902 - be smarter about inlining atomics. r=jandem 2015-03-27 12:38:36 +01:00
Jon Coppeard ad8510d648 Bug 1146696 - Don't assume there are no arenas available after last ditch GC r=terrence 2015-03-27 10:20:53 +00:00
Lars T Hansen b7bbc0176d Bug 1147810 - a barriered load has an effect. r=luke 2015-03-27 10:11:42 +01:00
Boris Zbarsky 7d653b6c34 Bug 1147907. Relax our realParent asserts in CloneFunction a bit, pending a proper fix for bug 1143794. r=luke 2015-03-26 23:03:20 -04:00
Boris Zbarsky a8ca10408d Bug 1142844. When xdr-decoding a non-lazy but relazifiable function, don't forget to set up the source object on the LazyScript we create for it. r=luke 2015-03-26 23:02:55 -04:00
Dave Townsend eb35f7fae8 Bug 1144750: Don't attempt to report errors that will cause the warnings only reporter to assert. r=bholley
--HG--
extra : rebase_source : 328482c7113e94c9dc698fc65766021a41079c71
extra : source : 7588e6588dd381d20d81ef8f0b4be1bfc0d6eefc
2015-03-18 14:51:18 -07:00
Wes Kocher fd52ad5f87 Backed out changeset 7588e6588dd3 (bug 1144750) for static analysis failures 2015-03-26 15:52:13 -07:00
Dave Townsend 42af708faa Bug 1144750: Don't attempt to report errors that will cause the warnings only reporter to assert. r=bholley
--HG--
extra : rebase_source : afcab129d7daa4690fca49fc5940f23f0ca3f5ac
2015-03-18 14:51:18 -07:00
Hannes Verschore 280c006f7c Bug 1146410: IonMonkey: Make it possible to print typeset information anywhere, r=jandem 2015-03-26 12:14:03 +01:00
Hannes Verschore 275a0fea18 Bug 1146410: IonMonkey: When filtering IsObject use the correct type, r=jandem 2015-03-26 12:14:01 +01:00
Dan Gohman 9c0cf46ac4 Bug 1135903 - OdinMonkey: Make signal-handler OOB checking an independent configuration r=luke 2015-03-25 14:15:46 -07:00
Jason Orendorff 28e06d157a Bug 1138489 - Remove JSPROP_INDEX. r=Waldo.
--HG--
extra : rebase_source : 1683c18d73088c5a4b6136fe4bb7bc0422912e71
extra : amend_source : c79c4ea47e00e6d9d9f786151bd1ab62dd00b78a
2015-03-02 10:20:56 -06:00
Jason Orendorff 1def388b28 Bug 1142794 - Change 'receiver' argument to SetProperty functions and ProxyHandler::set methods to be a HandleValue. r=Waldo.
Also: Change signature of these functions and methods to all have the same arguments in the same order: (cx, obj, id, v, receiver). Also change v from MutableHandleValue to HandleValue.

There is no change in behavior.

In fact the new error message `JSMSG_SET_NON_OBJECT_RECEIVER` is
impossible to trigger from scripts for now, I think (after re-reading
the whole patch with this in mind). JS_ForwardSetPropertyTo is the only
way to get a non-object receiver into the engine, but no caller
currently does so.

We're installing new pipes here, and they should work, but for now it's
the same cold water flowing through as before. Actually hooking up the
hot water is left for another bug (one with tests, not to put too fine a
point on it).

Notes:

*   InvokeGetterOrSetter had to be split into two functions:
    InvokeGetter takes a MutableHandleValue out-param,
    InvokeSetter a HandleValue in-param.

*   Watchpoints can still tamper with values being assigned. So can
    JSSetterOps. I'm pleased we can support this craziness in a way that
    doesn't have to spread via the type system to encompass the entire
    codebase.

*   Change in GlobalObject::setIntrinsicValue is not really a change.
    Yes, it asserted before, but an exception thrown during self-hosting
    initialization is not going to go unnoticed either.

*   Since the receiver argument to js::SetProperty() is at the end now, it
    makes sense for it to be optional. Some callers look nicer.

--HG--
extra : rebase_source : e89f916fe267800bc73890e11aceef5c4855b272
2015-03-01 13:16:19 -06:00
Jason Orendorff d75b325fbd Bug 1146165 - Stop calling Proxy::set directly from Ion IC stub. EmitObjectOpResultCheck is retained because GenerateCallSetter still uses it in the JSSetterOp case. r=efaust.
--HG--
extra : rebase_source : 42edfbee94962a2cd51f7b1db59e6fe21b5da3d6
2015-03-22 14:54:48 -05:00
Heiher b54d7b7c2b Bug 1147908 - IonMonkey: MIPS: Fix UDiv and UMod for double and merge them. r=rankov
--HG--
extra : rebase_source : 7b95e47ae2a14e8722e614fa1690bff407b661ad
2015-03-26 08:13:00 -04:00
Aleksandar Zlicic 602297b4ae Bug 1147424 - IonMonkey MIPS: Fix build failures on MIPS caused by recent updates (MacroAssemblerMIPS::ma_b). r=rankov
--HG--
extra : rebase_source : 8c5881cbe3969520dfc03d9330636862c1a18abd
2015-03-25 18:50:06 +01:00
Emanuel Hoogeveen 57363bd72d Bug 1146662 - Refactor ArenasToUpdate::next to work with a range-based for loop. r=jonco
--HG--
extra : rebase_source : 256a9dfa651f57907ac9b1c09b467095bf4ebe85
2015-03-26 09:50:00 -04:00
Marc Nieper-Wißkirchen 853bacc103 Bug 1133529 - Parametrize MVariadicInstruction to allow for MVariadicControlInstructions. r=luke
--HG--
extra : rebase_source : 2e4b780d153d20122c30323047153d2ed3eed32e
2015-03-27 00:28:00 -04:00
Jason Orendorff fae53e811b Bug 1142784, part 3 - Change js::DefinePropertyOp and a few property-defining functions to use PropertyDescriptor rather than separate (value, attrs, getter, setter) arguments. r=Waldo.
--HG--
extra : rebase_source : 77cca13d3d8e33831cd5cb82129ede3645e58374
2015-02-28 11:23:44 -06:00
Jason Orendorff 2e5f991fe0 Bug 1142784, part 2 - Change ProxyHandler::defineProperty() to make the desc argument a non-mutable handle. r=Waldo.
--HG--
extra : rebase_source : c40a50b3522e8306d68d8114fe576d4f43006d82
2015-02-17 11:58:43 -06:00
Jason Orendorff 092c7ab1e2 Bug 1142784, part 1 - In NativeObject.cpp, move some Lookup functions out of the way and make a big swath of this file the [[DefineOwnProperty]] section. r=Waldo.
--HG--
extra : rebase_source : 538dc782303a9e5920581789caebb739d3718dd3
2015-02-17 12:01:54 -06:00
Jason Orendorff cfa924afa0 Bug 1142775 - Rename NativeSet -> NativeSetExistingDataProperty and simplify it since it is only called for data properties. Delete Shape::set. Add comments. No change in behavior. r=efaust.
--HG--
extra : rebase_source : 9b47668e82807fab4d576ef012a449e7bd147096
2015-02-28 14:40:07 -06:00
Steve Fink 2f8f528a55 Bug 1126544 - Update sixgill to handle more constructs and manage memory better
--HG--
extra : rebase_source : 646d280634ca386ad94c93dc592cdacdac14c9c1
2015-03-06 14:25:00 -08:00
Steve Fink 5f3c77b286 Bug 1146520 - Do not treat osx arm-sim as a cross-compile, r=woof!
--HG--
extra : rebase_source : 9fcab74384fdf1f0a73522d48bd0e2c19a56316e
2015-03-25 07:55:53 -07:00
Steve Fink 07b383ea8a Bug 1135399 - Timeout shell builds, r=catlee
--HG--
extra : rebase_source : 71b02418a159108cf48e0e9ed6bb862120f6ca76
2015-03-18 10:59:17 -07:00
Bill McCloskey a9569d4725 Bug 997325 - Implement main process scriptable only flag in XPIDL (r=mrbkap) 2015-03-26 14:39:48 -07:00
Sean Stangl 961f8fff12 Bug 1145882 - Part 2/2 - Add -v and --version. r=evilpie 2015-03-20 15:51:42 -07:00
Sean Stangl 7ec0ab3c22 Bug 1145882 - Part 1/2 - Only use $PYTHON after defined by MOZ_PYTHON. r=glandium 2015-03-20 15:19:43 -07:00
Shu-yu Guo e3c68e7891 Bug 1147686 - Make mutableScript private and only use it when hasScript. (r=terrence) 2015-03-26 14:16:58 -07:00
Shu-yu Guo 8e3a893b5d Bug 1147224 - Only keep the optimization information of the last time IonBuilder visits a bytecode location. (r=djvj) 2015-03-26 14:16:58 -07:00
Luke Wagner 4c44332a0c Bug 1147144 - OdinMonkey: fix toString() on asm.js module when source discarding is enabled (r=bbouvier)
--HG--
extra : rebase_source : b8ec54fdbae503230efb4a1eb74638254c32b6c3
2015-03-26 14:37:19 -05:00
Bobby Holley 125cbceb13 Bug 1147215 - Add a helper to get the current window with a null check. r=smaug 2015-03-26 12:24:53 -07:00
Steve Fink 255b85b7d9 Bug 1056410 - Add edge between internal destructors, r=terrence
--HG--
extra : rebase_source : 265688cbfbbba56c1138b232c9f8a7cff57115a2
2014-08-29 15:59:06 -07:00
Andrew McCreight 98776f80a0 Bug 1149807 - Remove some unused nsIProgrammingLanguage.h includes. r=froydnj 2015-04-02 14:54:46 -07:00
Shu-yu Guo bc9fd9bf3d Bug 1137569 - Delay stringification of JIT frames until streaming time. (r=djvj) 2015-04-02 14:50:08 -07:00
Eric Faust 322b516b68 Bug 1149769 - Split reflect-parse.js reftest into its own subdirectory. (r=Waldo)
--HG--
rename : js/src/tests/js1_8_5/extensions/reflect-parse-destructuring-__proto__.js => js/src/tests/js1_8_5/reflect-parse/destructuring__proto__.js
rename : js/src/tests/js1_8_5/extensions/reflect-parse-proxy.js => js/src/tests/js1_8_5/reflect-parse/proxyArgs.js
2015-03-31 18:29:10 -07:00
Nicolas B. Pierron 37bff0a779 Bug 1149510 - Initialize the MachineState with safe-bad pointers. r=jandem 2015-04-02 23:26:54 +02:00
Nicolas B. Pierron b54e1474e4 Bug 1134626 part 2 - Move x86 & x64 Architecture into a shared file. r=jandem
--HG--
rename : js/src/jit/x64/Architecture-x64.h => js/src/jit/x86-shared/Architecture-x86-shared.h
2015-04-02 23:26:53 +02:00
Ryan VanderMeulen 1689cff541 Backed out changesets 72e99bad5294 and 2b873082da2f (bug 1138881) for browser_vimemacs.js crashes.
CLOSED TREE
2015-03-25 13:59:38 -04:00
Nicolas B. Pierron 8b7b5a0f30 Bug 1121613 - Move MacroAssemblerSpecific::Push to the generic MacroAssembler. r=jandem 2015-03-25 17:34:19 +01:00
Brian Hackett 533750696e Bug 1143256 - Store object metadata using a weak map, r=luke. 2015-03-25 09:07:51 -07:00
Hannes Verschore f7921e40a3 Bug 1138881 - IonMonkey: Allow fixing andor blocks which have MFilterTypeSet, r=bhackett 2015-03-25 16:15:28 +01:00
Hannes Verschore 275f9c89cf Bug 1138881 - IonMonkey: Improve types at AndOr, r=bhackett 2015-03-25 16:15:27 +01:00
Nicolas B. Pierron 3c0f21390e Bug 1130089 - Use constexpr for JitStackValueAlignment. r=bbouvier 2015-03-25 15:59:02 +01:00
Nicolas B. Pierron bbc2a008bc Bug 1092544 - Use assertRecoveredOnBailout in the test suite. r=bbouvier 2015-03-25 15:50:36 +01:00
Nicolas B. Pierron 4aafb330eb Bug 1092544 - Assert that instructions are recovered on bailouts. r=bbouvier 2015-03-25 15:50:35 +01:00
Jan de Mooij 2ebce4887b Bug 1146520 - Fix some minor autospider issues on OS X. r=sfink
--HG--
extra : rebase_source : a4c8dcd1c8dd4030bbf4d701d8b2ac4ea4c70b5a
2015-03-25 15:15:25 +01:00
Jan de Mooij d5c5888aa1 Bug 1142669 part 6 - Don't inline scripts that are known to inline a lot of code. r=h4writer
--HG--
extra : rebase_source : 8e65320cf77ff74941515f39cbe390c286a03e33
2015-03-25 15:15:23 +01:00
Jan de Mooij d0cbc885d0 Bug 1143704 part 14 - Change newSrcNote* to return bool instead of int. r=luke
--HG--
extra : rebase_source : 879295c6c6c4b5c803815f674c13f5fe2ce5671e
2015-03-24 09:45:24 +01:00
Jan de Mooij fa6c9b1288 Bug 1143704 part 13 - Make emitJump, emitN etc return bool instead of ptrdiff_t. r=luke
--HG--
extra : rebase_source : 0723816f7e0f8f8bc2adefee462b50767e57fe54
2015-03-24 09:45:22 +01:00
Jan de Mooij dd8f6429b6 Bug 1143704 part 12 - Move remaining functions to BytecodeEmitter. r=bhackett
--HG--
extra : rebase_source : d707ed9dededc0adaabce0ba45747def58b9655a
2015-03-24 09:45:17 +01:00
Jon Coppeard df9acd13cd Bug 1144738 - Check for invalidated script when updating SetPropertyIC cache r=jandem 2015-03-25 10:49:52 +00:00
Lars T Hansen 50332264f3 Bug 1141121 - Immediate operands to atomics, x86 and x64. r=h4writer 2015-03-25 10:51:12 +01:00
Shu-yu Guo 7ffeda127c No bug - Fix typo in MissingScopeKey comment. No review. 2015-03-24 18:49:16 -07:00
Shu-yu Guo d935dadedc Bug 1146718 - Split the 'J' tag in the profiler into 'J' (JIT frames without opt info) and 'O' (with opt info). (r=djvj) 2015-03-24 18:49:16 -07:00
Mike Hommey d767b2e1ac Bug 1142908 - Avoid arm simulator builds being considered cross-compiled. r=sfink 2015-03-25 08:06:27 +09:00
Boris Zbarsky 51cc84236b Bug 1146979. When cloning objects in self-hosting preserve the property attributes of the properties (or at least the readonly/configurable attributes). r=till 2015-03-24 18:32:48 -04:00
Boris Zbarsky 9a87e20280 Bug 1146743. Remove use of compileAndGo in JS debugger. r=shu 2015-03-24 18:32:48 -04:00
Hannes Verschore 05c11b07d3 Bug 1145416 - IonMonkey: Add range to MFilterTypeSet, r=nbp 2015-03-24 23:03:35 +01:00
Hannes Verschore 0e9392422b Bug 1143878: IonMonkey: Test conversion of MToInt32 for testing congruence, r=jandem 2015-03-24 23:03:32 +01:00
Terrence Cole 5798244efa Bug 977308 - Pre-tenure all objects attached to scripts; r=sfink
--HG--
extra : rebase_source : d5638a91ffca3008b353d68f480014066c94a2d1
2015-03-24 10:51:07 -07:00
Terrence Cole dd4ddb761b Bug 1135985 - Split callback and marking tracers completely; r=jonco, r=mccr8
--HG--
extra : rebase_source : b2e435ebf64ec0bac42af7a8f0968578599fd67b
2015-02-25 13:11:37 -08:00
Terrence Cole 1ef53522bf No Bug - Document the allocation functions; r=sfink
--HG--
extra : rebase_source : ae2b8c74fec4b57d714ad1be27fddaa1c1785ae5
2015-03-23 14:24:41 -07:00
Tom Schuster bd6cbbf2d8 Bug 1103344 - Object.assign should stop when an exception is thrown. r=till 2015-03-24 22:37:35 +01:00
Tooru Fujisawa 0ab6f5ff1f Bug 1142351 - Part 2: Warn about deprecated flag argument for String.prototype.{search,match,replace}. r=jandem 2015-03-25 00:36:35 +09:00
Tooru Fujisawa 0493238e94 Bug 1142351 - Part 1: Collect telemetry about deprecated flag argument for String.prototype.{search,match,replace}. r=jandem 2015-03-25 00:36:33 +09:00
Christian Holler 2a0a4d6ec0 Bug 1146895 - Remove redundant __asan_default_options from JS shell. r=jandem 2015-03-24 15:40:32 +01:00
Emanuel Hoogeveen 15f33e4bda Bug 1143042 - Switch AllocKind iteration over to range-based for loops. r=terrence
--HG--
extra : rebase_source : 301622627350bf423f8e4dcae0b882f1f9b2bde5
2015-03-21 14:35:00 -04:00
Tom Tromey b666b3fcfc Bug 1145149 - Include IntegerPrintfMacros in PerfSpewer.cpp. r=Waldo 2015-03-19 06:45:00 -04:00
Heiher 3765a594ec Bug 1146223 - IonMonkey: MIPS: Fix a typo in storeFloat32x3. r=bbouvier 2015-03-22 20:54:00 -04:00
Heiher 2d0e7d7bf2 Bug 1141921 - OdinMonkey: MIPS: Fix callJitFromAsmJS to push return address. r=nbp 2015-03-19 03:29:00 -04:00
Jon Coppeard 535ee047bf Bug 1141563 - Don't update Shapes in parallel after compacting GC r=terrence 2015-03-23 17:06:45 +00:00
Lars T Hansen 7530a5ce91 Bug 1146364 - use resumeAfter after effectful instructions. r=nbp 2015-03-24 09:06:03 +01:00
Nicholas Nethercote 3a86eefdcd Bug 1146216 - Remove MakeSlotArray(), because it's dead. r=terrence.
--HG--
extra : rebase_source : 34e575f632ba58052ddaece47f3180ecc40c449d
2015-03-22 19:40:23 -07:00
Shu-yu Guo ff15a447de Bug 1145924 - Ensure JSRuntime is kept in sync with the profiler. (r=djvj) 2015-03-23 20:33:01 -07:00
Boris Zbarsky da29ffd385 Bug 1146472 part 2. Use JSOP_NEWOBJECT as needed even if the script is not compile-and-go. r=luke 2015-03-23 20:37:31 -04:00
Boris Zbarsky 64eb476fc9 Bug 1146472 part 1. Don't do object-kind guessing for object literal templates in scripts, since we in fact know exactly how many slots we want them to have and hence what the kind should be. r=terrence 2015-03-23 20:37:30 -04:00
Terrence Cole f174c824a1 Bug 1144931 - Move gray buffering code to RootMarking.cpp; r=jonco
--HG--
extra : rebase_source : 684ef52c0ee78ab9d8a77199af461e32a044b9bc
2015-03-19 13:38:11 -07:00
Terrence Cole b7c1bdf80d Bug 1144925 - Buffer gray roots using a CallbackTracer instead of the GCMarker; r=jonco
--HG--
extra : rebase_source : 6b952295709d61e4c24ab0d502a8329b94af2266
2015-03-19 13:37:52 -07:00
Jason Orendorff c27c772b49 Bug 1142761 - Move CallSetter into ScriptedIndirectProxyHandler so it will eventually be deleted along with its only remaining caller. r=efaust.
--HG--
extra : rebase_source : c755d285b273a0e7342a478b0751883f65b7d1ab
extra : amend_source : ad32fcfc9b2a9c446bfcf1be3010580c3bdfb720
extra : source : 1519b8f2bbba393de20366c782f0590ddb290b42
2015-02-28 11:49:49 -06:00
Jason Orendorff 453e39c072 Bug 1139683 - Rewrite SetExistingProperty with comments and references to the standard. r=efaust.
--HG--
extra : rebase_source : c2f9c45464ae1eb7bc8ef7e19788e9dcfb6eef4d
extra : source : 26fd5567784152b092a241061771552eb8c0004a
2015-02-16 10:48:07 -06:00
Jason Orendorff 49d436c7c7 Bug 1144819 - Change JS_DefineProperty APIs to treat getter=nullptr and setter=nullptr as indicating class getter/setter ops only for data properties. r=Waldo.
--HG--
extra : rebase_source : e830197dc8c5543b730351f42b658ac3493ebfbd
extra : source : 7ebc76a450c31ef5b8c53482f3a9ad830bc96ee8
2015-03-16 20:28:44 -05:00
Jason Orendorff c74a306ad4 Bug 1143810 - Remove some XPConnect JSClass::setProperty hooks that are not needed anymore. r=bholley.
--HG--
extra : rebase_source : 92dff40805b956b3b703f75a2512344b9ef0f777
extra : source : 92adb459d519c7d0c6fd08e234dafd3f6f660a14
2015-03-13 14:43:48 -05:00
Steve Fink b865c47548 Bug 1125412 - Draw a graph of memory usage, r=terrence
--HG--
extra : rebase_source : bf1f136bd06665349fc1f68eec2aec87b7bff4e4
2015-01-26 16:52:46 -08:00
Steve Fink 9c855788fb Bug 1125412 - Expose an object for inspecting GC memory values, r=terrence
--HG--
extra : rebase_source : c98affaa7f01beb0757256cbe4d63bd78e297dac
2015-01-26 15:32:54 -08:00
Jim Blandy 2825048c96 Bug 1146267: Define XP_DARWIN as appropriate in js/src stand-alone builds. r=sfink
--HG--
extra : rebase_source : 0ecd1f65aa210c4a692d852859ed81951b514b90
2015-03-23 12:33:03 -07:00
Guillaume Maudoux 3387d4307b Bug 731683 - IonMonkey: Improve Ion compilation/bailouts checks. r=nbp
* * *
Introduce a warmup reset counter

--HG--
extra : transplant_source : X%DD1%5B%8F%D0%3D%B4%1B%F9%F7%C9%D9%96%8A%5DR%C8%20%91
2015-03-15 01:45:06 +01:00
Jim Blandy be4c8ae31e Bug 1146156: Add RR support to js/src/tests/jstests.py. r=nbp
--HG--
extra : rebase_source : 8b9c654db673383ddf0c645d331e8813043c370f
extra : histedit_source : 7af0d7deb4786add100653f32e4f046d6303df36
2015-03-21 17:34:45 -07:00
Boris Zbarsky ee2ffbbfc9 Bug 1145491 part 7. Stop checking compileAndGo before emitting GNAME ops. r=luke 2015-03-20 21:34:19 -04:00
Boris Zbarsky aa7430e61e Bug 1145491 part 6. Fix script cloning to propagate the polluted-global-scope state to the lambda templates in the script. r=luke 2015-03-20 21:34:18 -04:00
Boris Zbarsky 0ee526e128 Bug 1145491 part 5. Fix up various other places that check for JSOP_GET/SETNAME without checking for the GNAME versions too. r=luke 2015-03-20 21:34:18 -04:00
Boris Zbarsky dfb8cedba5 Bug 1145491 part 4. Emit JSOP_IMPLICITTHIS for JSOP_GETGNAME as well, because otherwise bareword calls in polluted-global scripts won't work right. r=luke 2015-03-20 21:34:18 -04:00
Boris Zbarsky 96f5b25ca3 Bug 1145491 part 3. Only do the fast path for JSOP_SETGNAME and JSOP_STRICTSETGNAME when the script doesn't have a polluted global. r=luke,jandem 2015-03-20 21:34:18 -04:00
Boris Zbarsky 2d34843d6c Bug 1145491 part 2. Only do the fast path for JSOP_GETGNAME when the script doesn't have a polluted global. r=luke,jandem 2015-03-20 21:34:18 -04:00
Boris Zbarsky 91cd7cf1ae Bug 1145491 part 1. Only do the fast path for JSOP_BINDGNAME when the script doesn't have a polluted global. r=luke,jandem 2015-03-20 21:34:18 -04:00
Boris Zbarsky 8481b8ca9f Bug 1145488. Stop using compileAndGo in the JITs. r=jandem 2015-03-20 21:34:18 -04:00
Brian Hackett f8c02740d9 Bug 1145426 - Fix compilation of unboxed object construction stubs on ARM and x86, r=jandem. 2015-03-23 08:06:40 -07:00
Maksim Lebedev 814ff7c30f Bug 1105766 - Part 2: A couple of additions to enable compilation on Windows Phone 8. r=terrence r=ehoogeveen 2015-03-21 15:24:00 +01:00
Emanuel Hoogeveen 9a8fc8b96d Bug 1105766 - Part 1: Extend the GC allocation logic to work on Windows Phone. r=terrence
--HG--
extra : rebase_source : d364f7743766dd059cd5e95295590224a3d3eaec
2015-03-21 15:22:00 +01:00
Benjamin Bouvier 7f11646965 Bug 1144692: Fix --disable-ion builds; r=h4writer
--HG--
extra : amend_source : f53a8fb37dbb3e79268b4ca50efb3a4b06e1d8bd
2015-03-23 07:59:36 +01:00
Phil Ringnalda c4745d28b1 Backed out 9 changesets (bug 1142775, bug 1139683, bug 1143810, bug 1142761, bug 1142784, bug 1142794, bug 1144819) for widespread bustage
CLOSED TREE

Backed out changeset 7613fc978d36 (bug 1142794)
Backed out changeset e5f0cb31263d (bug 1142784)
Backed out changeset dcd0af73ac84 (bug 1142784)
Backed out changeset 034f9c8e79ee (bug 1142784)
Backed out changeset ce0ee37e3ca9 (bug 1142775)
Backed out changeset 1519b8f2bbba (bug 1142761)
Backed out changeset 26fd55677841 (bug 1139683)
Backed out changeset 7ebc76a450c3 (bug 1144819)
Backed out changeset 92adb459d519 (bug 1143810)
2015-03-22 09:34:25 -07:00
Jason Orendorff 735dca6f1b Bug 1142794 - Change 'receiver' argument to SetProperty functions and ProxyHandler::set methods to be a HandleValue. r=Waldo.
Also: Change signature of these functions and methods to all have the same arguments in the same order: (cx, obj, id, v, receiver). Also change v from MutableHandleValue to HandleValue.

There is no change in behavior.

In fact the new error message `JSMSG_SET_NON_OBJECT_RECEIVER` is
impossible to trigger from scripts for now, I think (after re-reading
the whole patch with this in mind). JS_ForwardSetPropertyTo is the only
way to get a non-object receiver into the engine, but no caller
currently does so.

We're installing new pipes here, and they should work, but for now it's
the same cold water flowing through as before. Actually hooking up the
hot water is left for another bug (one with tests, not to put too fine a
point on it).

Notes:

*   InvokeGetterOrSetter had to be split into two functions:
    InvokeGetter takes a MutableHandleValue out-param,
    InvokeSetter a HandleValue in-param.

*   Watchpoints can still tamper with values being assigned. So can
    JSSetterOps. I'm pleased we can support this craziness in a way that
    doesn't have to spread via the type system to encompass the entire
    codebase.

*   Change in GlobalObject::setIntrinsicValue is not really a change.
    Yes, it asserted before, but an exception thrown during self-hosting
    initialization is not going to go unnoticed either.

*   Since the receiver argument to js::SetProperty() is at the end now, it
    makes sense for it to be optional. Some callers look nicer.

--HG--
extra : rebase_source : 68cd15627a62728061e663706cb1ff8c7bb292a0
2015-03-01 13:16:19 -06:00
Jason Orendorff a5c5338e0f Bug 1142784, part 3 - Change js::DefinePropertyOp and a few property-defining functions to use PropertyDescriptor rather than separate (value, attrs, getter, setter) arguments. r=Waldo.
--HG--
extra : rebase_source : a177bc1d8991f24652b4e629da5eaa52d9d4a59c
2015-02-28 11:23:44 -06:00
Jason Orendorff db04193771 Bug 1142784, part 2 - Change ProxyHandler::defineProperty() to make the desc argument a non-mutable handle. r=Waldo.
--HG--
extra : rebase_source : 92dd18b10e100e7e2537c151a21d4f3be37e1c08
2015-02-17 11:58:43 -06:00
Jason Orendorff c9896079b5 Bug 1142784, part 1 - In NativeObject.cpp, move some Lookup functions out of the way and make a big swath of this file the [[DefineOwnProperty]] section. r=Waldo.
--HG--
extra : rebase_source : b37456f33319b428dfbdc1b1c4270d7ea2d758a9
2015-02-17 12:01:54 -06:00
Jason Orendorff 39c8858336 Bug 1142775 - Rename NativeSet -> NativeSetExistingDataProperty and simplify it since it is only called for data properties. Delete Shape::set. Add comments. No change in behavior. r=efaust.
--HG--
extra : rebase_source : c9800f8ab602dae9e3da09a14a70f47ebd3fa86c
2015-02-28 14:40:07 -06:00
Jason Orendorff 53fd691536 Bug 1142761 - Move CallSetter into ScriptedIndirectProxyHandler so it will eventually be deleted along with its only remaining caller. r=efaust.
--HG--
extra : rebase_source : e6500d49877741ec992114a392ac0ad0cceb1da5
2015-02-28 11:49:49 -06:00
Jason Orendorff 800363dd52 Bug 1139683 - Rewrite SetExistingProperty with comments and references to the standard. r=efaust.
--HG--
extra : rebase_source : 780fb68a7ad32993b615a08fd43357b230d10d7d
2015-02-16 10:48:07 -06:00
Jason Orendorff 951bae6812 Bug 1144819 - Change JS_DefineProperty APIs to treat getter=nullptr and setter=nullptr as indicating class getter/setter ops only for data properties. r=Waldo.
--HG--
extra : rebase_source : eb14d7bbd47d57eb9b8168ee4d5e064dcc3c596d
2015-03-16 20:28:44 -05:00
Jason Orendorff 73269b1dad Bug 1143810 - Remove some XPConnect JSClass::setProperty hooks that are not needed anymore. r=bholley.
--HG--
extra : rebase_source : 94898ab662a5b57f7170cb9a504fe8eb64dded9a
2015-03-13 14:43:48 -05:00
Jim Blandy 62ae929398 Bug 1140773: Address review comments. r=shu 2015-03-21 23:37:47 -07:00
Jim Blandy a0c02e8e15 Bug 1140773: Ensure that GCParallelTask subclasses properly join at the start of their destructor. r=shu
--HG--
extra : rebase_source : 552a1f4a49e5c1a0164c97795788578731896c78
extra : amend_source : ad83004645c2e71443008d3e12f1d49fbd7df266
2015-03-21 22:18:50 -07:00
Shu-yu Guo c169a99c98 Bug 1143286 - Fix terminating scope assertion in DebugScopeObject. (r=jimb) 2015-03-21 14:11:14 -07:00
Shu-yu Guo 23132a22c5 Bug 1143194 - Skip JSTRY_FOR_OF when unwinding exceptions. (r=jorendorff) 2015-03-21 14:11:14 -07:00
Shu-yu Guo 132d074b5c Bug 1143194 - Handle JSTRY_FOR_OF in TI. (r=bhackett) 2015-03-21 14:11:14 -07:00
Shu-yu Guo 3153dbad9d Bug 1143194 - Make trynote checking in BytecodeParse clearer. (r=jorendorff) 2015-03-21 14:11:14 -07:00
Shu-yu Guo 0c2245089a Bug 1143194 - Rename JSTRY_ITER to JSTRY_FOR_IN. (r=jorendorff) 2015-03-21 14:11:14 -07:00
Shu-yu Guo 3bca61f7a5 Bug 1143194 - Handle JSTRY_FOR_OF when bailing out in-place from Ion for debug mode. (r=jandem) 2015-03-21 14:11:14 -07:00
Shu-yu Guo ad0d736971 Bug 1143194 - Emit JSTRY_FOR_OF notes for for-of loops. (r=jorendorff) 2015-03-21 14:11:14 -07:00
Tom Schuster 936b3f4a37 Bug 1138157 - Change ScriptedDirectProxyHandler to inherit from BaseProxyHandler. r=efaust
This avoids the fallback behavior from DirectProxyHandler, which can't handle revoked proxies correctly.

Test created by André Bargull and me.
2015-03-21 20:30:57 +01:00
Jim Blandy 664a32d9e7 Bug 1134039: Make SpiderMonkey standalone (JS_STANDALONE) builds use jemalloc and mozglue by default. r=glandium
JS_STANDALONE builds don't need everything in mozglue; have mozglue omit the
unneeded code for such builds.

Since the SpiderMonkey binaries are now more like the other Gecko binaries, we
can remove some special cases for JS_STANDALONE in GeckoSharedLibrary,
GeckoProgram, etc. All Gecko binaries now use mozglue, which contains mfbt, so
we no longer need mention mfbt explicitly.

Add a property to the getBuildConfiguration testing function's result that
indicates whether we're using jemalloc or not.

Include the newly necessary source directories in the SpiderMonkey source
package.
2015-03-19 02:12:53 -07:00
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Jan de Mooij 10bf1e34ef Bug 1143704 part 11 - Move more functions into BytecodeEmitter. r=jorendorff 2015-03-21 12:55:54 +01:00
Jan de Mooij 9b3f5153d2 Bug 1143704 part 10 - Move more functions into BytecodeEmitter. r=efaust 2015-03-21 12:55:52 +01:00
Jan de Mooij 8123dc0764 Bug 1143704 part 9 - Move more functions into BytecodeEmitter. r=shu 2015-03-21 12:55:46 +01:00
Jan de Mooij 9579f08ed8 Bug 1143704 part 8 - Move more functions into BytecodeEmitter. r=luke 2015-03-21 12:55:42 +01:00
Jan de Mooij cf9bd1071f Bug 1143704 part 7 - Move more functions into BytecodeEmitter. r=bhackett 2015-03-21 12:54:18 +01:00
Jan de Mooij 71389afa0d Bug 1143704 part 6 - Move more functions into BytecodeEmitter. r=efaust 2015-03-21 12:54:18 +01:00
Jan de Mooij 9d8d957e80 Bug 1143704 part 5 - Add a cx member to BytecodeEmitter. r=Waldo 2015-03-21 12:54:17 +01:00
Jan de Mooij 3c7c172cd1 Bug 1143704 part 4 - Turn Emit1 into a BytecodeEmitter method. r=bhackett 2015-03-21 12:54:09 +01:00
Jan de Mooij 03311b21b2 Bug 1143704 part 3 - Make EmitLoopHead return bool instead of ptrdiff_t. r=shu 2015-03-21 12:53:46 +01:00
Jan de Mooij ff00302f97 Bug 1143704 part 2 - Make Emit3/EmitCall/EmitBackPatchOp return bool instead of ptrdiff_t. r=jorendorff 2015-03-21 12:53:46 +01:00
Jan de Mooij 4adefdc46b Bug 1143704 part 1 - Make Emit1/Emit2 return bool instead of ptrdiff_t. r=luke 2015-03-21 12:53:43 +01:00
Tom Schuster 448b35420a Bug 1145326 - String#normalize form parameter might not be an atom. r=Waldo 2015-03-21 13:12:25 +01:00
Jan de Mooij cf52d0c317 Bug 1142669 part 5 - Lower inliningMaxCallerBytecodeLength from 10000 to 1500. r=h4writer 2015-03-21 12:33:41 +01:00
Wes Kocher 35ee79b993 Backed out changeset 17eec5f30889 (bug 1145488) for ggc orange 2015-03-20 22:40:05 -07:00
Wes Kocher 687d354d5b Backed out 7 changesets (bug 1145491) for ggc orange
Backed out changeset 8d14c6661f00 (bug 1145491)
Backed out changeset 7be39afdf528 (bug 1145491)
Backed out changeset 8066b21e74a0 (bug 1145491)
Backed out changeset 151e4cdb34cf (bug 1145491)
Backed out changeset 97b16da6169b (bug 1145491)
Backed out changeset cddba378a563 (bug 1145491)
Backed out changeset 80344fd40d6b (bug 1145491)
2015-03-20 22:39:44 -07:00
Shu-yu Guo edfb53a32f Bug 1145440 - Ship constant names for tracked strategy and outcomes in the profile JSON instead of slightly longer form strings. (r=djvj) 2015-03-20 20:48:32 -07:00
Shu-yu Guo 7fa429d624 Bug 1143860 - Deduplicate tracked optimizations when streaming the profile. (r=djvj) 2015-03-20 20:48:31 -07:00
Shu-yu Guo 255786d723 Bug 1143860 - Add column number to PCToLineNumber. (r=djvj) 2015-03-20 20:48:30 -07:00
Boris Zbarsky 0d2e2370d6 Bug 1145491 part 7. Stop checking compileAndGo before emitting GNAME ops. r=luke 2015-03-20 21:34:19 -04:00
Boris Zbarsky c3e2519d34 Bug 1145491 part 6. Fix script cloning to propagate the polluted-global-scope state to the lambda templates in the script. r=luke 2015-03-20 21:34:18 -04:00
Boris Zbarsky 8fd50b3afc Bug 1145491 part 5. Fix up various other places that check for JSOP_GET/SETNAME without checking for the GNAME versions too. r=luke 2015-03-20 21:34:18 -04:00
Boris Zbarsky 05d0d8b68a Bug 1145491 part 4. Emit JSOP_IMPLICITTHIS for JSOP_GETGNAME as well, because otherwise bareword calls in polluted-global scripts won't work right. r=luke 2015-03-20 21:34:18 -04:00
Boris Zbarsky 9581a58fe2 Bug 1145491 part 3. Only do the fast path for JSOP_SETGNAME and JSOP_STRICTSETGNAME when the script doesn't have a polluted global. r=luke,jandem 2015-03-20 21:34:18 -04:00
Boris Zbarsky fcb4bec8e2 Bug 1145491 part 2. Only do the fast path for JSOP_GETGNAME when the script doesn't have a polluted global. r=luke,jandem 2015-03-20 21:34:18 -04:00
Boris Zbarsky 29fe53049b Bug 1145491 part 1. Only do the fast path for JSOP_BINDGNAME when the script doesn't have a polluted global. r=luke,jandem 2015-03-20 21:34:18 -04:00
Boris Zbarsky bda6c70e4a Bug 1145488. Stop using compileAndGo in the JITs. r=jandem 2015-03-20 21:34:18 -04:00
Ryan VanderMeulen 6fa51cb894 Backed out changeset d3c9b899f7d2 (bug 1143256) for frequent browser_perf-refresh.js leaks.
--HG--
extra : rebase_source : d8872879f2e6bec248ac3a5fc8b254be437abea0
2015-03-20 16:07:42 -04:00
Benjamin Bouvier 49ceac7a99 Bug 1143758: Invalidate script when a lexical check has failed; r=shu
--HG--
extra : rebase_source : 22eb2091c3b463bc7ec9625c9a82b9a40d11baaf
2015-03-17 19:23:44 +01:00
Benjamin Bouvier 62b073d29a Bug 1143758: Make LexicalCheck movable and bailout when a lexical isn't initialized; r=shu
--HG--
extra : rebase_source : 8961129cee5ee1aba41df41c7ca17dda14ad189d
2015-03-20 16:28:58 +01:00
Benjamin Bouvier 7319a01bdc Bug 1135042: Optimize SIMD.storeX/storeXY/storeXYZ in Ion; r=bhackett
--HG--
extra : rebase_source : 50d909f342f6ed912aeb48a12590836bb9506af1
2015-03-19 13:50:56 +01:00
Benjamin Bouvier b554a521b3 Bug 1135042: Optimize SIMD.loadX/loadXY/loadXYZ in Ion; r=bhackett
--HG--
extra : rebase_source : b4c4b6c155477b14830880da44ba8ffbe161db4c
2015-03-20 19:36:16 +01:00
Nicolas B. Pierron b3f567f106 Bug 1138693 - Check if Loads can be optimized by Scalar Replcement. r=jandem 2015-03-20 19:16:47 +01:00
Kannan Vijayan 8299080b57 Bug 1143802 - Forward jit level information to profiler frontend. r=shu 2015-03-20 13:50:23 -04:00
Benjamin Bouvier 85d4ae78b7 Bug 1135428: Fix test to run with --no-asmjs as well on a CLOSED TREE; r=bustage
--HG--
extra : rebase_source : a836af726f8186db15429cd654737909e2817615
extra : amend_source : a030391bd18db4efe6ef283205e298d4ff57d282
2015-03-20 16:55:06 +01:00
Benjamin Bouvier 962b231116 Bug 1135039: Generalize SimdGeneralShuffle codegen; r=sunfish
--HG--
extra : rebase_source : f5debe17cc43e21c374405d94dded6bf6a3ad533
2015-03-12 14:58:59 +01:00
Benjamin Bouvier db1caa8757 Bug 1135039: Factor out LInstructionHelper/LVariadicInstruction code; r=sunfish
--HG--
extra : rebase_source : e1b6ff7dd63e18cfa9010b294dce14a4016fbf8b
2015-03-12 14:25:29 +01:00
Benjamin Bouvier 75db09e971 Bug 1135039: Generalize swizzle MIR node to SimdGeneralShuffle; r=sunfish
--HG--
extra : rebase_source : 0d6c1703c0285325929265820ddae2c08e0abaee
2015-03-18 20:07:45 +01:00
Benjamin Bouvier f41e9c3221 Bug 1135039: Implement LVariadicInstruction; r=sunfish
--HG--
extra : rebase_source : 5735970f6323083e66b3ba4780f6627f850dd26a
2015-03-12 14:01:29 +01:00
Nick Fitzgerald 3dc26340ad Bug 1144973 - Ensure that StringifySavedFrameStack puts its stack string in the cx's compartment. r=bz 2015-03-19 10:29:00 -04:00
Emanuel Hoogeveen 7738c1c171 Bug 1143966 - Remove type specifier from AllocKind to avoid miscompilations on GCC. r=terrence
--HG--
extra : rebase_source : a5478fcb4b834ff6ba798032f6dd4f8e1d28107d
2015-03-19 13:59:00 -04:00
Luke Wagner ec8e32a7cb Bug 1135428 - OdinMonkey: return nullptr, not false (r=warnings-as-errors CLOSED TREE) 2015-03-20 09:15:03 -05:00
Luke Wagner 8635de289b Bug 1135428 - OdinMonkey: remove compileAndGo restriction (r=bbouvier) 2015-03-20 08:52:14 -05:00
Brian Hackett 73cf6b02a1 Bug 1143256 - Store object metadata using a weak map, r=luke. 2015-03-20 06:33:33 -07:00
Jan de Mooij e5650a15ef Bug 1142669 followup - Move OffThreadCompilationAvailable definition outside namespace block. r=red CLOSED TREE 2015-03-20 14:14:06 +01:00
Jan de Mooij 1030a38246 Bug 1142669 part 4 - Fix some inlining issues and inline scripts with loops. r=h4writer 2015-03-19 15:10:07 +01:00
Jan de Mooij f51f2669f3 Bug 1142669 part 3 - Limit the total inlined bytecode size to avoid excessive inlining. r=h4writer 2015-03-20 13:45:36 +01:00
Jan de Mooij 4b629f9510 Bug 1142669 part 2 - Lower the script inlining size limit if off-thread compilation is not available. r=h4writer 2015-03-20 13:45:35 +01:00
Jan de Mooij 294fa048ff Bug 1142669 part 1 - Fix inliningMaxCallerBytecodeLength to return the correct value. r=h4writer 2015-03-20 13:45:35 +01:00
Brian Hackett 4fae716053 Bug 1137180 - Add baseline caches for extensible unboxed objects, and enable extensible unboxed objects (still off by default), r=jandem. 2015-03-20 04:03:20 -07:00
Steve Fink 675eddf5d8 Bug 1120655 - Bustage fix for single-arg constructor on a CLOSED TREE
--HG--
extra : rebase_source : 91856805ff90218db3e211761256fe183f408da8
2015-03-19 22:03:15 -07:00
Boris Zbarsky a310d66774 Bug 1145282. Reverse the sense of IsValidTerminatingScope and rename it to IsSyntacticScope. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky 9fb24e2658 Bug 1145294. Remove the obj argument from JS::CloneAndExecuteScript. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky e41b92481e Bug 1144802 part 8. Drop the scopechain member from GlobalSharedContext, since it's not needed anymore. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky 241a5fd903 Bug 1144802 part 7. Remove the scopechain walk in the FunctionBox constructor, since consumers should now set hasPollutedGlobalScope as needed. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky 7581e8beea Bug 1144802 part 6. Remove the scopechain walk in BytecodeEmitter::needsImplicitThis, since consumers should now set hasPollutedGlobalScope as needed. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky 80c254b355 Bug 1144802 part 5. Flag eval scripts as having a polluted scopechain when inside a with scope. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky a845fadd21 Bug 1144802 part 4. Stop returning true from ByteCodeEmitter::needsImplicitThis based on the compileAndGo flag. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky b0c5730d80 Bug 1144802 part 3. Output JSOP_GIMPLICITTHIS whenever we have a JSOP_GETNAME in call context and don't know for a fact that we need an implicit this. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky 1755aa5966 Bug 1144802 part 2. Add JIT and interpreter fast paths for JSOP_GIMPLICITTHIS when the script doesn't have a polluted scope. r=jandem 2015-03-20 00:34:08 -04:00
Boris Zbarsky 5de2bf72b5 Bug 1144802 part 1. Add a JSOP_GIMPLICITTHIS which acts like JSOP_IMPLICITTHIS when the script hasPollutedGlobalScope and JSOP_UNDEFINED otherwise. r=luke 2015-03-20 00:34:07 -04:00
Boris Zbarsky 6cf13b0fd2 Bug 1144743 part 6. Set the hasPollutedGlobalScope flag correctly when executing scripts. r=luke 2015-03-20 00:34:07 -04:00