Commit Graph

34849 Commits

Author SHA1 Message Date
Bobby Holley
bac5dd0535 Bug 742444 - Pass the old wrapper or value to the prewrap callback instead of its flags. r=gabor
We need this so that we can reason about the origin of the wrapper that
previously had a waiver and decide whether or not to extend it.
2014-07-22 16:14:27 -07:00
Eric Faust
72c8f56f1a Bug 978279 - Refactor proxy jit-tests and add tests to account for revocation. (r=jorendorff)
--HG--
rename : js/src/tests/ecma_6/Proxy/proxy-isExtensible.js => js/src/jit-test/tests/proxy/testDirectProxyIsExtensible1.js
2014-07-22 14:10:34 -07:00
Eric Faust
2635980b02 Bug 978279 - Implement revocation semantics. (r=jorendorff) 2014-07-22 14:10:31 -07:00
Eric Faust
3f30fb6e29 Bug 978240 - Recomment remaining ES6 proxy traps. (r=jorendorff) 2014-07-22 14:10:30 -07:00
Luke Wagner
0f06b2bffe Bug 1041868 - Add #ifdef JS_IONs to fix --disable-ion bustage (r=me)
--HG--
extra : rebase_source : e036a4cfddf84f746d77778881ced8d4f0ef4aa8
2014-07-22 09:12:15 -05:00
Dan Gohman
8a62a0302c Bug 1041746 - IonMonkey: GVN: Clear the IsGuard flag when simplifying an instruction too. r=nbp 2014-07-22 07:45:07 -07:00
ProgramFOX
f1dd3163f4 Bug 1041648: added float32x4 clamp test case; r=bbouvier 2014-07-22 03:21:32 -07:00
Nicolas B. Pierron
9406334c7c Bug 1006899 - Prevent stack iterations while recovering allocations. r=bhackett 2014-07-22 06:04:03 -07:00
Jan de Mooij
0052d42b4a Bug 1041469 part 3 - Remove toLatin1 shell function, update tests. r=luke 2014-07-22 14:52:14 +02:00
Jan de Mooij
10f6ecbf43 Bug 1041469 part 2 - Use templates to get rid of some NewFatInlineString duplication. r=luke 2014-07-22 14:52:05 +02:00
Jan de Mooij
98295b4df6 Bug 1041469 part 1 - Remove EnableLatin1Strings flag. r=luke 2014-07-22 14:52:03 +02:00
Tom Schuster
0dbfd64dd0 Bug 1041495 - Handlify StructuredClone. r=jonco 2014-07-22 12:18:24 +02:00
Nicholas Nethercote
fff7cca247 Bug 1039965 - Avoid slop in JS arrays. r=bhackett,terrence.
This patch changes JS array resizing to always allocate power-of-two sized slot
requests. Previously it would mostly make slight-more-than-power-of-two sized
requests, which cause lots of slop.

Also, shrinkElements() now only does a reallocation if it would result in going
down a size class. E.g. if you pop all the elements from a 1000-element array,
it would realloc 999, then 998, then 997, all the way down the minimum size.
Now it does 512, then 256, down to the minimum size (which is 8).

I confirmed with DMD that the element allocations now have zero slop. This
reduces peak RSS loading a couple of large PDF files (four times each) with
pdf.js by 10s of MiBs.

--HG--
extra : rebase_source : 942c11de724843aa582e3a17b02043458a57e594
2014-07-17 21:14:20 -07:00
Dan Gohman
b25c03204e Bug 1027885 - OdinMonkey: Make CodeGeneratorShared::mirGen consistent with FunctionCompiler::mirGen r=luke 2014-07-21 19:09:16 -07:00
Nick Fitzgerald
b4cf06074c Bug 993085 - Part 1: Add the Debugger.Memory.prototype.trackingAllocationSites accessor property r=jimb 2014-07-21 18:16:13 -07:00
Wes Kocher
7aa4c7c841 Bug 993085 - Part 0: Freeze SavedFrame and SavedFrame.prototype r=jimb 2014-07-18 13:48:06 -07:00
Wes Kocher
adf51a28f6 Merge m-c to inbound 2014-07-21 17:34:59 -07:00
Wes Kocher
59a5a56f24 Merge inbound to m-c a=merge 2014-07-21 12:54:52 -07:00
Bill McCloskey
d0b717086f Bug 1041370 - Fix script entry hook #ifdefing (a=RyanVM) 2014-07-20 21:58:49 -07:00
Jan de Mooij
4800404440 Bug 1028866 part 6 - Move NewString* functions from jsstr.{h,cpp} to vm/String.{h,cpp}. rs=luke 2014-07-21 12:45:48 +02:00
Benjamin Bouvier
5496e79486 Bug 1040823: Simplify tests from bug 986673; r=tests-only 2014-07-21 10:06:38 +02:00
Benjamin Bouvier
500ddd438d Bug 1040823: Make --js-cache-per-process the default for testing; r=luke 2014-07-21 10:06:09 +02:00
Nicholas Nethercote
c38c9318c7 Bug 1039162 (attempt 2) - Don't use |for each| in XPCOMUtils.jsm. r=mrbkap. 2014-07-16 22:45:29 -07:00
Ryan VanderMeulen
767edc8412 Merge m-c to inbound. a=merge 2014-07-20 18:32:22 -04:00
Bobby Holley
6742298c2a Bug 1036790 - Only expect pjs methods for nightly builds in test_xrayToJS.xul. r=me 2014-07-20 16:15:22 -06:00
Emanuel Hoogeveen
9d5c6c8fed Bug 1041307 - Don't try to finalize JITcode in non-ion builds. r=billm 2014-07-20 08:23:00 +02:00
Benjamin Bouvier
b0645f3f41 Bug 1040785: Remove unused inc32 and dec32; r=jandem 2014-07-21 09:45:23 +02:00
Benjamin Bouvier
7c847b01fc Bug 1040785: Move LInterruptCheck from the platform-specific LIR headers to the platform-independent one; r=jandem 2014-07-21 09:45:13 +02:00
Benjamin Bouvier
c4fc9cc6ac Bug 1040785: Factor out InvokeFromAsmJS functions; r=luke 2014-07-21 09:45:04 +02:00
Benjamin Bouvier
3e0ba0a4cd Bug 986673: Tests; r=luke 2014-07-18 12:14:51 +02:00
Luke Wagner
719458b28d Bug 986673: Test pointer's value in AsmJSInterruptCheck; r=bbouvier 2014-07-21 09:36:07 +02:00
Bob Owen
68db9742fb Bug 1037564 Part 2: Replace AutoPushJSContexts et al. in nsXBLPrototypeHandler. r=bholley 2014-07-18 12:52:32 +01:00
Bobby Holley
4bbb23f320 Bug 930091 - Check objects at COW membranes. r=gabor,r=msucan 2014-07-20 15:36:32 -06:00
Steve Fink
6988a48bbb No bug. Drop expected number of b2g hazards to zero, r=terrence
DONTBUILD because mostly NPOTB

