Commit Graph

28067 Commits

Author SHA1 Message Date
Shu-yu Guo
dfddfeb3c4 Bug 892634 - Part 3: Supporting strings in LValueToInt32 in truncation contexts. (r=jandem) 2013-08-02 08:24:58 -07:00
Shu-yu Guo
65de41224a Bug 895950 - Followup: Fix for when FPU is turned off. (r=djvj) 2013-08-02 08:24:57 -07:00
Shu-yu Guo
9b1baf2070 Bug 895950 - Support calling VM functions with double out parameters. (r=nbp) 2013-08-02 08:24:57 -07:00
Shu-yu Guo
9a804b1036 Bug 892634 - Part 2: Compile bit ops on values for parallel execution. (r=nmatsakis) 2013-08-02 08:24:57 -07:00
Shu-yu Guo
811fd3643c Bug 892634 - Part 1: Add thread safe number conversion functions. (r=billm) 2013-08-02 08:24:57 -07:00
Shu-yu Guo
2e435e83b4 Bug 899117 - Remove baseline IC for JSOP_REST in favor of a VM call. (r=djvj) 2013-08-02 08:24:57 -07:00
Shu-yu Guo
8e01a7572b Bug 898746 - Type rest argument arrays as dense arrays with unknown element type. (r=bhackett) 2013-08-02 08:24:57 -07:00
Shu-yu Guo
cdabaff183 Bug 898745 - Mark ArgumentsLength and GetArgument as safe for parallel execution. (r=nmatsakis) 2013-08-02 08:24:56 -07:00
Shu-yu Guo
d97b6091ef Bug 898576 - Ignore cold phi inputs when specializing phi types. (r=jandem) 2013-08-02 08:24:56 -07:00
Jeff Muizelaar
df89698ddf Bug 900594. Support Android SDK v18.0.1 r=glandium
This makes configure use build-tools instead of platform-tools

