Commit Graph

32884 Commits

Author SHA1 Message Date
Dan Gohman
d1334bbe31 Bug 998158 - SpiderMonkey: Simplify setSSECheckState(). r=sstangl 2014-04-21 17:35:00 -07:00
Dan Gohman
22e1966ad6 Bug 998158 - SpiderMonkey: Outline setSSECheckState(). r=sstangl 2014-04-21 17:34:59 -07:00
Dan Gohman
62a83f447c Bug 998158 - SpiderMonkey: Use specific feature tests instead of calling getSSEState() r=sstangl 2014-04-21 17:34:57 -07:00
Mauricio Collares Neto
a556b64049 Bug 976110 - Part 2: Clean up signed integer division by constants. r=sunfish 2014-04-21 17:27:40 -07:00
Wes Kocher
4ae3575a58 Backed out changeset 0c0a5a6b57d9 (bug 616491) for jsreftest failures 2014-04-21 16:11:20 -07:00
Jan de Mooij
9ad3bc1d1d Bug 998596 - Add ARM simulator status to getBuildConfiguration. r=terrence 2014-04-21 15:36:33 -07:00
Terrence Cole
292083af43 Bug 994281. r=sfink 2014-04-21 15:20:08 -07:00
Sean Stangl
51ed3914a2 Bug 616491 - Follow-up: detect over-recursion on Windows. r=mjrosenb 2014-04-08 13:51:37 -07:00
Wes Kocher
a5ffb1710b Backed out changeset 9e43ff213b64 (bug 616491) for bustage 2014-04-21 14:05:21 -07:00
Bill McCloskey
336243889e Bug 798678 - WeakMaps with keys from another compartment are possible and incorrect (tests) (r=mccr8) 2014-04-21 13:41:44 -07:00
Sean Stangl
2d77d09808 Bug 616491 - Follow-up: detect over-recursion on Windows. r=mjrosenb 2014-04-08 13:51:37 -07:00
Emanuel Hoogeveen
154e6b8187 Bug 997459 - Part 2: Coefficients for polevl_cos with fewer terms; potentially less precise, but more performant. r=sunfish
CLOSED TREE
2014-04-21 10:44:11 -04:00
Emanuel Hoogeveen
15aa33d555 Bug 997459 - Part 1: Coefficients for polevl_sin with lower mean error. r=sunfish 2014-04-21 10:16:18 -04:00
Bobby Holley
edb924cc7d Bug 993772 - Introduce a singleton compilation scope. r=mrbkap 2014-04-20 11:48:13 -07:00
Bobby Holley
61d6055556 Bug 993772 - Stop serializing principals along with scripts. r=mrbkap
The principal of a script is determined by the compartment these days, so this
field is useless.
2014-04-20 11:48:13 -07:00
Phil Ringnalda
bef7de24dc Merge m-i to m-c 2014-04-19 18:25:46 -07:00
Bobby Holley
65765653a9 Bug 998083 - Introduce Cu.getObjectPrincipal and kill nsIScriptSecurityManager::GetObjectPrincipal. r=gabor 2014-04-19 10:39:59 -07:00
Mauricio Collares Neto
e6753fd672 Bug 976110 - Part 1: Optimize signed integer division by constants; r=sunfish 2014-04-19 10:37:51 -07:00
Mauricio Collares Neto
395ac257b1 Bug 976110 - Part 0: Optimize division and modulus by negative powers of two; r=sunfish 2014-04-19 10:37:49 -07:00
Phil Ringnalda
380621d27b Back out 8 changesets (bug 990353) for gaia-integration bustage
CLOSED TREE

Backed out changeset f6b3c03454a4 (bug 990353)
Backed out changeset 6e1f9b821ae0 (bug 990353)
Backed out changeset 2926ad6c594f (bug 990353)
Backed out changeset 74b75c155205 (bug 990353)
Backed out changeset 394e09fe2da2 (bug 990353)
Backed out changeset 0fdd36b19a51 (bug 990353)
Backed out changeset 0792729890cc (bug 990353)
Backed out changeset 487e6f72fcf7 (bug 990353)
2014-04-19 08:37:32 -07:00
Jan de Mooij
53f8628554 Bug 976536 - Fix JSFunction::existingScript returning NULL in some cases. r=till 2014-04-19 13:45:59 +02:00
Bobby Holley
74a0a20129 Bug 990353 - Followup bustage fix. r=me 2014-04-19 00:40:18 -07:00
Bobby Holley
163413cd27 Bug 990353 - Flip off source discarding for XPCShell. r=fabrice 2014-04-18 23:46:27 -07:00
Bobby Holley
bad6050c41 Bug 990353 - Tests. r=bent 2014-04-18 23:46:27 -07:00
Bobby Holley
8b91401a8c Bug 990353 - Give tests/chrome its own moz.build file, like tests/mochitest. r=mshal
We also add a mochitest.ini file, which will eventually be used for http-served
files that are associated with chrome mochitests.
2014-04-18 23:46:27 -07:00
Bobby Holley
dbcade681f Bug 990353 - Flag for discarding where appropriate. r=bent 2014-04-18 23:46:27 -07:00
Bobby Holley
4568ed7b49 Bug 990353 - Add a pref for system source discarding. r=bent 2014-04-18 23:46:26 -07:00
Bobby Holley
660881d8c2 Bug 990353 - Make the decision to discard source entirely per-global, rather than per-script. r=luke
This is effectively a policy decision based on the kind of code we expect to be
running somewhere. This is in contrast to lazy source, which is often a practical
per-script consideration of whether or not we can retrieve the source if requested.