--HG--
extra : rebase_source : 06ca33d45445681ac8c2e32671d79409d76ca52e
2014-07-21 10:30:57 -07:00
Jeff Walden
4503b0cdd2 Bug 1037686 - Fix b2g-only bustage for a super-old compiler, sigh. r=b2g affecting a CLOSED TREE 2014-07-21 13:22:49 -04:00
Jeff Walden
a755cbeede Bug 1037686 - Remove js_strdup now that no one uses it. r=jimb
--HG--
extra : rebase_source : d05252549d90371daec12562b5e88c7029fb41cc
2014-07-11 15:12:16 -07:00
Jeff Walden
e4881a1c3d Bug 1037686 - Convert ScriptSource::{filename,introducerFilename}_ to UniquePtr, make !introducerFilename_ formally imply filename_. r=jimb
--HG--
extra : rebase_source : d45ed17c6b95345d4966a8809f90269944699846
2014-07-11 15:10:49 -07:00
Jeff Walden
28182d3b2f Bug 1037686 - Remove the js_strdup(cx, chars) method, and convert users to a similar DuplicateString method returning UniquePtr. r=jimb
--HG--
extra : rebase_source : 2c81d049967fbbc40953fb21dc7e9b67df8366d6
2014-07-11 15:09:55 -07:00
Luke Wagner
3600bd622d Bug 1027885 - OdinMonkey: properly represent calls to builtin functions in the profiling stack (r=dougc) 2014-07-21 11:05:44 -05:00
Luke Wagner
020dd56c35 Bug 1027885 - OdinMonkey: optimize representation of StaticLinkData::absoluteLinks (r=dougc) 2014-07-21 10:58:33 -05:00
Luke Wagner
43146abc14 Bug 1027885 - OdinMonkey: maintain AsmJSActivation::fp in all frames in profiling mode (r=dougc) 2014-07-21 10:58:12 -05:00
Luke Wagner
06da32127c Bug 1027885 - OdinMonkey: set up AsmJSFrame and use instead of exitFP for exit stubs (r=dougc) 2014-07-21 10:57:29 -05:00
Luke Wagner
256d94483b Bug 1027885 - OdinMonkey: avoid passing JSContext to C++ functions that can instead use innermostAsmJSActivation (r=dougc) 2014-07-21 10:56:02 -05:00
Luke Wagner
b403067b5b Bug 1027885 - OdinMonkey: store the AsmJSActivation in global data (r=dougc) 2014-07-21 10:40:37 -05:00
Luke Wagner
1e060bfb2a Bug 1027885 - rm unused JSContext::stackIterAssertionEnabled (r=jandem) 2014-07-21 10:40:05 -05:00
Bobby Holley
984a293d6d Bug 1040181 - Use an opaque wrapper rather than failing in Rewrap. r=gabor 2014-07-20 10:03:58 -06:00
Jason Orendorff
74ac45c18d Bug 1035287, part 1 - Add missing oom check. r=jimb.
--HG--
extra : rebase_source : 138e8d5b8cf232cfb1c8a06822c2d0423a0227c6
2014-07-08 19:32:06 -05:00
Jason Orendorff
00e7220baa Bug 1037897 - Pass ffi_call a pointer into a real array, to eliminate a static analysis warning. r=dteller.
--HG--
extra : rebase_source : 909a4f71f045aa7a9e20a8702c60c5d9cec38cef
2014-07-16 12:59:07 -05:00
Jason Orendorff
77115416e2 Bug 1033856 - Assertion failure: false (MOZ_ASSERT_UNREACHABLE: unexpected type), at jit/Lowering.cpp:1772 with Symbol. r=jandem.
--HG--
extra : rebase_source : 5b5757fa46b3663aa1d2c79a75db723a42290a33
2014-07-03 08:24:00 -05:00
Jason Orendorff
1d38105077 Bug 1031558 - JS GDB pretty-printers: fix symbol jsids. r=jimb.
--HG--
extra : rebase_source : 8b50cc4a1ab6aaddf0150bd7ee8dc225f0595b07
2014-06-27 17:04:19 -05:00
Jim Blandy
11962c4a04 Bug 1031881: Remove unused elements of JSDebugHooks, and their supporting code. r=sfink 2014-07-19 18:07:05 -07:00
Tom Schuster
d6adf566e8 Bug 1036136 - Implement structured cloning for Map and Set objects. r=jorendorff,bent 2014-07-19 23:44:53 +02:00
Luke Wagner
1f124317b4 Bug 1042098 - OdinMonkey: don't take(fp) when mir->instrumentedProfiling() (r=dougc) 2014-07-23 09:29:58 -05:00
Hannes Verschore
ce49bb6ca4 Backed out changeset 9c80c5b76cf0 for crashes on octane-typescript 2014-07-23 12:34:32 +02:00
Eric Faust
c961e9ebd2 Bug 1033873 - "Differential Testing: Different output message involving __proto__". r=jandem 2014-07-23 00:00:00 +02:00
Jan de Mooij
6bd961a5fb Bug 1041469 part 5 - Change escape() to use Latin1Char directly instead of deflating later. r=luke 2014-07-23 11:17:28 +02:00
Jan de Mooij
b19d5d918b Bug 1041469 part 4 - Use Latin1Char in StaticStrings::init. r=luke 2014-07-23 11:16:10 +02:00
Trevor Saunders
b74e67ea7b no bug - don't return nullptr in functions returning bool r=themaid 2014-07-17 20:11:27 -04:00
Boris Zbarsky
f26bdfa21f Bug 966452 part 1. Refactor the js_ReportUncaughtException to produce a (message, JSErrorReport*) pair before reporting. r=waldo and including the fix for bug 1034616 to fix JS tests to deal with this, r=jorendorff. r=terrence on the AutoStableStringChars bits 2014-07-04 01:24:54 -04:00
Bill McCloskey
89f4a776d8 Bug 1039034 - Don't leak add-on interpositions at shutdown (r=bholley) 2014-07-18 16:50:55 -07:00
Mike Hommey
15534a15c4 Bug 1040639 - Remove LIBS_DIR. r=mshal 2014-07-19 08:42:16 +09:00
Wes Kocher
94cf0b6805 Backed out changeset 72d92f058cf0 (bug 989348) under suspicion of causing various devtools crashes 2014-07-18 16:29:58 -07:00
Shu-yu Guo
bf16278e5c Bug 1037665 - Don't optimize arguments.callee in strict mode. (r=h4writer) 2014-07-18 14:39:30 -07:00
Sankha Narayan Guria
f486859454 Bug 989348 - BaselineCompiler: Optimize JSOP_ARRAYPUSH. r=djvj 2014-07-04 13:54:34 +02:00
Terrence Cole
71ec9e4ab5 Bug 987622 - Remove GetPDA as it is unused now that jsd1 is gone; r=jimb 2014-07-18 11:26:46 -07:00
Terrence Cole
8dde68d7a3 Bug 1033020 - Make BaslineFrame::returnValue match InterpreterFrame::returnValue; r=jandem 2014-07-01 15:40:48 -07:00
Ryan VanderMeulen
c46c7c8c0d Backed out changeset a4db87a48b24 (bug 1039551) for Windows debug mochitest-4 crashes. 2014-07-18 12:36:33 -04:00
Dan Gohman
4211496549 Bug 765127 - IonMonkey: Update a stale comment. r=nbp (comments only: DONTBUILD) 2014-07-18 09:31:20 -07:00
Jan de Mooij
bbb9ec9d25 Bug 1039551 - NewString/NewStringDontDeflate should create inline strings if possible. r=njn
--HG--
extra : rebase_source : ec27411ac015040eed83be9c715746a052f02b72
2014-07-18 17:07:34 +02:00
Dan Gohman
08d41bedc0 Bug 1039667 - IonMonkey: Clear the Guard flag when folding away MBoundsCheck instructions r=jandem 2014-07-17 11:56:38 -07:00
Benjamin Bouvier
24bbd6f784 Backed out changeset d78533837dfd (bug 986673) for failing jit-tests on a CLOSED TREE 2014-07-18 14:07:08 +02:00
Benjamin Bouvier
4e970c9538 Bug 986673: Tests; r=luke 2014-07-18 12:14:51 +02:00
Benjamin Bouvier
e7ec3067f5 Bug 986673: Make Odinmonkey not depend on signal handlers; r=luke 2014-07-18 12:14:47 +02:00
Benjamin Bouvier
3aeb3a5dc5 Bug 986673: OdinMonkey: emit bound checks on x64 if we can't use signal handlers; r=luke 2014-07-18 12:14:39 +02:00
Benjamin Bouvier
9c48310188 Bug 986673: Disable JIT signal tricks on demand, rather than all signaling; r=jandem 2014-07-18 12:14:24 +02:00
Ahmed Kachkach
68c23f6dff Bug 886570 - Initial integration of structured logs in mochitest; r=ahal,Ms2ger 2014-07-17 09:02:00 +02:00
Marty Rosenberg
e6a6da5b56 Bug 991153 fallout: Flip a bit in the simulator's constructor (r=dougc) 2014-07-18 02:25:29 -04:00
Marty Rosenberg
ed94215e0e Bug 1039207: Don't hardcode double-sized registers when popping with a mask. (r=dougc) 2014-07-18 02:25:29 -04:00
Marty Rosenberg
6960e33225 bug 991153 follow up: fix a couple of incorrectly signed vars. (r=dholbert) 2014-07-18 02:25:29 -04:00
Bobby Holley
51cadd7069 Bug 1038844 - Implement a COW opt-out for automation. r=gabor,sr=mrbkap 2014-07-17 21:34:48 -07:00
Bill McCloskey
f021e199b6 Bug 950745 - Flag when we're processing urgent messages and disallow certain activities (r=bsmedberg,luke) 2014-07-17 21:09:45 -07:00
Brian Hackett
5bad0a9bb7 Bug 1028990 - Never eliminate GetPropertyPolymorphic instructions, r=jandem. 2014-07-17 08:36:33 -08:00
Steve Fink
00e43e2148 Bug 975011 - Allow js/src/configure to invoke the in-tree NSPR configure. r=glandium
--HG--
extra : rebase_source : 92960a00e4d89eb9f2af4247c1434f31e27392a0
2014-02-25 14:15:16 -08:00
Dan Gohman
8f1fd50c0c Bug 1039836 - IonMonkey: GVN: Switch to including dependency() in the value hash. r=nbp 2014-07-17 06:28:40 -07:00
Nicolas B. Pierron
573733ed95 Bug 992845 - Add Scalar replacement of objects with simplest escape analysis. r=jandem 2014-07-17 03:04:30 -07:00
Tooru Fujisawa
c4c975d7b8 Bug 1022962 - Part 2: Add test for function call inside default parameter. r=jorendorff 2014-07-16 15:05:00 +02:00
Emanuel Hoogeveen
9984d12b52 Bug 1017165 - Part 2: Let ArenaLists track swept arenas between slices and extend ArenaIter to walk incrementally swept arenas as well. r=billm 2014-07-16 17:10:00 +02:00
Emanuel Hoogeveen
1d0a46921b Bug 1017165 - Part 1: Sort arenas in order of increasing free space during finalization. r=billm 2014-07-16 17:06:00 +02:00
Paali Tandia
488b024a68 Bug 1034665 - IonMonkey - Implement RAtan2 recover instruction. r=nbp 2014-07-15 23:19:00 +02:00
Carsten "Tomcat" Book
d61ca8ca45 Backed out changeset 33ff09852b0a (bug 1039162) for ics emulator opt/debug test failures 2014-07-17 09:18:16 +02:00
Bill McCloskey
9d957b8154 Bug 673569 - Allow scripts to be run in a non-global scope (r=luke) 2014-07-16 23:03:44 -07:00
Nicholas Nethercote
d04c49088a Bug 1039162 - Don't use |for each| in XPCOMUtils.jsm. r=mrbkap.
|for ... each| loops create an Iterator object each time they execute. They're
also an E4X hangover. Converting them to vanilla arrays avoids the creation of
almost 6,000 Iterator objects when starting up B2G, mostly due to makeQI().