--HG--
extra : rebase_source : 7cf330f178b81dc30dc1cc15af52a03329330c3a
2013-08-01 20:41:19 -04:00
Bill McCloskey
82484eab12 Backout bug 899804 for build errors. 2013-08-01 17:44:03 -07:00
Benjamin Bouvier
d1f1775546 Bug 900297: Folds MToDouble in its input if it is already a double; r=sstangl 2013-08-01 17:05:23 -07:00
Terrence Cole
8039b8bc2c Bug 900405 - Fix an incorrect assertion and missing check for minor GC; r=billm 2013-08-01 13:18:44 -07:00
Bill McCloskey
2a631212f2 Bug 899804 - Make CPOWs handle instanceof with WebIDL interfaces (r=bz,dvander) 2013-08-01 16:45:17 -07:00
Bill McCloskey
f1b5564512 Bug 900598 - Make sure not to collect the atoms compartment when exclusive threads are present (r=bhackett) 2013-08-01 16:45:11 -07:00
Nicholas Nethercote
a41f58081c Bug 899834 (attempt 2) - Use a better hash function for the atoms table. r=luke.
--HG--
extra : rebase_source : 8de314d19777ec380c8a4462b04563d77879526f
2013-07-30 18:01:26 -07:00
Dan Gohman
f3df36ec63 Bug 898468 - IonMonkey: Fix a typo in a comment. r=evilpies 2013-08-01 13:42:49 -07:00
Dan Gohman
cb38cf08dc Bug 898468 - IonMonkey: Optimize min/max for the case where RangeAnalysis can prove that there are no NaNs. r=evilpies 2013-08-01 13:39:28 -07:00
Dan Gohman
9514e8723b Bug 898468 - IonMonkey: Micro-optimize floating-point min and max using x86's minsd and maxsd instructions. 2013-08-01 13:34:48 -07:00
Terrence Cole
6145ae92b3 Bug 900198 - Suppress spurious static analysis rooting hazards in AsmJS; r=sfink
--HG--
extra : rebase_source : 3b95beff05958e6a9becc3bef3f057f30d4d93bd
2013-08-01 13:29:46 -07:00
Dan Gohman
181be6777f Bug 898451 - Add const to several more read-only static variables. r=evilpies 2013-08-01 13:26:04 -07:00
Nikhil Marathe
00ebb360de Bug 900236 - More rooting fixes for StructType field list. r=terrence
--HG--
extra : rebase_source : 06a0ecd83019b6fe9a6819c2b4f990d645d1cf22
2013-08-01 13:19:13 -07:00
Luke Wagner
e6de11ae70 Bug 899832 - hoist JSScript::originPrincipals and LazyScript::originPrincipals into ScriptSource (r=bhackett)
--HG--
extra : rebase_source : a71608e039c67c7ee9c8b41eb5946ae993d5a697
2013-08-01 13:47:39 -05:00
Nikhil Marathe
75484c8541 Bug 898622 - Fix StructType errors and handling. r=nmatsakis
--HG--
extra : amend_source : db42834ef0ab8cd218b52f4c631b94c5ca45fe09
2013-08-01 13:10:50 -07:00
Ms2ger
ad06681e97 Bug 897458 - Move EXTRA_PP_JS_MODULES to moz.build; r=gps 2013-08-02 09:03:25 +02:00
Andrea Marchesini
4cf68c1978 Bug 887524 - Move IDBRequest to WebIDL, r=janv 2013-08-01 00:28:15 +02:00
Andrea Marchesini
ebeb72d6f9 Bug 891944 - Move IDBCursor to WebIDL, r=janv 2013-08-01 00:28:13 +02:00
Terrence Cole
48417fda13 Bug 899827 - Allow AutoObjectObjectHashMap to store Nursery GC things; r=jonco
--HG--
extra : rebase_source : 9c528adf006c021fb519013f3265edfa10803714
2013-07-30 16:18:46 -07:00
Terrence Cole
c30d431fdf Bug 899827 - Allow self-hosting cloning to work on nursery things; r=till
--HG--
extra : rebase_source : 594ce2dfc868f25c4e4416af1123d3243636562b
2013-07-30 15:09:44 -07:00
Masatoshi Kimura
a7c7daa22e Backed out changeset 2aa62db58f24 (bug 673919) due to Web compat 2013-08-01 06:44:51 +09:00
Kannan Vijayan
7a902e12eb Bug 893038 - Re-enable heavyweight function and cloned lambda inlining. r=nbp 2013-07-31 17:36:09 -04:00
Andy Wingo
fbf319c319 Bug 886322 - Remove keepAtoms member in TokenStream. r=jorendorff 2013-07-31 17:28:14 +02:00
Andy Wingo
c9738dfd6f Bug 884794 - Rename JS1.7+ generators to "legacy generators". r=Waldo, r=jorendorff 2013-07-31 16:48:49 +02:00
Bill McCloskey
b36089b879 Bug 899759 - Bustage fix on a CLOSED TREE. 2013-07-31 12:05:51 -07:00
Bill McCloskey
0733c019de Bug 899759 - Prevent JS_NondeterministicGetWeakMapKeys from GCing while iterating over a weakmap (r=sfink) 2013-07-31 11:45:37 -07:00
Terrence Cole
c9b0e17bd4 Bug 898964 - Exactly root the global JSObject*'s in testResolveRecursive; r=sfink
--HG--
extra : rebase_source : e53220ba681b6f8ce7d82f414807efc6173e3863
2013-07-28 21:59:04 -07:00
Terrence Cole
0b728882c2 Bug 899693 - Fix unsafe reference hazards around HashableValue::setValue; r=sfink
--HG--
extra : rebase_source : f296325db530ec1f94708a657cdc7ad885a85368
2013-07-30 16:30:27 -07:00
Terrence Cole
4bd7e560b4 Bug 899696 - Fix unsafe reference hazard in SendToGenerator; r=sfink
--HG--
extra : rebase_source : 302da62f20ff1ddb14f35ddb8f3032b92961f6e0
2013-07-30 16:29:59 -07:00
Tom Schuster
d1a26edded Bug 884410 - Handlify JS_SetPrototype. r=terrence 2013-07-31 12:20:33 -04:00
Tom Schuster
8ac55e5939 Bug 884410 - Handlify JS_GetPrototype. r=terrence 2013-07-31 12:20:33 -04:00
Andrea Marchesini
20617169ee Bug 888596 - Move IDBDatabase to WebIDL, r=janv 2013-07-31 17:48:46 +02:00
Andrea Marchesini
9dbd04ea78 Bug 892065 - Move IDBIndex to WebIDL, r=janv 2013-07-31 17:48:40 +02:00
Andrea Marchesini
ef616d1baf Bug 888597 - Move IDBObjectStore to WebIDL, r=janv 2013-07-31 17:48:36 +02:00
Hannes Verschore
ef674e7e66 Bug 899051 - IonMonkey: Don't generate fastpath for dense setelem with sparse property after a boundscheck failure, r=bhackett 2013-07-31 15:07:57 +02:00
Hannes Verschore
460926c33f Bug 899572 - IonMonkey: Don't emit SetElementCache when there are setters, r=nbp 2013-07-31 15:07:39 +02:00
Hannes Verschore
6136c80e97 Bug 899735 - IonMonkey: Add a function to the shell that makes it possible to cause a bailout in IM, r=jandem 2013-07-31 15:07:34 +02:00
Jan de Mooij
c12b86e978 Bug 896529 - Move some methods from IonCompartment to IonRuntime. r=nbp 2013-07-31 14:19:00 +02:00
Luke Wagner
c9ecd27297 Bug 899936 - OdinMonkey: fix faulty floating point logic in ExtractNumericLiteral (r=mjrosenb)
--HG--
extra : rebase_source : ff323d369202b5b7868165fec7128b934b2afac4
2013-07-31 05:26:29 -05:00
Luke Wagner
1251adf127 Bug 899903 - OdinMonkey: merge AsmJSBoundsCheckVector with HeapAccessVector (r=mjrosenb)
--HG--
extra : rebase_source : 85be8040e2bdde27bc68679eb6927dec9ca828ed
2013-07-31 03:19:58 -05:00
Mike Hommey
10c4603a7b Bug 899405 - Allow host and target compilers to depend on stdc++-compat independently. r=ted 2013-07-31 14:04:23 +09:00
Dan Gohman
fdd5f2a9a4 Bug 891695 - Avoid passing pointers by const reference. r=rpearl 2013-07-30 21:17:33 -07:00
Dan Gohman
3d712720be Bug 898451 - IonMonkey: Don't allocate static storage for id_count in non-DEBUG mode. r=nbp 2013-07-30 21:12:58 -07:00
Dan Gohman
d7c9b1f6fb Bug 898451 - IonMonkey: Miscelaneous cleanups. r=nbp 2013-07-30 21:07:39 -07:00
Ryan VanderMeulen
dcd7a90f78 Backed out changesets 77fcbb01366c (bug 899792) and e7d81c2597f2 (bug 899241) for OSX bustage.
CLOSED TREE
2013-07-30 21:46:07 -04:00
Nicholas Nethercote
6ff412d250 Bug 899834 - Use a better hash function for the atoms table. r=luke.
--HG--
extra : rebase_source : f3e187695fe6c968087036af577274334c9033e1
2013-07-30 18:01:26 -07:00
Gregory Szorc
5fd8b7d40f Bug 899792 - Establish precompile tier and move IPDL and WebIDL build rules; r=glandium
A new build tier is introduced: precompile. The intention is to replace
the export subtier with something better and nonrecursive. IPDL and
WebIDL code generation have been moved into this new tier and are
performed concurrently. This appears to reduce build times due to fewer
"single threaded" build actions.