More importantly, tracking this information on the global is much easier to
get right than tracking it on the script.
2014-04-18 23:46:26 -07:00
Ryan VanderMeulen
6392bc9506 Merge m-c to inbound. 2014-04-18 22:08:16 -04:00
Ryan VanderMeulen
2075f95fc4 Merge inbound to m-c. 2014-04-18 22:00:13 -04:00
Dan Gohman
7506c29774 Bug 998155 - IonMonkey: Constify congruentTo and mightAlias. r=h4writer 2014-04-18 17:55:21 -07:00
Douglas Crosher
c762da0486 Land bug 996883. r=mjrosenb 2014-04-17 00:08:21 +10:00
Terrence Cole
842f2e539a Bug 807168 - Followup to fix an issue building on ancient GCC on a CLOSED TREE; r=Waldo 2014-04-18 11:19:16 -07:00
Dan Gohman
7e75935a45 Bug 998170 - IonMonkey: Eliminate LPhi's numInputs_ member. r=nbp 2014-04-18 11:13:44 -07:00
Dan Gohman
f770cf9d1a Bug 998167 - IonMonkey: Fix signed integer undefined behavior r=nbp 2014-04-18 11:13:44 -07:00
Dan Gohman
b49c208324 Bug 998156 - IonMonkey: Misc RangeAnslysis code cleanups. r=nbp 2014-04-18 11:13:44 -07:00
Dan Gohman
4d0e219df0 Bug 998173 - SpiderMonkey: Harmonize x86 and x64's MacroAssembler finish functions. r=bbouvier 2014-04-18 11:13:44 -07:00
Dan Gohman
b6e0e25f0b Bug 998172 - SpiderMonkey: Eliminate unnecessary parentheses around return values. r=nbp 2014-04-18 11:13:44 -07:00
Terrence Cole
5ca9705685 Bug 807168 - Followup to fix build failure with clang; r=bustage-fix 2014-04-18 09:50:30 -07:00
Terrence Cole
4ab31f28b9 Bug 807168 - Make JSTracer into a real C++ class and kill the macro accessors; r=jonco,mccr8
--HG--
rename : js/public/Tracer.h => js/public/TracingAPI.h
2014-04-11 15:19:05 -07:00
Fabrice Desré
140000dc46 Bug 965970 - Add support to compile asm.js code at install/update time r=luke,bholley,marco 2014-04-17 22:03:03 -07:00
Hannes Verschore
afaf121474 Bug 998251 - IonMonkey: print to the right stream during IONFLAGS=logs, r=nbp,nbp 2014-04-18 16:00:20 +02:00
Hannes Verschore
ae08c960ac Bug 997656 - Tracelogging: Log when baseline is compiling, r=djvj 2014-04-18 16:00:17 +02:00
Marty Rosenberg
167e754c52 Bug 990807 - Valgrind detects leak - 4 bytes and/or 32 bytes are definitely lost (direct), r=dougc 2014-04-17 12:00:05 -07:00
Tooru Fujisawa
86539c7440 Bug 471713 - Part 6: Add documentation for object- and array-related opcodes. r=evilpies
--HG--
extra : rebase_source : 6c9a441404809c6fc55b1d052f2126e79da39877
2014-04-02 19:35:15 +09:00
Tooru Fujisawa
eb40ef03d3 Bug 471713 - Part 4: Add documentation for variables and constants. r=luke
--HG--
extra : rebase_source : 748cf711992289c12e5cb6da240cb2a8a906dddf
2014-04-02 19:29:21 +09:00
Tooru Fujisawa
cc0f0d19d1 Bug 471713 - Part 3: Add documentation for function call-related opcodes. r=djvj
--HG--
extra : rebase_source : 1b019427b68d8be12cde998f60389d68c3224aad
2014-04-11 09:14:08 +09:00
Tooru Fujisawa
859390f1dc Bug 471713 - Remove duplicated parens around flags in SpiderMonkey. r=jwalden
--HG--
extra : rebase_source : 45e8cc7caa3b0796052bdb2bb9f949ad82aa3c7f
2014-04-12 14:44:35 +09:00
Terrence Cole
c990955a80 Bug 990336 - Backout non-lazy dedup-on-insertion: not actually a speedup; r=jonco
--HG--
extra : rebase_source : 7b505c2c46b8c65c19e5d10b622a76bd8976e9a5
2014-04-17 08:14:35 -07:00
Benjamin Bouvier
889c393859 Bug 996881: Inherit 'use strict' directive when calling toSource/toString for asm.js modules; r=luke
--HG--
extra : rebase_source : 63ed080e38be66583c205d930b147bb1e2c66d2c
2014-04-17 14:06:50 +02:00
Hannes Verschore
3467373511 Bug 995490 - Tracelogger: Don't assert for wrong textId on non-active items, r=till 2014-04-17 12:26:25 +02:00
Hannes Verschore
03eb52be9a Bug 995826 - IonMonkey: Fix bogus behaviour of the negative zero test on x86, r=bbouvier 2014-04-17 12:26:23 +02:00
Hannes Verschore
838ef06b62 Bug 995675 - IonMonkey: Remove incorrect optimization of ToDouble, r=jandem 2014-04-17 12:26:20 +02:00
Hannes Verschore
7cfe4cefe2 Bug 944701 - Tracelogging: Add shell functions to enable/disable tracelogging, r=till 2014-04-17 12:26:18 +02:00
Hannes Verschore
f54c20665d Bug 995570 - Tracelogging: Initially implementation of logging VM calls, r=luke 2014-04-17 12:26:16 +02:00
Hannes Verschore
84ffc01d28 Bug 996518 - Add an extra assert in TypePolicy of MTypeBarrier, r=jandem 2014-04-17 12:26:13 +02:00
Jon Coppeard
a86b22d40f Bug 996052 - Remove JSVAL_TRACE_KIND, JSVAL_IS_GCTHING and JSVAL_TO_GCTHING r=terrence 2014-04-17 09:36:32 +01:00
Bobby Holley
54afe2bcb5 Bug 997527 - Remove debugging code from bug 960828. r=me a=me DONTBUILD 2014-04-16 18:33:10 -07:00
Douglas Crosher
55d42971f3 Bug 898963 - Odinmonkey (ARM): Refactor GenerateFFIInterpreterExit. r=luke 2014-03-26 00:29:10 +11:00
Douglas Crosher
30208e2107 Bug 898963 - Odinmonkey (ARM): Optimize asm.js FFI calls to Ion functions, trim regs saved, inline activation and deactivation. r=luke 2014-04-17 00:11:28 +10:00
Gabor Krizsanits
bc997f54ab Bug 996069 - Part3: Stop inheriting nsEP when window.open is called. r=bz 2014-04-16 22:29:57 +02:00
Terrence Cole
c97877c686 Bug 959787 - Handlify JS_DefineProperty; r=Waldo, r=bz
--HG--
extra : rebase_source : 87991ed47ed071550af4e4125eea54a66fdb0071
2014-01-21 18:11:17 -08:00
Nicolas B. Pierron
375d81ab3c Bug 995817 - Range Analysis: Truncate MDiv indirectly. r=sunfish 2014-04-16 08:31:43 -07:00
Jan de Mooij
8910766bd3 Bug 997081 - Optimize StoreElementHole OOL VM call. r=bhackett
--HG--
extra : rebase_source : 110a92109994439c48300ddc88627c34fca27254
2014-04-16 17:24:23 +02:00
Benjamin Bouvier
c146d59c2f Bug 993034: SIMD - Factor out typed access to TypedObject memory; r=nmatsakis 2014-04-16 16:21:31 +02:00
Benjamin Bouvier
865a3706f4 Bug 993034: SIMD - Factor out tests for object and vector in a single function; r=nmatsakis 2014-04-16 16:21:29 +02:00
Benjamin Bouvier
21bedb360f Bug 993034: SIMD - Define shallow wrappers macro that call templated functions instead of macro functions; r=nmatsakis 2014-04-16 16:21:26 +02:00
Benjamin Bouvier
5cef02e0c1 Bug 993034: SIMD - Replace and simplify bogus pointer in Int32x4Select; r=nmatsakis 2014-04-16 16:21:24 +02:00
Benjamin Bouvier
ed7ffdf9c0 Bug 993034: SIMD - Clean up coding style and reorganize functions by number of arguments; r=nmatsakis 2014-04-16 16:21:12 +02:00
Benjamin Bouvier
0d4975cceb Bug 993034: SIMD - Rename toType2 into toType and make it fallible; r=nmatsakis 2014-04-16 16:21:09 +02:00
Nicolas B. Pierron
5a6f8cc3a3 Bug 992968 - . r=efaust a=abillings 2014-04-16 06:18:26 -07:00
Shian-Yow Wu
7b625868f7 Bug 945152 - Part 2: Report mapped array buffer statistics for about:memory. r=njn 2014-04-16 19:26:41 +08:00
Shian-Yow Wu
a132bf6fc9 Bug 945152 - Part 1: Support mapped array buffer type. r=sfink 2014-04-16 19:26:39 +08:00
Jon Coppeard
434d722551 Bug 995657 - Check new capacity is large enough when growing the mark stack r=terrence 2014-04-16 09:48:24 +01:00
Jon Coppeard
a775e98530 Bug 912581 - Make JS_Add*Root APIs take Heap<T> r=terrence r=bz r=bholley 2014-04-16 09:47:57 +01:00
Jon Coppeard
2a5c843ea4 Bug 993413 - Remove use of JS_Add/Remove*Root in favour of JS::PersistentRooted where possible r=terrence r=bz r=bholley 2014-04-16 09:47:53 +01:00
Boris Zbarsky
b146a467b0 Bug 822442. Keep track of DOM proxies in TI, like other DOM objects, so we can do the same call/get/set optimizaations with them. r=efaust 2014-04-15 22:58:45 -04:00
Eric Faust
d8d90e9821 Bug 978232 - ES6 Proxies: [[Construct]] must throw if the trap doesn't return an object. (r=jwalden) 2014-04-15 14:57:35 -07:00
Eric Faust
b482a3a1f1 Bug 978235 - Reland forgotten test. r=me 2014-04-15 13:19:53 -07:00
Eric Faust
afed7f15b3 Bug 978235 - ES6 Proxies: Implement [[IsExtensible]] trap. (r=jorendorff) 2014-04-15 13:13:51 -07:00
Eric Faust
1a95c33230 Bug 978235 - Add missing JSAutoCompartment to JavaScriptChild.cpp. (r=terrence over IRC) 2014-04-15 13:08:41 -07:00
Eric Faust
8ec8b52e89 Backed out changeset f1660c847ca2 (bug 978235) for landing with random debug code. 2014-04-15 12:56:51 -07:00
Eric Faust
413c2ea3c7 Bug 978235 - ES6 Proxies: Implement [[IsExtensible]] trap. (r=jorendorff, terrence over IRC) 2014-04-14 15:52:26 -07:00
Eric Faust
5a2d3e1d80 Bug 983460 - Opcodes.h has an extra TMPSLOT for JSOP_SETPROP. (r=jandem) 2014-04-14 15:52:24 -07:00
Dan Gohman
69883bd992 Bug 892794 - IonMonkey: Add some interesting INT32_MIN-related testcases. r=nbp 2014-04-15 11:34:25 -07:00
Ryan VanderMeulen
780fb4fae2 Backed out changesets 37e7cae3d8c8 and 3ccbb670a699 (bug 898963) for Windows debug bustage.
CLOSED TREE
2014-04-15 13:39:38 -04:00
Marty Rosenberg
9a05c1d7a4 Bug 982398 - Fix the second case as well. r=jandem 2014-04-15 12:51:19 -04:00
Douglas Crosher
24769cbc81 Bug 898963 - Odinmonkey (ARM): Refactor GenerateFFIInterpreterExit. r=luke 2014-03-26 00:29:10 +11:00
Douglas Crosher
3522eaf595 Bug 898963 - Odinmonkey (ARM): Optimize asm.js FFI calls to Ion functions, trim regs saved, inline activation and deactivation. r=luke 2014-04-16 01:08:33 +10:00
Jan de Mooij
d170922db6 Bug 995607 - Fix an AutoDebugModeInvalidation issue. r=shu 2014-04-15 18:22:52 +02:00
Jan de Mooij
e6a0168b24 Bug 994876 followup - Fix assert. 2014-04-15 18:13:49 +02:00
Jan de Mooij
26e4cd193f Bug 994876 - Fix DenseSetElemStubExists to check all shapes for DenseAdd stubs. r=djvj 2014-04-15 17:20:32 +02:00
Landry Breuil
ec0cae2801 Bug 990154: move the enum CodeKind definition outside #if ENABLE_ASSEMBLER to unbreak non-asm platforms r=jandem 2014-04-15 13:46:07 +02:00
Jan de Mooij
edc1a91edc Bug 996533 - Add some BaselineScript/IonScript asserts. r=till 2014-04-15 13:24:42 +02:00
Branislav Rankov
a070a5f0c8 Bug 972836 - IonMonkey MIPS: Add odd float registers to the enum, but don't allocate them yet. r=froydnj,nbp 2014-04-07 17:36:06 +02:00
Jon Coppeard
1e34d2334e Bug 992866 - Fix assertion in JSObject::initDenseElementsUnbarriered r=sfink 2014-04-15 09:44:01 +01:00
Shu-yu Guo
ed523a36d7 Bug 995076 - Unconditionally replace null/undefined/magic-typed OSR slots. (r=h4writer) 2014-04-14 22:00:07 -07:00
Shu-yu Guo
afd4d7e3b4 Bug 995077 - Preserve phis whose slots are arguments object inside functions that need it. (r=jandem) 2014-04-14 22:00:07 -07:00
Shu-yu Guo
4bb7a376ed Bug 994444. (r=nbp) 2014-04-14 22:00:07 -07:00
Bobby Holley
db7038119f Bug 993423 - Don't hoist <svg:use> content into the XBL scope. r=smaug 2014-04-14 20:38:54 -07:00
Bobby Holley
f223b1107f Bug 989528 - Rename AutoSystemCaller to AutoNoJSAPI, and assert against pre-existing exceptions. r=bz 2014-04-14 20:27:00 -07:00
Bobby Holley
e46565fd18 Bug 989528 - Introduce AutoJSAPIWithErrorsReportedToWindow as a replacement for AutoPushJSContextForErrorReporting. r=bz 2014-04-14 20:26:59 -07:00
Bobby Holley
bae8ff964e Bug 989528 - Introduce a mechanism to explicitly enter a null compartment. r=luke 2014-04-14 20:26:59 -07:00
Phil Ringnalda
5e0b2af8b2 Back out d1f1725198da (bug 983460) on suspicion of mochitest-chrome assertions
CLOSED TREE
2014-04-14 18:36:01 -07:00
Phil Ringnalda
1fc75dbc59 Back out c70626e77e9f (bug 978235) on suspicion of mochitest-chrome assertions
CLOSED TREE
2014-04-14 18:35:46 -07:00
Jeff Walden
8e3a6ac462 Bug 988619 - Fix bad includes bustage. r=njn over IRC to fix bustage in a CLOSED TREE
--HG--
rename : js/src/jit/ExecutionModeInlines.h => js/src/jit/ExecutionMode-inl.h
2014-04-14 18:26:15 -07:00
Brian Hackett
d379985ea4 Bug 988619 - Handle OOM when sweeping type information, r=jandem. 2014-04-14 18:22:17 -06:00
Eric Faust
2fde634149 Bug 978235 - ES6 Proxies: Implement [[IsExtensible]] trap. (r=jorendorff) 2014-04-14 15:52:26 -07:00
Eric Faust
ad1fc89453 Bug 983460 - Opcodes.h has an extra TMPSLOT for JSOP_SETPROP. (r=jandem) 2014-04-14 15:52:24 -07:00
Luke Wagner
2a67984039 Bug 980447 - Add persistenceType argument to nsIQuotaManager.clearStoragesForURI (r=janv)
--HG--
extra : rebase_source : 4d034bd92b099bd1385fc9e8a95fa959fc8e51e0
2014-04-14 15:48:49 -05:00
Tooru Fujisawa
8d898aff04 Bug 918987 - Implement String.prototype.normalize. r=jwalden
--HG--
extra : rebase_source : c634fd1961c1eb004bc4e0dd9ed26047abb285b4
2014-04-09 14:38:24 -07:00
Jeff Walden
0b6b929d17 Bug 983053 - Don't suppress-deleted-elements on an object that's not in the middle of iteration. r=jorendorff
--HG--
extra : rebase_source : 3cd83274ff2050c864411ddf81ff9e74b0a8dfbe
2014-03-25 10:29:59 -04:00
Tooru Fujisawa
24ff34c172 Bug 471713 - Part 5: Add documentation for operators and stack. r=jwalden
--HG--
extra : rebase_source : 4774a7b194cc4c172ee6fcf153fcae18db0c13b6
2014-04-02 19:33:14 +09:00
Terrence Cole
9043eb77b7 Bug 990336 - Deduplicate subsequent pushes to the store buffer; r=jonco
--HG--
extra : rebase_source : 7f7418c4e90ab292a39aa3931b25bb7a0a89634b
2014-04-08 10:23:56 -07:00
Terrence Cole
294fcd67ef Bug 990336 - Deduplicate the slots edge buffer normally; r=jonco 2014-04-08 10:23:50 -07:00
Bobby Holley
55d4fbb621 Bug 995123 - Associate sandboxPrototyped Sandboxes to their prototype Window, if it exists. r=bz 2014-04-14 08:56:38 -07:00
Benjamin Bouvier
8f936fb594 Bug 988416: Test for the Intl property existence before using it; r=till
--HG--
extra : rebase_source : 4a839ccee7d233de918898e88e3615eacd6d3c41
2014-04-14 17:43:33 +02:00
Nicolas B. Pierron
1026a06ffa Bug 950044 - Fix miss-interpretation of current Desktop GC settings. r=gwagner 2014-04-14 08:32:02 -07:00
Nicolas B. Pierron
fd58bde9f6 Bug 995165 - Fix ARM v6 GC settings. r=terrence 2014-04-14 08:32:02 -07:00
Benjamin Bouvier
3c4fb1d192 Bug 979867: Kill mixed sign comparison warning; r=lth
--HG--
extra : rebase_source : 91d3898d7716b3bfb36d20503d8d14b32b85152c
2014-04-14 17:03:11 +02:00
Terrence Cole
60eb0bb587 Bug 988950 - Speed up post barrier checks in Ion r=jandem 2013-09-30 14:18:01 -07:00
Benjamin Bouvier
eaa4a67faf Bug 994181: Tracelogger: convert integer to platform-specific pointer before writing it as a pointer; r=h4writer 2014-04-14 15:41:00 +02:00
Benjamin Bouvier
621ee2b32f Bug 995180: Eliminate unused FromMIRType function; r=luke
--HG--
extra : rebase_source : f5d5bddc797ee50c1b6949875f6fffbd6f0fed74
2014-04-14 12:05:51 +02:00
Jan de Mooij
5c619128de Bug 991457 - Don't DCE MLoadElement if it needs a hole check. r=h4writer 2014-04-14 15:20:11 +02:00
Ehsan Akhgari
239fa59ff5 Bug 995754 - Remove nsIDOMToString; r=bzbarsky 2014-04-13 18:53:36 -04:00
Nicholas Nethercote
c295279b43 Bug 992274 (part 1) - Tweak an edge case in line number handling. r=jorendorff. 2014-04-06 21:31:04 -07:00
Terrence Cole
9c089cfe19 Bug 984101 - Undo some of our more aggressive new poisoning to get back performance. r=jonco 2014-04-09 08:11:06 -07:00
Terrence Cole
578c145733 Bug 995442 - Don't post-barrier non-objects in the browser; r=sfink 2014-04-11 14:29:14 -07:00
Sean Stangl
8ffc6c5283 Bug 995421 - Fix out-of-order comment in TransparentTypedObject::class_. 2014-04-11 13:41:19 -07:00
Sean Stangl
0ca496badd Bug 856796 - Attempt detection of YARR bug; r=till 2014-04-07 13:43:50 -07:00
Olli Pettay
f2b59ae546 Bug 688580 - Run deferred scripts before DOMContentLoaded; r=hsivonen 2014-04-12 11:02:21 +02:00
Ms2ger
21fcb9c219 Bug 983989 - Part c: Cleanup XPCConvert::NativeData2JS; r=bholley 2014-04-12 10:15:58 +02:00
Ms2ger
d62cefa5cc Bug 983989 - Part b: Simplify code flow in XPCConvert::NativeData2JS; <3,r=bholley 2014-04-12 10:15:57 +02:00
Ms2ger
5356f4e89e Bug 983989 - Part a: Reindent XPCConvert::NativeData2JS; r=bholley 2014-04-12 10:15:56 +02:00
Boris Zbarsky
a13f2f38be Bug 995047. Change out stack/exception APIs to hand out AString instead of AUTF8String for filename/functionname, so we end up with fewer string conversions in practice. r=smaug 2014-04-11 22:20:40 -04:00
Brian Hackett
b799035ebb Bug 991336 - Improve checking around CompileInfo sweep indexes, r=jandem. 2014-04-11 17:25:34 -06:00
Brian Hackett
553f14a5f2 Bug 992256 - Crash on OOM during worker thread initialization, r=h4writer. 2014-04-11 17:17:18 -06:00
Tom Schuster
fcbd830f87 Bug 925123 - Add Math.clz32 builtin. r=till 2014-04-11 17:24:58 +02:00
Terrence Cole
f1c1c5d8c6 Bug 994054 - MacOS's madvise implementation is unworkably slow; r=jandem 2014-04-09 10:48:17 -07:00
Hannes Verschore
de09efab39 Bug 994163 - TraceLoggeing: Fix --disable-threadsafe builds, r=bbouvier 2014-04-11 23:33:20 +02:00
Ed Morley
c3bd41903d Backed out changeset e8dfde56e9ca (bug 925123) for jsreftest failures; CLOSED TREE 2014-04-11 17:32:38 +01:00
Kannan Vijayan
40cb1aee21 Bug 993071 - Add optimization tier info to js profiler pseudostack entries. r=luke 2014-04-11 11:58:55 -04:00
Bobby Holley
c21152b980 Bug 993438 - Stop implicitly cloning, and assertSameCompartment. r=billm 2014-04-11 08:47:43 -07:00
Bobby Holley
211b631fae Bug 993438 - Infer the eventual compartment for OMT-compiled script when the script is retrieved. r=billm
Currently, the script gets put in a compartment specified when the compilation
is initiated. Later on, when we retrieve that script and try to execute it, we
won't necessarily be in the same compartment. Currently, SM just handles this
and clones the script, but it's simpler and more efficient to just create the
script in the compartment of whoever calls FinishOffThreadScript.