--HG--
extra : rebase_source : f3a3fe2d64a045dacf70461611d9a0b72a38a210
2014-07-16 22:45:29 -07:00
Chris Peterson
f6fb38029f Bug 1036782 - Part 2: Replace MOZ_ASSUME_UNREACHABLE with MOZ_CRASH in StructuredClone.cpp. r=jorendorff 2014-07-15 19:32:06 -07:00
David Major
7a0fbacbe0 Bug 836658 - Use -arch:IA32 on VS2012 to avoid requiring SSE2. r=glandium 2014-07-17 13:57:44 +12:00
Nicholas Nethercote
b4a9c6b93b Bug 1038601 - Shrink js::HashTable. r=luke.
This patch reduces sizeof(js::HashTable):
- On 64-bit: from 32 bytes to 24 bytes.
- On 32-bit: from 24 bytes to 16 bytes.

The latter is particularly nice because jemalloc rounds up allocation requests
of 24 bytes to 32, but it can allocate 16 bytes without slop, so we're saving
16 bytes per heap-allocated HashTable.

This is done by:
- Shrinking |removedCount| and |hashShift|.
- Reordering the fields.
- Not defining |mutationCount| and |mEntered| in non-DEBUG builds rather than
  using DebugOnly<> -- in non-DEBUG builds, DebugOnly<> fields take up 1 byte
  each.

This change saves over 55 KiB when starting Firefox and loading Gmail.

The patch also uses uint32_t more consistently for the generation.