The subtier tracking UI has been updated to reflect operations that can
occur in parallel. As subtiers are started, they turn yellow. They can
then complete in any order.

Nonrecursive targets have been added to preserve the IPDL and WebIDL
build targets such that developers can type |make| from leaf directories
like they have always done.
2013-07-30 17:00:24 -07:00
Terrence Cole
42cdab715a Bug 889682 - Use LifoAlloc to back the StoreBuffer's allocation; r=billm
--HG--
extra : rebase_source : 467b43c3dae41691e6ed9c7bef996b71120b6369
2013-07-05 16:54:39 -07:00
Luke Wagner
07e1ba6101 Bug 899415 - OdinMonkey: split out declarations/definitions better across AsmJS .h/.cpp files (r=bbouvier)
--HG--
extra : rebase_source : 4d9a847bf5b70fe708d78f00335077a82c37fbcf
2013-07-29 21:15:05 -05:00
Ehsan Akhgari
085494b95d Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:

# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.mm" \) | \
    xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
                   media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
                   modules/libmar/src/mar_private.h \
                   modules/libmar/src/mar.h


# assert_replacer.py
#!/usr/bin/python

import sys
import re

pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")

def replaceInPlace(fname):
  print fname
  f = open(fname, "rw+")
  lines = f.readlines()
  for i in range(0, len(lines)):
    while True:
      index = re.search(pattern, lines[i])
      if index != None:
        index = index.start()
        lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
        for j in range(i + 1, len(lines)):
          if lines[j].find("                 ", index) == index:
            lines[j] = lines[j][0:index] + lines[j][index+4:]
          else:
            break
      else:
        break
  f.seek(0, 0)
  f.truncate()
  f.write("".join(lines))
  f.close()