Note that the existing code actually has a hazard in which the call to
GetBuiltinPrototypePure returns null - it just wasn't exercised in automation
(and was triggered by onNewScript-off-main-thread.js with this patch).
2014-04-11 08:47:43 -07:00
Bobby Holley
5a45588f17 Bug 993438 - Add the necessary APIs. r=billm 2014-04-11 08:47:42 -07:00
Tom Schuster
7c5de09f23 Bug 925123 - Add Math.clz32 builtin. r=till 2014-04-11 17:24:58 +02:00
Till Schneidereit
ddf9066491 Bug 911147 - Implement Array.prototype.fill. r=jorendorff
--HG--
extra : rebase_source : c75210fc3b73a6752f8d9e97c6e376c2f10fbc5c
2014-04-11 17:07:27 +02:00
Till Schneidereit
7a5e5856b4 Bug 995200 - Enable strict mode for self-hosted code in opt builds, too. r=jorendorff
--HG--
extra : rebase_source : bd1ba070396f8556b112dd1dc5b30b3ff5e40fb0
2014-04-11 16:07:30 +02:00
Bobby Holley
60b28294e0 Bug 990290 - Remove JS_GetObjectId. r=terrence 2014-04-11 07:59:47 -07:00
Bobby Holley
77804e57dd Bug 990290 - Expose JSAPI functions for creating and manipulating scripted WeakMaps. r=terrence 2014-04-11 07:59:46 -07:00
Dan Gohman
fadf255dc5 Bug 994993 - IonMonkey: Don't disable math function optimization when there's no cache. r=jandem 2014-04-11 06:50:10 -07:00
Luke Wagner
298c0cefa8 Bug 994937 - remove some JSOP_CALL opcodes (r=djvj)
--HG--
extra : rebase_source : 8859238bb98fe91f6c7bbb99d3eab3fee6936b69
2014-04-10 17:52:52 -05:00
Ed Morley
5a0814325c Backed out changeset 592e6de7211b (bug 983989) 2014-04-10 15:48:11 +01:00
Ed Morley
cb516b6ec5 Backed out changeset 91885eced736 (bug 983989) 2014-04-10 15:48:08 +01:00
Ed Morley
011ff99731 Backed out changeset 14ab9b8d15be (bug 983989) 2014-04-10 15:48:04 +01:00
Dan Gohman
5bb53b474c Bug 967709 - IonMonkey: Optimized implementations of Math.sin and Math.cos. r=jorendorff 2014-04-09 11:28:17 -07:00
Carsten "Tomcat" Book
6ffc5faca7 Backed out changeset df6f9e684cac (bug 993768) mochitest-1 test failure 2014-04-10 16:07:48 +02:00
Jon Coppeard
dc1acbbbdc Bug 993768 - Handle TypeArrayObjects when tenuring r=terrence 2014-04-10 13:46:58 +01:00
Till Schneidereit
e799f21b60 Bug 988416 - Part 2: Add safe _DefineValueProperty self-hosting intrinsic. r=jwalden
--HG--
extra : rebase_source : 029e4b5f57b692657b55781959e65c59ebfe355e
2014-04-10 14:07:03 +02:00
Till Schneidereit
955f4c3560 Bug 988416 - Part 1: Extract self-hosting #defines into builtin/SelfHostingDefines.h. r=jwalden
--HG--
extra : rebase_source : 73008ee9e390a527bdc48d27c6ee499b8593b983
2014-04-10 14:07:03 +02:00
Till Schneidereit
cf2dfac89d Bug 993075 - Change FinishTakingSrcNotes to return bool and take an outparam for the source note count. r=luke
--HG--
extra : rebase_source : 604fd7221d6fc3cd71e44cecb374640ed82c12f6
2014-04-10 14:07:03 +02:00
Ms2ger
90d03e3ff8 Bug 983989 - Part c: Cleanup XPCConvert::NativeData2JS; r=bholley 2014-04-10 13:24:25 +02:00
Ms2ger
b120ac1b56 Bug 983989 - Part b: Simplify code flow in XPCConvert::NativeData2JS; <3,r=bholley 2014-04-10 13:24:25 +02:00
Ms2ger
c3c1cc461d Bug 983989 - Part a: Reindent XPCConvert::NativeData2JS; r=bholley 2014-04-10 13:24:24 +02:00
Carsten "Tomcat" Book
661931f6a3 Backed out changeset 89a91619a2ae (bug 984101) for bustage 2014-04-10 10:03:47 +02:00
Terrence Cole
e3621d0260 Bug 984101 - Undo some of our more aggressive new poisoning to get back performance. r=jonco 2014-04-09 08:11:06 -07:00
Boris Zbarsky
adc450e8a7 Bug 993889 part 4. Remove the scope argument of xpc_FastGetCachedWrapper. r=bholley 2014-04-10 00:58:42 -04:00
Boris Zbarsky
3738611b99 Bug 993889 part 1. Remove "scope" argument from nsContentUtils::WrapNative. r=bholley 2014-04-10 00:58:41 -04:00
Benjamin Bouvier
7bb5ba0dba Bug 944392: Remove reference to PRThread in Tracelogger.h to reenable tracelogging compilation, on a CLOSED TREE; r=h4writer over irc 2014-04-09 18:16:40 +02:00
Hannes Verschore
7da63ea394 Bug 944392: Tracelogging: Fix --enable-nspr-build builds, r=bbouvier 2014-04-09 16:27:22 +02:00
Hannes Verschore
18b41f56d0 Bug 944392: Tracelogging: Fix incorrect numbering of files, r=bbouvier 2014-04-09 16:27:18 +02:00
Hannes Verschore
a4b0c524bb Bug 944392 - Tracelogging: Move to vm subdirectory, r=till,bbouvier
--HG--
rename : js/src/TraceLogging.cpp => js/src/vm/TraceLogging.cpp
rename : js/src/TraceLogging.h => js/src/vm/TraceLogging.h
2014-04-09 14:21:20 +02:00
Hannes Verschore
3be7d6b7cd Bug 989152 - Tracelogging: Log the ion compilation passes, r=bhackett 2014-04-09 14:21:04 +02:00
Hannes Verschore
a636f34117 Bug 989152 - Tracelogging: Add support for TLLOG flags, r=till 2014-04-09 14:20:56 +02:00
Hannes Verschore
f6843062b7 Bug 944706 - Tracelogging: Make it possible to flush an incomplete tree, r=bbouvier 2014-04-09 14:20:49 +02:00
Hannes Verschore
28d23c2884 Bug 944392 - Tracelogging: Land version 0.2, r=till,bbouvier 2014-04-09 14:20:39 +02:00
Jan de Mooij
02406ce983 Bug 988993 - Ion-compile scripts with arrow functions. r=bhackett 2014-04-09 13:57:32 +02:00
Hannes Verschore
59e1c9cc53 Bug 945512: IonMonkey: Make regexp only hoistable after analysis it is safe, r=sstangl 2014-04-09 13:16:20 +02:00
Dan Gohman
7cad134034 Bug 985130 - IonMonkey: Use possibleCalls() instead of isCall(), to handle nodes like ApplyArgs, on a CLOSED TREE r=me 2014-04-08 17:58:45 -07:00
Dan Gohman
fd6e1e6d15 Bug 985130 - IonMonkey: Omit over-recursion checks in leaf functions. r=luke 2014-04-08 16:00:29 -07:00
Terrence Cole
fe303ddb4d Bug 990336 - Change the representation of SlotEdge for better performance; r=jonco 2014-04-08 10:22:21 -07:00
Boris Zbarsky
35fca5eeeb Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
This patch was mostly generated with the following command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""