--HG--
extra : rebase_source : 8bdfbfe40f233711433bd9b7a2b5a19d69beacc7
2014-07-16 16:51:09 -07:00
Mike Hommey
90c08ab89f Bug 1039197 - Always build js engine with zlib. r=luke 2014-07-17 08:42:17 +09:00
Douglas Crosher
1d263cfbf6 Bug 1026919 - IonMonkey: (ARM) Simplify the assembler buffer with constant pools. r=jandem, previous part r=mjrosenb 2014-07-17 00:17:30 +10:00
Dan Gohman
f39cdbc454 Bug 1039719 - IonMonkey: Reorder some struct fields to reduce padding. r=sstangl 2014-07-16 13:11:59 -07:00
Birunthan Mohanathas
3535643a78 Bug 1038535 - Flatten caps/{idl,include,src}/ directories. r=bholley,gps
--HG--
rename : caps/src/DomainPolicy.cpp => caps/DomainPolicy.cpp
rename : caps/include/DomainPolicy.h => caps/DomainPolicy.h
rename : caps/idl/nsIDomainPolicy.idl => caps/nsIDomainPolicy.idl
rename : caps/idl/nsIPrincipal.idl => caps/nsIPrincipal.idl
rename : caps/idl/nsIScriptSecurityManager.idl => caps/nsIScriptSecurityManager.idl
rename : caps/src/nsJSPrincipals.cpp => caps/nsJSPrincipals.cpp
rename : caps/include/nsJSPrincipals.h => caps/nsJSPrincipals.h
rename : caps/src/nsNullPrincipal.cpp => caps/nsNullPrincipal.cpp
rename : caps/include/nsNullPrincipal.h => caps/nsNullPrincipal.h
rename : caps/src/nsNullPrincipalURI.cpp => caps/nsNullPrincipalURI.cpp
rename : caps/src/nsNullPrincipalURI.h => caps/nsNullPrincipalURI.h
rename : caps/src/nsPrincipal.cpp => caps/nsPrincipal.cpp
rename : caps/include/nsPrincipal.h => caps/nsPrincipal.h
rename : caps/src/nsScriptSecurityManager.cpp => caps/nsScriptSecurityManager.cpp
rename : caps/include/nsScriptSecurityManager.h => caps/nsScriptSecurityManager.h
rename : caps/src/nsSystemPrincipal.cpp => caps/nsSystemPrincipal.cpp
rename : caps/include/nsSystemPrincipal.h => caps/nsSystemPrincipal.h
2014-07-15 11:12:59 -07:00
Dan Gohman
fae9f30ed8 Bug 845068 - IonMonkey: GVN: When a value in the set has a differing dependence, overwrite it r=nbp 2014-07-16 10:53:40 -07:00
Dan Gohman
1e5e9aaf48 Bug 845068 - IonMonkey: GVN: Implement congruentTo and valueHash for more load nodes, exposing more congruences and reducing collisions r=nbp 2014-07-16 10:53:38 -07:00
Dan Gohman
09f8f133ba Bug 845068 - IonMonkey: GVN: Don't make redundant HashSet lookups. r=nbp 2014-07-16 10:53:37 -07:00
Jan de Mooij
9d81f568b0 Bug 1037886 - Report Latin1 and TwoByte strings separately in about:memory. r=njn 2014-07-16 19:11:50 +02:00
Jon Coppeard
c9823c13bc Bug 1039516 - Add read barrier to SymbolRegistry r=terrence 2014-07-16 17:46:03 +01:00
Jon Coppeard
a0062d9510 Bug 1035371 - Fix IsValueMarked() and IsValueAboutToBeFinalized() for symbols r=terrence 2014-07-16 17:45:22 +01:00
Brian Hackett
fbef65752c Bug 1037898 - Remove pointless and incorrectly used TypeSet constructor calls, r=jandem. 2014-07-16 08:39:54 -08:00
Brian Hackett
c8577a1ff6 Bug 1024132 - Add one slot cache for stripping leading and trailing .* from RegExps for test() calls, r=jandem. 2014-07-16 08:34:30 -08:00
Emanuel Hoogeveen
99ad348970 Bug 1038563 - Rename JS::Zone's jit-specific barrier state from Ion to jit. r=jandem 2014-07-15 00:01:00 +02:00
Jon Coppeard
2b012b6ea4 Bug 1038274 - Really fix previous problem with landing r=me 2014-07-16 12:04:33 +01:00
Jon Coppeard
a6ed14e402 Bug 1038274 - Add max heap size constants to pass to JS_NewRuntime() r=terrence 2014-07-16 10:01:20 +01:00
Jon Coppeard
a359fd0529 Backed out changeset 5290e42e8345 (bug 1038274) for disabling GC malloc trigger 2014-07-16 11:34:49 +01:00
Benjamin Bouvier
4916121672 Bug 1020467: Nuke allowFloat32Optimizations(); r=sstangl 2014-07-16 12:20:04 +02:00
Jon Coppeard
af3b47bd75 Bug 1038274 - Add max heap size constants to pass to JS_NewRuntime() r=terrence 2014-07-16 10:01:20 +01:00
Jon Coppeard
92a4e56818 Bug 1017141 - Make empty chunk count constants GC params r=terrence 2014-07-16 10:01:19 +01:00
Jan de Mooij
15996f7739 Bug 1030706 - Disable PGO in js/src for MSVC 2010. r=glandium 2014-07-16 10:32:57 +02:00
Tooru Fujisawa
c1d68b6c07 Bug 1022962 - Evaluate default parameters before function declarations. r=jorendorff 2014-07-15 11:47:00 +02:00
Nicholas Nethercote
b1617c9c76 Bug 1038038 (part 3) - Increase ShapeTable::MIN_ENTRIES. r=bhackett.
A linear search of 15 items is likely to be competitive with a hash table
lookup.

--HG--
extra : rebase_source : b2e0cb690610aea8bd372b4fbc50c1cc7cd9e97e
2014-07-13 23:32:45 -07:00
Nicholas Nethercote
e6d1531111 Bug 1038038 (part 2) - Compute sizeLog2 in ShapeTable::init() better. r=bhackett.
For exapmle, currently if you have an entryCount of 9 you end up with a
capacity of 32, when 16 would be more appropriate.

--HG--
extra : rebase_source : 300cd56c2dcbbb75ae54b227a5d1cab83c424a97
2014-07-13 23:29:50 -07:00
Nicholas Nethercote
21be2c2474 Bug 1038038 (part 1) - Reduce ShapeTable::MIN_SIZE_LOG2. r=bhackett.
An entryCount of zero is common, due to initBoundFunction(), so it's worth
choosing a value that doesn't waste too much space in that case.