argc = len(sys.argv)
for i in range(1, argc):
  replaceInPlace(sys.argv[i])

--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Bobby Holley
590dbb3712 Bug 898939 - Disable crashtest on android. r=me CLOSED TREE 2013-07-30 11:11:44 -07:00
Terrence Cole
80382ded5c Bug 889682 - Eagerly check for remembered set membership before buffering; r=billm
--HG--
extra : rebase_source : 83da73e4ee40f2185b63b214b6710b9146109ff1
2013-07-10 10:13:46 -07:00
Nick Alexander
f37aeaf3b5 Bug 898296 - Search for Android SDK build tools version 18.0.0. r=gps
This patch also tries to verify that the tools are actually found
early in the configure process, rather than failing with difficult to
parse errors at the end of the build.

Since the Android developer tools are defined earlier in the build
process, we can remove a work-around needed for |make install|.
2013-07-30 09:15:50 -07:00
Bobby Holley
7c9838cdcf Bug 897676 - Null out |si| if we end up using that of the proto in WrapNewGlobal. r=mrbkap 2013-07-30 08:53:56 -07:00
Bobby Holley
6b673fab54 Bug 898939 - Crashtest. r=me 2013-07-30 08:43:46 -07:00
Bobby Holley
5660b229c6 Bug 898939 - Loosen assertion. r=bz
This is just an overzealous assertion, rather than a security issue.
2013-07-30 08:43:46 -07:00
Ehsan Akhgari
3717325909 Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted 2013-07-30 10:25:31 -04:00
Ehsan Akhgari
a70b435251 Bug 872127 - Part 1: Remove support for MOZ_CUSTOM_STDINT_H; r=Waldo,ted 2013-07-30 10:24:49 -04:00
Jon Coppeard
4a64e34ed1 Backout 80e1116e4599 for Android failures on a CLOSED TREE 2013-07-30 13:52:30 +01:00
Jan de Mooij
2f530f8733 Bug 882736 - Ion-compile scripts that use ES5 getter/setter syntax. r=bhackett 2013-07-30 12:52:09 +02:00
Jan de Mooij
ea15a7a7de Bug 899017 - Fix VM functions called by the JITs to use bool instead of JSBool. r=sstangl 2013-07-30 11:53:22 +02:00
Jon Coppeard
408291508f Bug 893552 - OdinMonkey: (ARM) dynamic code is not preserving float registers d8 to d15 as required by the ABI r=mjrosenb 2013-07-30 09:57:58 +01:00
Jan de Mooij
2f81f9ac94 Bug 898381. r=mjrosenb 2013-07-30 10:23:55 +02:00
Wes Kocher
d6c9ce2081 Backed out changeset a0bc16b5a428 (bug 897676) for causing mochitest failures on a CLOSED TREE 2013-07-29 18:27:04 -07:00
Luke Wagner
24170b3ba7 Bug 899245 - The preceding typo fix was wrong; the original patch should have replaced JS_GetGlobalForScopeChain with JS::CurrentGlobalOrNull (r=red, CLOSED TREE) 2013-07-29 19:51:16 -05:00
Luke Wagner
1d8575c06a Fix JS/js typo from bug 899245 (r=red) 2013-07-29 19:36:20 -05:00
Mike Hommey
5c5d10cc55 Bug 895915 - Re-sync build/autoconf and js/src/build/autoconf 2013-07-30 09:00:38 +09:00
Mike Hommey
c34b466603 Bug 895915 - Enforce host gcc/clang support for C++11. r=gps 2013-07-30 08:57:28 +09:00
Dan Gohman
849c354f71 Bug 898451 - IonMonkey: Add MOZ_CONSTEXPR_VAR to several variables to help eliminate static constructor calls. r=waldo 2013-07-29 16:49:57 -07:00
Bobby Holley
99246966e4 Bug 899245 - Rename JS_GetGlobalForScopeChain to JS::CurrentGlobalOrNull. r=luke
This was done with perl/grep.
2013-07-29 16:45:27 -07:00
Bobby Holley
08f9b6fd28 Bug 899245 - Rename JS_SetGlobalObject and move it into jsfriendapi. r=luke 2013-07-29 16:45:26 -07:00
Bobby Holley
9f3d1e24f0 Bug 899245 - Rename js::GetDefaultGlobalForContext to js::DefaultObjectForContextOrNull. r=luke
This is more correct, since the object very often is not a global.
2013-07-29 16:45:25 -07:00
Dan Gohman
e618830f2f Bug 898442 - IonMonkey: Fix a bug in the IonSpewer which caused it to skip spewing of some functions. 2013-07-29 16:37:35 -07:00
Dan Gohman
8d5e4261fb Bug 898461 - IonMonkey: Move div and mod overflow and divide-by-zero handling code out of line. r=jandem 2013-07-29 16:22:46 -07:00
Bobby Holley
6e5c2a0773 Bug 897676 - Null out |si| if we end up using that of the proto in WrapNewGlobal. r=mrbkap 2013-07-29 16:03:04 -07:00
Bobby Holley
648370a93d Bug 898122 - Properly squelch exceptions in FormatFrame. r=luke
Given that this is a debugging tool, we don't really want to just throw in the
towel if we fail to glean all possible information during stack introspection.
Clear the exception and note the failure to the stream.
2013-07-29 14:31:30 -07:00
Bobby Holley
aac3defecb Bug 898122 - Add some helpful assertions into the JS engine. r=luke
Things go wrong much earlier than the assertion we currently hit.
2013-07-29 14:31:30 -07:00
Bill McCloskey
912c8b86ac Bug 899238 - Make sure CPOW parent is never null (r=dvander). 2013-07-25 11:50:00 -07:00
Mike Shal
f354fd56a7 Bug 888016 - Support compilation in subdirectories without VPATH; r=gps 2013-07-02 17:40:17 -04:00
Brian Hackett
1a5e10a50b Bug 897202 - Add some double canonicalization, r=luke. 2013-07-29 11:55:49 -06:00
Nikhil Marathe
c06504457b Bug 898734 - Fix segfault in error handling. r=nmatsakis
--HG--
extra : rebase_source : dfecbc3c3150deb19e352a3d885e35f24983e2e9
2013-07-29 10:28:03 -07:00
Nikhil Marathe
144876393b Bug 898670 - Add GetStructTypeFieldList(). r=nmatsakis
--HG--
extra : rebase_source : ac13a0cb025b0dd24d407833d573c0499d33b56c
2013-07-29 10:25:09 -07:00
Nikhil Marathe
6766bdcb76 Bug 898675 - Binary Data: Free StructType fieldList on error. r=nmatsakis
--HG--
extra : rebase_source : a7ebb8c1bbf7464ab0697dc014334cfcf75e69a2
2013-07-29 10:24:42 -07:00
Nikhil Marathe
55393e9766 Bug 898494 - Fix lack of rooting in Binary Data. r=nmatsakis
--HG--
extra : rebase_source : d81cb1c34cb6767966ccc4006ed504c7d0e935ac
2013-07-29 10:22:11 -07:00
Andrea Marchesini
a1a1e17579 Bug 888598 - Move IDBTransaction to WebIDL, r=janv 2013-07-29 19:12:21 +02:00
Trevor Saunders
64dbc43c4d backout bug 886526 because it probably made us use a lot more memory to link on windows 2013-07-29 11:03:21 -04:00
Jon Coppeard
fd4d274d46 Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug 2013-07-26 10:00:38 +01:00
Marty Rosenberg
6073c21b30 bug 858940: fix an additional case where we inspect the instruction stream without going through an iterator. (r=jbramley) 2013-07-15 14:21:46 -04:00
Marty Rosenberg
eac5e9f762 bug 898720: Don't step over natural guards when iterating over instructions. (r=jbramley) 2013-07-29 06:57:05 -04:00
Jan de Mooij
b8f937d400 Bug 898047 - Fix Ion to set the Folded flag on arguments MIR when optimizing fun.apply(x, arguments). r=bhackett 2013-07-29 11:16:12 +02:00
Emanuel Hoogeveen
dd577482c4 Bug 888088 (part 11, attempt 2) - Fix #include ordering in js/src/ion/arm/. r=nnethercote.
--HG--
extra : rebase_source : af94f273059792c3e8a57221adaad6a4b60e193e
2013-07-25 17:10:25 -07:00