and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Boris Zbarsky
56f44fdf10 Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
This patch was mostly generated with this command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""

plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 18:27:17 -04:00
Boris Zbarsky
d3234363d3 Bug 991742 part 1. Enter the compartment of the current wrapper before we try to reparent objects. r=bholley
This lets us preserve some invariants about our current compartment matching the scope we want to wrap into.
2014-04-08 18:27:15 -04:00
Jason Orendorff
fa1d1db711 Follow-up to bug 990787 - Fix GC hazards introduced by part 1 and part 4, caught by static analysis. Pushing to a CLOSED TREE. r=sfink. 2014-04-08 15:43:39 -05:00
Jason Orendorff
bdae1ae9c4 Bug 991036 - Improve temperamental assertion in js::jit::Label::~Label() when doing OOM testing. r=jandem.
--HG--
extra : rebase_source : 98b073ac3536b02b9e8740e61816ea3b9eddc96c
2014-04-08 12:52:24 -05:00
Jason Orendorff
ec4cfcd111 Bug 990787, part 12 - Propagate errors correctly in a few more places in js/src/jit. r=jandem.
--HG--
extra : rebase_source : ec8158e699bd0c29dd04bd3d9f4f401e680b6cb7
2014-04-08 12:35:19 -05:00
Jason Orendorff
c6595ec214 Bug 990787, part 11 - Properly report OOM in js::jit::AnalyzeNewScriptProperties. r=jandem.
--HG--
extra : rebase_source : 54b8f94fe52ab6ee3349dcd188861c73b134401d
2014-04-08 12:35:19 -05:00
Jason Orendorff
2cd99f5cc7 Bug 990787, part 10 (Note: There is no part 9; it was obsoleted by another bug) - Propagate OOM from MBasicBlock::addPredecessor to its callers. r=h4writer.
--HG--
extra : rebase_source : 79f913e614beb57045ff37c8ae6453a9a6552f89
2014-04-08 12:35:19 -05:00
Jason Orendorff
84614f9b19 Bug 990787, part 8 - Add an OOM check in WeakMap_set_impl. r=Waldo.
--HG--
extra : rebase_source : e97b20a18d5cc0b3f76f2bd2333a18cf5587fbaf
2014-04-08 12:35:19 -05:00
Jason Orendorff
41dd38dcf1 Bug 990787, part 7 - Propagate OOM from probes::EnterScript; make probes::ExitScript return void, as it can't fail. r=jandem.
--HG--
extra : rebase_source : 31e7a5643a5831c2fe1dae63f9d80c3f78df43fa
2014-04-08 12:35:18 -05:00
Jason Orendorff
0d58c7dde0 Bug 990787, part 6 - If a Compressor object is never successfully initialized, don't call deflateEnd in the destructor. r=luke.
--HG--
extra : rebase_source : 3ac0ef84110f119d7b5f89742434c7db9619df29
2014-04-08 12:35:18 -05:00
Jason Orendorff
e9541a4f84 Bug 990787, part 5 - When allocating a small object in Ion fails, explicitly crash rather than returning nullptr and then crashing near null when initializing the object. This is for the convenience of OOM testing machinery. r=njn.
--HG--
extra : rebase_source : 4108a6543428cd4823fea8c2f1525d612cc58aae
2014-04-08 12:35:18 -05:00
Jason Orendorff
a586c356ac Bug 990787, part 4 - When Shape::search fails to allocate a shape table, clear the OOM exception, as we are not going to propagate the error. r=shu.
--HG--
extra : rebase_source : b96f8477d7f4df70f9d0ba6b6e92b91c7b19ba4d
2014-04-08 12:35:18 -05:00
Jason Orendorff
32950f42e3 Bug 990787, part 3 - Add an OOM check in js_InitArrayClass. r=njn.
--HG--
extra : rebase_source : 60cef5ef99809dbf2c9d19dde1dcaa81fd70ebea
2014-04-08 12:35:17 -05:00
Jason Orendorff
e703146ea9 Bug 990787, part 2 - Don't call markUnknown again after GetProperty fails; once is enough. r=jandem.
--HG--
extra : rebase_source : e7776f6f054b5dc85339091497d65be7354afd38
2014-04-08 12:35:17 -05:00
Jason Orendorff
941ab7fb5d Bug 990787, part 1 - When JSObject::shrinkElements can't reallocate the array to shrink it, clear the OOM exception, as we are not going to propagate the error. r=shu.
--HG--
extra : rebase_source : 42d1d8c25a0b31d20b137ca4f2ff7f592e7fdcd8
2014-04-08 12:35:17 -05:00
Kannan Vijayan
85c81d99a9 Bug 993071 - Rename FunctionBoundary IR instructions to ProfilerStackOp. r=luke 2014-04-08 12:16:18 -04:00
Nicolas B. Pierron
f8f81167f9 Bug 989930 - Convert from reading frames to reading instructions. r=h4writer 2014-04-08 07:21:19 -07:00
Nicolas B. Pierron
163a30a71c Bug 989934 - Do not rely on SnapshotIterator::frameCount to iterate over inline frames. r=djvj 2014-04-08 07:21:19 -07:00