--HG--
extra : rebase_source : efcf627734d3b49eab58aaaebeff16458bb7d9ad
2014-07-13 23:27:44 -07:00
Bobby Holley
334ef7dc92 Bug 1037264 - Add an 8-bit short-lived string cache. r=neil 2014-07-15 16:30:51 -07:00
Bobby Holley
a6be42fa2f Bug 1037264 - Factor out short-lived string buffer into a templated helper class. r=neil 2014-07-15 16:30:50 -07:00
Terrence Cole
044615f04d Bug 1030577 - Move some GC guards below the GC_BEGIN callback; r=jonco
--HG--
extra : rebase_source : 6c4b6576242047a07cbc2cf0ed018e48e523550d
2014-07-15 13:47:09 -07:00
Eddy Bruel
0d9b43a87b Bug 940317 - Move the varObjFix flag from ContextOptions to RuntimeOptions. r=bholley 2014-07-15 09:04:20 -07:00
Bobby Holley
f2dd591ec4 Bug 1037756 - Move cloneSingletons to CompartmentOptions. r=jandem 2014-07-15 09:04:20 -07:00
Bobby Holley
7fb8f5c2ee Bug 940323 - Mode strictMode to RuntimeOptions. r=jandem 2014-07-15 09:04:20 -07:00
Bobby Holley
09cb98bd4a Bug 1036185 - Clean up logic in IsPermitted (bonus fix). r=gabor 2014-07-15 09:04:19 -07:00
Bobby Holley
120cedc6b1 Bug 1036185 - Remove XPCCallContext::UnwrapThisIfAllowed. r=gabor 2014-07-15 09:04:19 -07:00
Benjamin Bouvier
a7a6cbb4f8 Bug 991153: Fix gcc warning about unsigned / signed comparison in StupidAllocator; r=mjrosenb 2014-07-15 15:51:02 +02:00
Jan de Mooij
24110719af Bug 1037613 - rm js_GetLocalizedErrorMessage, localeGetErrorMessage callback. r=jorendorff 2014-07-15 15:14:38 +02:00
Jon Coppeard
4e1b9463b3 Bug 1003230 - Fix windows build errors caused by changeset e7e6db764418 r=bustage on a CLOSED TREE 2014-07-15 10:26:09 +01:00
Jon Coppeard
d2feb0d225 Bug 1037516 - Attempt to fix perf regresion on talos r=terrence 2014-07-15 09:42:47 +01:00
Jon Coppeard
c92aaa300f Bug 941804 - Reduce chunk size to 256K for B2G r=terrence 2014-07-15 09:42:47 +01:00
Jon Coppeard
2a99785677 Bug 1003230 - Don't re-query page size information when memory mapping files r=sfink 2014-07-15 09:42:47 +01:00
Jon Coppeard
10f1cc87f4 Bug 1003230 - Refactor page based memory allocation functions r=sfink 2014-07-15 09:42:47 +01:00
Marty Rosenberg
a0e0efbee0 bug 991153: Fix float32 on arm to handle aliased registers (r=jandem) 2014-07-15 03:34:08 -04:00
Marty Rosenberg
4972db9df1 Bug 991153: Teach the MoveResolver how to deal with the more complex cycles that can result from aliased registers (r=sunfish) 2014-07-15 03:34:08 -04:00
Marty Rosenberg
38bf6493d9 no bug: Fix the spew that was messed up in a merge, and refactor control flow a bit (r=sunfish) 2014-07-15 03:34:07 -04:00
Emanuel Hoogeveen
765748e9cf Bug 1036784 - Extend freeSpanAllocate to do all the things that FreeList::allocate does, and rename it to freeListAllocate. r=terrence 2014-07-14 23:40:00 +02:00
Jan de Mooij
95223b2fc5 Bug 1037871 - Enable Latin1 strings in SpiderMonkey. r=luke 2014-07-15 08:21:40 +02:00
Bill McCloskey
a8ab54cb4f Bug 1017323 - Fix more non-unified build bustage 2014-07-14 23:12:18 -07:00
Bill McCloskey
c28e537321 Bug 1017323 - Fix some non-unified build bustage 2014-07-14 22:49:09 -07:00
Bill McCloskey
8b9dfc45b5 Bug 1017323 - Add-on interposition (r=bholley) 2014-07-14 22:10:05 -07:00
Chris Peterson
933a8ddea8 Bug 1036782 - Replace MOZ_ASSUME_UNREACHABLE with MOZ_CRASH in js/src. r=jorendorff 2014-07-14 19:14:54 -07:00
Chris Peterson
b9179175a0 Bug 1036780 - Replace MOZ_ASSUME_UNREACHABLE with MOZ_CRASH in js/src/gc. r=terrence 2014-06-29 23:05:34 -07:00
Shu-yu Guo
afaa8e587a Bug 1037657 - Handle Bailout_NonSymbolInput in PJS bailout warnings. (r=jorendorff) 2014-07-14 15:37:49 -07:00
Jan de Mooij
41bfd0176b Bug 1037869 - Fix remaining Latin1 string issues. r=terrence
--HG--
extra : rebase_source : b6fc9024f1a6c7eb9169b6c8c906916b4b1c197e
2014-07-14 22:19:36 +02:00
Ryan VanderMeulen
ffa2468a1f Merge m-c to inbound. a=merge 2014-07-14 16:19:58 -04:00
Ryan VanderMeulen
bf149dd487 Merge inbound to m-c. a=merge 2014-07-14 15:47:36 -04:00
Ryan VanderMeulen
f48dc95b58 Backed out changeset 0d237b824f96 (bug 1017165) for causing bug 1037750 and bug 1037772. 2014-07-14 15:40:24 -04:00
Bobby Holley
6263fe053a Bug 856067 - Actually push the test. r=me CLOSED TREE 2014-07-14 10:22:51 -07:00
Bobby Holley
04ca28c389 Bug 856067 - Tests. r=me 2014-07-14 10:09:07 -07:00
Bobby Holley
77cc9f70ea Bug 856067 - Add some helpful logging to the console when we deny access to a non-Xrayable object. r=gabor 2014-07-14 10:09:07 -07:00
Bobby Holley
a724996a80 Bug 856067 - Remove special case for content XBL scopes. r=gabor
This is now the default behavior. \o/
2014-07-14 10:09:07 -07:00
Bobby Holley
f53b8f6e56 Bug 856067 - Make unwaived non-Xrayable objects opaque from privileged code. r=gabor 2014-07-14 10:09:07 -07:00
Bobby Holley
fd15033e85 Bug 856067 - Fix up test_xrayToJS.xul. r=gabor 2014-07-14 10:09:06 -07:00
Octoploid
84be337f08 Bug 1035092 - "bool functions shouldn't return nullptr" [r=sfink]
--HG--
extra : rebase_source : 0a0f2549b0a34c759384d8293f6227e112610147
2014-07-12 06:26:00 -07:00
Andrew McCreight
77d782bb63 Bug 1038207 - Fix various classes that reimplement nsISupports. r=ehsan 2014-07-14 12:21:34 -07:00
Jan de Mooij
89781646d0 Bug 1038093 - Create Latin1 strings in some more cases, when Latin1 strings are enabled. r=luke 2014-07-14 19:17:15 +02:00
Douglas Crosher
5504e2141f Bug 964258 - IonMonkey: Use mprotect for interrupt check on ARM. r=bhackett 2014-07-12 10:04:29 +10:00
Jan Beich
878c1d006f Bug 1037252 - Unbreak --disable-ion build after bug 1021790. r=bhackett 2014-07-12 10:21:03 +02:00
Jan de Mooij
43d1c81388 Bug 1034689 part 3 - Fix remaining places in Gecko to handle Latin1 strings. r=bz 2014-07-12 09:43:08 +02:00
Jan de Mooij
79d27dc619 Bug 1034689 part 2 - Add AssignJSFlatString and use it. r=bz,terrence 2014-07-12 09:43:06 +02:00
Jeff Walden
30e19aea13 Minor bustage fixes for bug 1037609 and bug 1037100. r=bustage
--HG--
extra : rebase_source : 72083f1ec1036497a4d6a93ee614ea60794ae749
2014-07-11 21:03:07 -07:00
Boris Zbarsky
5971c7aac8 Bug 857648 part 6. Remove the now-unused JS::DescribeStack API. r=jimb 2014-07-04 01:25:30 -04:00
Jan de Mooij
c4e7d2e916 Bug 1034689 part 1 - Make AndroidBridge JSON parsing work with Latin1 strings. r=Waldo 2014-07-14 15:01:32 +02:00
Martin Stransky
b3c47ad8e6 Bug 1037470 - Fix debug build bustage with Ion disabled. r=jandem 2014-07-11 08:28:00 -04:00
Nick Fitzgerald
4700810790 Bug 1034463 - Ensure that PCLocationMap only ever stores scripts from its own compartment. r=shu 2014-07-12 12:54:00 -04:00
Jon Coppeard
3c25360388 Bug 999158 - Keep a spare chunk around to mitigate GGC OOM crashes on tenuring r=terrence 2014-07-14 13:45:34 +01:00
Carsten "Tomcat" Book
0bc9a2f7f0 Backed out changeset a1feed3cd303 (bug 941804) for b2g bustage on a CLOSED TREE 2014-07-14 12:34:33 +02:00
Carsten "Tomcat" Book
c0386c1181 Backed out changeset 62725e1af7fc (bug 999158) for b2g test bustage on a CLOSED TREE 2014-07-14 12:33:49 +02:00
Jon Coppeard
c452e78ebb Bug 999158 - Keep a spare chunk around to mitigate GGC OOM crashes on tenuring r=terrence 2014-07-14 10:05:17 +01:00
Jon Coppeard
6ffd60e7c7 Bug 941804 - Reduce chunk size to 256K for B2G r=terrence 2014-07-14 10:05:17 +01:00
Jason Orendorff
30679ed261 Bug 746622 - Provide some debug APIs to expose the internal data for a bound function ([[BoundTargetFunction]], [[BoundThis]], [[BoundArguments]]). r=jimb
--HG--
extra : rebase_source : 31254eb7dfe0e2db5e02133ba43e28b4586f3590
2014-06-11 08:48:00 +03:00
Jeff Walden
e7366d0824 Bug 901351 - Tests. r=jorendorff
--HG--
extra : rebase_source : 6c35e645511632868953dec45fa0a3b86e0f9f34
2013-08-08 17:31:45 -07:00
Jeff Walden
1b00e1824b Bug 1037106 - Use UniquePtr to manage ownership of the Debugger C++ class instance created for a new Debugger object, until it can be stored in the Debugger object's private slot (and owned by it). r=jimb, r=luke
--HG--
extra : rebase_source : 0f283bdd22e0e1d320f12b60e9fe98b5a606aa8d
2014-07-09 17:58:43 -07:00
Jeff Walden
f4bf4b99f5 Bug 1036710 - Use UniquePtr to manage ownership of the array of PNK_CASE nodes in table switches. r=jorendorff
--HG--
extra : rebase_source : 35a808887ea5dd2dfbd0b81e8628e9a38563c292
2014-07-09 16:59:57 -07:00
Jeff Walden
e1925af47a Bug 1037609 - Make ScriptSource::{display,SourceMap}URL_ into UniquePtrs. Also add js::DuplicateString that's like js_strdup but returns a UniquePtr. r=jimb, r=mccr8
--HG--
extra : rebase_source : 2d8f84a97047d10bbf81e6cd7735a7f802f74194
2014-07-11 12:50:05 -07:00
Nathan Braswell
8bb25a9efd Bug 1032956 - Self-hosted functions in {Object,Function}.{,prototype.}* are broken and fail on an assert. r=jwalden
--HG--
extra : rebase_source : 050efcbf6e69314cabd5a9910981684d92fa4836
2014-07-07 11:48:48 -07:00
Bobby Holley
3ffe1a37c3 Bug 1036777 - Fix string casts to be safe per-XPIDL. r=neil
These types map to nsAString and nsACString respectively.
2014-07-11 19:21:23 -07:00
Ms2ger
9fcc9f3096 Bug 1036777 - Remove the useAllocator argument to XPCConvert::JSData2Native; r=bholley
It turns out the useAllocator argument is only used for the dipper types
(nsXPTType::{T_ASTRING, T_DOMSTRING, T_UTF8STRING, T_CSTRING}), while we
only pass true in cases where we don't have a dipper type:

