Commit Graph

32594 Commits

Author SHA1 Message Date
Ed Morley
07bca0c8f4 Backed out changeset e8dfde56e9ca (bug 925123) for jsreftest failures; CLOSED TREE 2014-04-11 17:32:38 +01:00
Kannan Vijayan
bd113133be Bug 993071 - Add optimization tier info to js profiler pseudostack entries. r=luke 2014-04-11 11:58:55 -04:00
Bobby Holley
e3e65eb4f2 Bug 993438 - Stop implicitly cloning, and assertSameCompartment. r=billm 2014-04-11 08:47:43 -07:00
Bobby Holley
e530e386e6 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
019801c9eb Bug 993438 - Add the necessary APIs. r=billm 2014-04-11 08:47:42 -07:00
Tom Schuster
c22a7a23d0 Bug 925123 - Add Math.clz32 builtin. r=till 2014-04-11 17:24:58 +02:00
Till Schneidereit
75afc16869 Bug 911147 - Implement Array.prototype.fill. r=jorendorff
--HG--
extra : rebase_source : c75210fc3b73a6752f8d9e97c6e376c2f10fbc5c
2014-04-11 17:07:27 +02:00
Till Schneidereit
48933ebf54 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
737086c674 Bug 990290 - Remove JS_GetObjectId. r=terrence 2014-04-11 07:59:47 -07:00
Bobby Holley
81e2f530de Bug 990290 - Expose JSAPI functions for creating and manipulating scripted WeakMaps. r=terrence 2014-04-11 07:59:46 -07:00
Dan Gohman
920ff0d675 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
3e9861fad3 Bug 994937 - remove some JSOP_CALL opcodes (r=djvj)
--HG--
extra : rebase_source : 8859238bb98fe91f6c7bbb99d3eab3fee6936b69
2014-04-10 17:52:52 -05:00
Ed Morley
5330c79ca6 Backed out changeset 592e6de7211b (bug 983989) 2014-04-10 15:48:11 +01:00
Ed Morley
915bed264b Backed out changeset 91885eced736 (bug 983989) 2014-04-10 15:48:08 +01:00
Ed Morley
efe4108058 Backed out changeset 14ab9b8d15be (bug 983989) 2014-04-10 15:48:04 +01:00
Dan Gohman
64c0ba14ed Bug 967709 - IonMonkey: Optimized implementations of Math.sin and Math.cos. r=jorendorff 2014-04-09 11:28:17 -07:00
Carsten "Tomcat" Book
73652821db Backed out changeset df6f9e684cac (bug 993768) mochitest-1 test failure 2014-04-10 16:07:48 +02:00
Jon Coppeard
939a14243b Bug 993768 - Handle TypeArrayObjects when tenuring r=terrence 2014-04-10 13:46:58 +01:00
Till Schneidereit
de6517f318 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
ebf3688b07 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
b6f6cfaa04 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
8346630944 Bug 983989 - Part c: Cleanup XPCConvert::NativeData2JS; r=bholley 2014-04-10 13:24:25 +02:00
Ms2ger
42bbe814d2 Bug 983989 - Part b: Simplify code flow in XPCConvert::NativeData2JS; <3,r=bholley 2014-04-10 13:24:25 +02:00
Ms2ger
c2e5644788 Bug 983989 - Part a: Reindent XPCConvert::NativeData2JS; r=bholley 2014-04-10 13:24:24 +02:00
Carsten "Tomcat" Book
c6249f62af Backed out changeset 89a91619a2ae (bug 984101) for bustage 2014-04-10 10:03:47 +02:00
Terrence Cole
39d72a7bb3 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
4a96901c0e Bug 993889 part 4. Remove the scope argument of xpc_FastGetCachedWrapper. r=bholley 2014-04-10 00:58:42 -04:00
Boris Zbarsky
67f4d02e6f Bug 993889 part 1. Remove "scope" argument from nsContentUtils::WrapNative. r=bholley 2014-04-10 00:58:41 -04:00
Benjamin Bouvier
cb6a411689 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
22393ce014 Bug 944392: Tracelogging: Fix --enable-nspr-build builds, r=bbouvier 2014-04-09 16:27:22 +02:00
Hannes Verschore
fcc1431c26 Bug 944392: Tracelogging: Fix incorrect numbering of files, r=bbouvier 2014-04-09 16:27:18 +02:00
Hannes Verschore
c8e4855e31 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
543327e79d Bug 989152 - Tracelogging: Log the ion compilation passes, r=bhackett 2014-04-09 14:21:04 +02:00
Hannes Verschore
3a2f75e1db Bug 989152 - Tracelogging: Add support for TLLOG flags, r=till 2014-04-09 14:20:56 +02:00
Hannes Verschore
193cc74a54 Bug 944706 - Tracelogging: Make it possible to flush an incomplete tree, r=bbouvier 2014-04-09 14:20:49 +02:00
Hannes Verschore
75c1bff30b Bug 944392 - Tracelogging: Land version 0.2, r=till,bbouvier 2014-04-09 14:20:39 +02:00
Jan de Mooij
d2e8f3b7b2 Bug 988993 - Ion-compile scripts with arrow functions. r=bhackett 2014-04-09 13:57:32 +02:00
Hannes Verschore
135412e534 Bug 945512: IonMonkey: Make regexp only hoistable after analysis it is safe, r=sstangl 2014-04-09 13:16:20 +02:00
Dan Gohman
198770b829 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
89bfe44fee Bug 985130 - IonMonkey: Omit over-recursion checks in leaf functions. r=luke 2014-04-08 16:00:29 -07:00
Terrence Cole
8f90e44d21 Bug 990336 - Change the representation of SlotEdge for better performance; r=jonco 2014-04-08 10:22:21 -07:00
Boris Zbarsky
fdbb455d4f 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
3f26a82832 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
3b4c77d08b 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
89d3c4889f 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
2afb3c25f9 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
2774a86e19 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
6c44cbc3b2 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
daf0a6c7ef 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
c90d854e8c 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