Commit Graph

27956 Commits

Author SHA1 Message Date
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
Emanuel Hoogeveen
3a2eb75e78 Bug 888088 (part 13) - Fix #include ordering in a few places that fell through the cracks. r=nnethercote.
--HG--
extra : rebase_source : 8dd03c77de6add76c9e78cb87180e1fdc36b57df
2013-07-28 17:04:47 -07:00
Luke Wagner
998eab593a Bug 898619 - put the rest of the JSRuntime:: methods into vm/Runtime.cpp (r=billm) 2013-07-28 21:27:38 -05:00
Christian Holler
0309d28890 Bug 898230 - Disable alloc-dealloc checking under AddressSanitizer. r=glandium 2013-07-29 02:44:00 +02:00
Nikhil Marathe
0fb9da0e2a Bug 898661 - Temporarily disable Binary Data in Nightly builds too. r=nmatsakis
--HG--
extra : amend_source : 4ba33977d6d6990b17f44218f8382d2a92c86a2c
2013-07-28 08:26:13 -07:00
Nikhil Marathe
8254390159 Bug 898623 - Root StructType FieldInfo properties. r=terrence
--HG--
extra : rebase_source : 8d9c9a3da29f8289b3c1f0bd2e5bc1fc5c6eb1df
2013-07-26 16:21:53 -07:00
Jeff Walden
b7afdfa45f Bug 890127 - Properly initialize and cleanup ICU, when enabled in JS engine builds. r=njn
--HG--
extra : rebase_source : f1dd0e44afe1561e225bef1f31735caef1cea18c
2013-07-19 20:18:01 -07:00