* XPCConvert::JSArray2Native errors on those types;
* GetNamedPropertyAsVariantRaw() passes an interface type;
* nsXPCWrappedJSClass::CallMethod passes !param.IsDipper() for the first
  calls and only reaches the last call for dependent types, which do not
  include any of the dipper types;
* CallMethodHelper::ConvertIndependentParam handles dipper types earlier
* and CallMethodHelper::ConvertDependentParam handles dependent types.
2014-07-11 19:21:23 -07:00
Bobby Holley
31b9417307 Bug 1036777 - Stop relying on useAllocator for 'in' string classes in ConvertIndependentParam. r=neil 2014-07-11 19:21:22 -07:00
Boris Zbarsky
7bf5a529d9 Bug 832014 part 9. Switch AccessCheck to using the generated LocationBinding::IsPermitted method. r=bholley 2014-07-11 19:34:44 -04:00
Boris Zbarsky
7a44e33e2c Bug 832014 part 8. Switch Location to WebIDL bindings. r=peterv,bholley 2014-07-11 19:32:46 -04:00
Chris Peterson
317399940c Back out 805ac89b5924 (Bug 1036781) for 52% regression on AWFY's asmjs-ubench-skinning. 2014-07-11 16:01:11 -07:00
Brian Hackett
f21b5eb32b Bug 1024786 - Watch for inferred file/line information on errors when printing error contexts, r=jandem. 2014-07-11 14:59:20 -08:00
Bobby Holley
c14d9c63b1 Bug 1034682 - Set wantXrays to false for content XBL scopes. r=billm 2014-07-11 15:56:27 -07:00
Bobby Holley
28f31fb0c4 Bug 1034682 - Move remaining wacky wantXrays behavior to the JS entry point so that we don't have to worry about it when creating Sandboxes from C++. r=peterv 2014-07-11 15:56:27 -07:00
Bobby Holley
2caab53ece Bug 1034682 - Remove nonsensical sandboxProto waiving in the wantXrays case. r=peterv
This doesn't make sense. wantXrays means that the WrapperFactory machinery gives
us Xrays in the same-origin case. When it's false, we don't have Xrays to
same-origin objects to begin with, so the waive is useless. Its only observable
effect comes in the situation of privileged (i.e. nsEP) sandboxes with a
less-privileged sandboxPrototype. And I see no reason why these things should get
a waived prototype.

It looks like this was added in 2010 for the Web Console in bug 611401. None of
that is applicable anymore.
2014-07-11 15:56:27 -07:00
Emanuel Hoogeveen
2965083f6f Bug 1017165 - Sort arenas in order of increasing free space during finalization. r=billm 2014-07-11 09:39:00 -04:00
Kannan Vijayan
da77f6f43f Bug 1026485 - Fix sps bug relating to ArgumentCheck bailouts that cause OOMs. r=nbp 2014-07-11 14:47:47 -04:00
Bobby Holley
2b47d5e6dc Bug 987669 - Just use macros because MSVC and gcc don't have real constexpr support. r=me CLOSED TREE 2014-07-11 09:37:00 -07:00
Jan de Mooij
388234074b Bug 1034627 part 8 - Fix XPCConvert to work with Latin1 strings and nursery strings. r=bholley 2014-07-11 16:22:39 +02:00
Jan de Mooij
b297e14b15 Bug 1034627 part 7 - Cleanup and expose UTF8 conversion functions. r=terrence 2014-07-11 16:22:37 +02:00
Jan de Mooij
241ed1598d Bug 1034627 part 5 - Make quick stubs work with Latin1 strings and nursery strings. r=bz 2014-07-11 16:22:35 +02:00
Bobby Holley
56947545c1 Bug 987669 - Tests. r=gabor 2014-07-11 09:09:22 -07:00
Bobby Holley
e02167ae21 Bug 987669 - Turn on Xrays for Error objects. r=gabor 2014-07-11 09:09:22 -07:00
Bobby Holley
7d9004da47 Bug 987669 - Add Xray support for FooError.prototype.name. r=gabor 2014-07-11 09:09:22 -07:00
Bobby Holley
e0938bdec8 Bug 987669 - Implement Xray support for the data properties on ErrorObject instances. r=gabor 2014-07-11 09:09:21 -07:00
Bobby Holley
d896ae2a5e Bug 987669 - Implement IsErrorObjectKey and do more at compile-time. r=gabor 2014-07-11 09:09:21 -07:00
Bobby Holley
e3f1bd9b22 Bug 987669 - Implement JS::ProtoKeyToId. r=luke 2014-07-11 09:09:21 -07:00
Bobby Holley
bc8026fc56 Bug 1036507 - Introduce and use StandardProtoKeyOrNull. r=luke 2014-07-11 09:09:21 -07:00
Bobby Holley
c30eb1475a Bug 1036507 - Remove deceptive GetClassProtoKey API. r=luke
This thing is basically only useful for ye olde JS_InitClass classes where
people might try to create objects with external JSClasses and expect various
defaults when they invoke JS_NewObject. Let's move it out of the way.
2014-07-11 09:09:21 -07:00
Bobby Holley
17bdd0be64 Bug 1036507 - Remove some unused code. r=luke 2014-07-11 09:09:20 -07:00
Bobby Holley
3b3c803c5f Bug 940316 - Move werror to RuntimeOptions. r=jandem 2014-07-11 08:30:47 -07:00
Ed Morley
9d72dd53ad Backed out changeset 8f50bc05d337 (bug 1034627) for debug build failures 2014-07-11 15:46:53 +01:00
Ed Morley
d6d6dd55ba Backed out changeset 110fbc2ebc1a (bug 1034627) 2014-07-11 15:46:33 +01:00
Ed Morley
e1d8d798ea Backed out changeset bcba40acc0ac (bug 1034627) 2014-07-11 15:46:29 +01:00
Jan de Mooij
e2804681c2 Bug 1034627 part 8 - Fix XPCConvert to work with Latin1 strings and nursery strings. r=bholley 2014-07-11 16:22:39 +02:00
Jan de Mooij
b8df866c2b Bug 1034627 part 7 - Cleanup and expose UTF8 conversion functions. r=terrence 2014-07-11 16:22:37 +02:00
Jan de Mooij
ed823bf62b Bug 1034627 part 5 - Make quick stubs work with Latin1 strings and nursery strings. r=bz 2014-07-11 16:22:35 +02:00
Nick Fitzgerald
348893909d Bug 1034477 - Save stacks that cross contexts in js::SavedStacks. r=shu 2014-07-10 12:33:00 -04:00
Jan de Mooij
4a6954dcec Bug 1034627 part 6 - Fix XPCVariant to work with Latin1 strings and nursery strings. r=bholley
--HG--
extra : rebase_source : be029c174195192570da688250583157825e9e06
2014-07-11 09:38:55 +02:00
Jan de Mooij
11df9d6d66 Bug 1034627 part 4 - Fix XPCComponents and XPCWrappedJSClass to work with Latin1 strings and nursery strings. r=bholley
--HG--
extra : rebase_source : 82d0a3ab83d9f10391da38c5c658627d1701f07a
2014-07-11 09:36:20 +02:00
Carsten "Tomcat" Book
f0569c8ad2 Backed out changeset cf85693280c7 (bug 886570) frequent mochitest-3 errors on windows 2014-07-11 14:15:29 +02:00
David Moreira
856fca6e15 Bug 1028675 - Implement RInstruction for StringSplit. r=nbp 2014-07-11 03:04:45 -07:00
Jon Coppeard
7c93db3865 Bug 1034621 - Make it possible to configure nursery size r=terrence
--HG--
extra : rebase_source : 7bdf2b2b15712a31baa34501ef4adcfe0ef8bf7d
2014-07-11 09:59:05 +01:00
Carsten "Tomcat" Book
6f8c5db933 Backed out changeset f78470faff8e (bug 1034627) Valgrind Test failures on a CLOSED TREE 2014-07-11 11:00:52 +02:00
Carsten "Tomcat" Book
8d5ad53d61 Backed out changeset 110e44b996f8 (bug 1034627) for Valgrind Testfailures on a CLOSED TREE 2014-07-11 11:00:21 +02:00
Jan de Mooij
b54e7da946 Bug 1034627 part 6 - Fix XPCVariant to work with Latin1 strings and nursery strings. r=bholley 2014-07-11 09:38:55 +02:00
Jan de Mooij
56a2a94a9d Bug 1034627 part 4 - Fix XPCComponents and XPCWrappedJSClass to work with Latin1 strings and nursery strings. r=bholley 2014-07-11 09:36:20 +02:00
Ahmed Kachkach
c4872d76ea Bug 886570 - Initial integration of structured logs in mochitest. r=ahal,Ms2ger 2014-07-10 13:33:00 +02:00
Andrew McCreight
ddac837af9 Bug 1022954 - ScriptSource leaks sourceMapURL_ sometimes. r=jimb 2014-07-10 15:46:00 +02:00
Nicholas Nethercote
8ea1b7923f Bug 1036789 - Convert the third quarter of MFBT to Gecko style. r=Ms2ger.
--HG--
extra : rebase_source : 668cd394806203ddfa34bd4f226335ff26c846b5
2014-07-10 19:10:17 -07:00
Chris Peterson
ad6013a50f Bug 1036781 - Replace MOZ_ASSUME_UNREACHABLE with MOZ_CRASH in js/src/jit. r=jandem 2014-06-30 16:06:59 -07:00
Chris Peterson
fca203c323 Bug 1036778 - Replace MOZ_ASSUME_UNREACHABLE with MOZ_CRASH in js/xpconnect. r=bholley 2014-06-29 20:42:36 -07:00
Jeff Walden
3a05a541b4 Bug 1037152 - Use Vector<UniquePtr> instead of Vector<Scoped> for tracking heap edge names. Also use js_free to free js_strdup's allocation, not ::free. (Usually the same thing, but not for embedders.) r=jimb
--HG--
extra : rebase_source : 26d052761654aecb3db1c76803c2e274be0d2c61
2014-07-10 16:59:26 -07:00
Jeff Walden
1b57d0afde Alphabetize some using-declarations in MapObject.cpp. No bug, r=trivial
--HG--
extra : rebase_source : 422d766f4bb7ef208e2c1d3cd1ba5950f15bd9e4
2014-07-09 18:00:59 -07:00
Jeff Walden
04afd90124 Bug 1036703 - Manage TokenStream::{sourceMap,display}URL_ using UniquePtr. r=jimb
--HG--
extra : rebase_source : 063beaeb184059b6a03338f05f4d073a5ea8bf27
2014-07-09 16:53:42 -07:00
Jim Blandy
48927da970 Bug 1036194: Update docs to describe Debugger.Source.prototype.introductionScript and .introductionOffset as implemented. DONTBUILD r=ejpbruel
The only change to content here is that we implemented 'introductionOffset', not
'introductionScriptOffset'.
2014-07-10 17:26:39 -07:00
Jim Blandy
793c6388ca Backed out changeset d988238c67d8; bug number was wrong in comment. DONTBUILD 2014-07-10 17:32:42 -07:00
Jim Blandy
e1cdc47295 Bug 10346194: Update docs to describe Debugger.Source.prototype.introductionScript and .introductionOffset as implemented. DONTBUILD r=ejpbruel
The only change to content here is that we implemented 'introductionOffset', not
'introductionScriptOffset'.
2014-07-10 17:26:39 -07:00
Bill McCloskey
0a2f262d4f Bug 1029248 - Allow CPOWs to be converted to native interfaces (r=mrbkap) 2014-07-10 16:47:26 -07:00
Bill McCloskey
c3121f05b8 Bug 1029248 - Clean up CPOW unwrapping (r=mrbkap) 2014-07-10 16:47:04 -07:00
Shu-yu Guo
55a661f890 Bug 1036792 - Fix bug1032264.js jit-test so it doesn't fail on merge. (r=test-only) 2014-07-10 16:44:41 -07:00
Ms2ger
10c7f7c010 Backout changeset 69c0707a144a for crashes on a CLOSED TREE. 2014-07-10 21:04:26 +02:00
Ms2ger
da65a8f838 Bug 1036777 - Remove the useAllocator argument to XPCConvert::JSData2Native; r=bholley
It turns out the useAllocator argument is only used for the dipper types
(nsXPTType::{T_ASTRING, T_DOMSTRING, T_UTF8STRING, T_CSTRING}), while we
only pass true in cases where we don't have a dipper type:

* XPCConvert::JSArray2Native errors on those types;
* GetNamedPropertyAsVariantRaw() passes an interface type;
* nsXPCWrappedJSClass::CallMethod passes !param.IsDipper() for the first
  calls and only reaches the last call for dependent types, which do not
  include any of the dipper types;
* CallMethodHelper::ConvertIndependentParam handles dipper types earlier
* and CallMethodHelper::ConvertDependentParam handles dependent types.
2014-07-10 20:23:24 +02:00
Bobby Holley
65f180179d Bug 1034262 - Honor the wantXrays of both sides of the membrane when computing same-origin wrappers. r=gabor
The basic problem in the testcase is that one compartment requests same-origin
Xrays via wantXrays=true (the default for Sandboxes) while the other does not.
The current code only considers the wantXrays flag of the compartment performing
the access, so we end up in a situation where we have same-origin compartments,
but Xray in one direction and Transparent in the other.

This is a problem for crossCompartmentFunction.apply(null, [arg]). If both
globals get transparent wrappers, there's obviously no problem. And if both
globals get XrayWrappers, then the |apply| happens on the XrayWrapper of the
function in the caller's compartment. So the Array is unpacked in the caller's
compartment, and again we have no problem.

But if the caller gets Transparent and the callee gets Xrays, then we end up
invoking |apply| from the callee's side, which then gets an XrayWrapper to the
array. This XrayWrapper may do surprising things, leading to the odd situation
in the testcase.

Same-origin Xrays are kind of broken anyway, but I don't think we'll ever be
able to get rid of them. So the most sensible thing to do is probably to honor
the flag (if set) from either compartment. This patch does that.
2014-07-10 10:04:30 -07:00
Bobby Holley
f99be51d16 Bug 1034239 - Replace GentlyOpaque with an "Xray-to-nothing" wrapper. r=gabor
I did this wrong before. Making this a SecurityWrapper means that the caller does
not subsumes the target, and that the target therefore needs to be protected
from the caller. But GentlyOpaque was supposed to be an analog of PermissiveXray
for use when no useful XrayTraits exist, so it should behave similarly.

If we make this a Filtering Security Wrapper, we get a bunch of assertions where we
expect CheckedUnwrap to succeed for a chrome-side wrapper. And we can't making it
a Filtering Non-Security Wrapper, because then the filtering policy isn't even
consulted (an optimization in jsproxy.cpp).

Really, we want all of the Xray machinery (like the ability to waive and to place
expandos), and we just don't want to resolve any properties. This patch does this.
2014-07-10 09:31:37 -07:00
Bobby Holley
86b1eef248 Bug 1034239 - Add Proxies to ForceCOWBehavior. r=gabor 2014-07-10 09:31:37 -07:00
Jan de Mooij
7fd4ee6769 Bug 1034627 part 3 - Fix SandboxDump, AccessCheck.cpp to work with Latin1 strings and nursery strings. r=bholley 2014-07-10 17:36:35 +02:00
Jan de Mooij
8a93b868e6 Bug 1034627 part 2 - Fix xpconnect Dump and Print functions to work with Latin1 strings and nursery strings. r=bholley 2014-07-10 17:36:33 +02:00
Jan de Mooij
179a30467b Bug 1034627 part 1 - Add some new string APIs. r=terrence 2014-07-10 17:36:31 +02:00
Tooru Fujisawa
7526207adf Bug 923028 - Part 2: Emit loop instead of JSOP_SPREAD. r=jandem 2014-07-08 02:25:00 -04:00
Carsten "Tomcat" Book
d83bd09333 Backed out changeset 0f0e44cd5fbd (bug 1034616) for jit test failures 2014-07-10 10:18:05 +02:00
Boris Zbarsky
d13462f48a Bug 1034616. Fix Frame-onPop-generators-02.js test to pass even if we start reporting the exceptions we're supposed to be reporting but fail to report right now. r=jorendorff 2014-07-10 02:56:21 -04:00
Brian Hackett
36fd110508 Bug 1021790 - "Cleanup naming for scalar and typed array types", r=sfink 2014-06-06 09:36:00 -07:00
Steve Fink
408484f23f Bug 1035092 - Fix places that return nullptr as a bool, r=terrence 2014-07-07 07:58:03 -07:00
Dan Gohman
425722073e Bug 1036037 - IonMonkey: Add a unit-test for folding a div to a multiply by reciprocal. r=nbp 2014-07-09 13:20:31 -07:00
Sankha Narayan Guria
8da218ad24 Bug 999764 - Optimize floating-point division into multiplication when safe; r=sunfish 2014-07-09 11:37:14 +02:00
Nathan Froyd
d1d52d93ee Bug 1031352 - move most of the _MSC_VER references in Makefile.in to moz.build; r=glandium 2014-06-27 10:32:05 -04:00