Commit Graph

90 Commits

Author SHA1 Message Date
Nathan Froyd
df80caf566 Bug 924393 - don't use JS_BITS_PER_WORD in BitArray.h; r=Waldo 2013-10-08 09:54:50 -04:00
Birunthan Mohanathas
0570d00cee Bug 784739 - Switch from NULL to nullptr in js/src/{devtools,ds,gdb,perf}/; r=ehsan 2013-09-24 22:59:43 -04:00
Nicholas Nethercote
d51061d5ba Bug 912411 (part 3) - Remove lots of jsapi.h includes in SpiderMonkey. r=luke.
--HG--
extra : rebase_source : c2219e3a911b8242a6aa89f91997fbd7caa542dc
2013-09-05 16:08:57 -07:00
Nicholas Nethercote
aca7bc3a15 Bug 911043 (part 2) - Remove unnecessary jsapi.h includes in SpiderMonkey. r=luke.
--HG--
extra : rebase_source : 2320e364bb9efb59283a572e100185702ef494da
2013-09-01 22:03:30 -07:00
Nicholas Nethercote
2f9b5c3933 Bug 911043 (part 1) - Move the "inject JS:: names into js::" block into its own file, to reduce dependencies on jsapi.h. r=luke.
--HG--
extra : rebase_source : 2250064bdd316ffeb8126da749bdf94ab9da4418
2013-09-01 21:51:02 -07:00
Bill McCloskey
456501c6f9 Bug 909574 - Fix LifoAlloc to work with MergeCompartments (r=bhackett) 2013-09-01 21:28:12 -07:00
Jon Coppeard
7fb6f56f2f Bug 905654 - Fix an assertion failure running GGC shell on linux 32 bit builds; r=terrence 2013-08-16 09:15:00 -07:00
Nicholas Nethercote
661b2847d3 Bug 898263 (part 9) - Move IdValuePair from jsprvtd.h to ds/IdValuePair.h. r=jorendorff.
--HG--
extra : rebase_source : 9db6c27bad5a5ce742aa2ad4fea3427696273838
2013-07-25 23:42:47 -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
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
Emanuel Hoogeveen
2a82b5df8b Bug 888088 (part 3) - Fix #include ordering in js/src/frontend/. r=nnethercote.
--HG--
extra : rebase_source : eb87ec3ceb04ab5045a086a773e611f733847723
2013-07-23 17:34:18 -07:00
Jeff Walden
5e2dbd029b Bug 891177 - Remove Vector.h's js/TemplateLib.h dependency by introducing mfbt/TemplateLib.h with the necessary bits. r=terrence
--HG--
extra : rebase_source : e84231171d6bd6c1e2de8201b8c9563375723d01
2013-07-08 12:42:13 -07:00
Jeff Walden
f52f37cddc Bug 891177 - Move leading/trailing-zero-bit counting functions, ceiling/floor log2 functions, and round-up-pow2 functions into MathAlgorithms.h. r=terrence
--HG--
extra : rebase_source : 8cfbd68b8cd4a0e21185dd864c7e827ccfa6b751
2013-07-03 15:46:51 -07:00
Nicholas Nethercote
c1a0def392 Bug 883696 (part 4) - Include full paths in #include statements in the rest of js/src/ and js/public/. r=luke. 2013-06-27 17:37:29 -07:00
Masatoshi Kimura
1abee81c5b Bug 839998 - Replace thisDuringConstruction() with MOZ_THIS_IN_INITIALIZER_LIST(). r=waldo 2013-06-27 00:15:53 +09:00
Catalin Iacob
fddabbee4e Bug 798914 (part 4) - Use newly introduced mozilla::MallocSizeOf in js. r=njn.
--HG--
extra : rebase_source : d1c063b94c7ec58729150cbea602bb4c9f2a0e24
2013-06-23 13:21:01 +02:00
Brian Hackett
92dd318ced Bug 883154 - Add runtime wide cache for compiled lazy scripts, r=billm. 2013-06-23 20:37:42 -06:00
Emanuel Hoogeveen
1bcd8af54f Bug 883697 (part 2) - Make include guards consistent in some of js/src/. r=njn.
--HG--
extra : rebase_source : 86e3e36e1711191a6e8a01bc44f01cffc6b48b96
2013-06-19 17:59:46 -07:00
Nicholas Nethercote
6e1bfca609 Bug 634839 (part 2) - Remove more unnecessary #includes from SpiderMonkey. r=jorendorff.
--HG--
extra : rebase_source : 32a4ee649fe206ddb966527eb0f6275c076cbea2
2013-06-06 21:35:53 -07:00
Brian Hackett
f23fc8246e Bug 878293 - Remove Parser::init, cleanup parse maps pool, r=waldo. 2013-06-04 15:53:29 -06:00
Luke Wagner
921dcb548d Bug 851627 - Make LifoAlloc::release run in O(1) (r=sstangl) 2013-04-25 12:28:29 -07:00
Sean Stangl
7c06a2ec68 Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-16 13:47:10 -07:00
Phil Ringnalda
c0b436c32d Back out a5a1dd3bd8ae (bug 860029) for stupidorange 2013-04-15 12:55:38 -07:00
Sean Stangl
efc7d9a873 Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-15 11:33:03 -07:00
Phil Ringnalda
f9e5683baf Back out 5bf9771e1a28 (bug 860029) for bustage
CLOSED TREE
2013-04-11 19:55:37 -07:00
Sean Stangl
9c52e8cf81 Bug 860029 - Standardize Modelines in the JS Module. DONTBUILD. r=njn 2013-04-11 18:48:59 -07:00
Jeff Walden
b5bf552de0 Bug 856850 - Implement a PodOperations.h header that includes all the Pod* functions currently in jsutil.h. r=Ms2ger 2013-04-01 22:43:19 -07:00
Nicholas Nethercote
5bd34085b0 Bug 831588 - Don't measure decommitted GC arenas in the "explicit" tree. r=terrence,jlebar.
--HG--
extra : rebase_source : a35d978b8884e25169cca8ffc93f96e532e82320
2013-03-26 15:07:33 -07:00
Jeff Walden
d30ff604a4 Bug 851237 - Replace StaticAssert uses with MOZ_STATIC_ASSERT. r=dholbert
--HG--
extra : rebase_source : d8b9715e05b959b11ee0f645141fd077b8599ab1
2013-03-21 18:26:15 -07:00
Luke Wagner
9316c6d420 Bug 852305 - immediately free LifoAlloc memory when we finish parsing huge scripts (r=njn)
--HG--
extra : rebase_source : 745ae1fff040efe24da68a84114ba3e4046f754d
2013-03-18 17:33:05 -07:00
Nicholas Nethercote
d08da4398a Bug 850523 (part 2) - Use C++ comments in LifoAlloc.{cpp,h} (2nd attempt). r=wmccloskey.
--HG--
extra : rebase_source : 6d96968f952086df7f4b7952a6926eb0f562bfde
2013-03-14 15:10:39 -07:00
Nicholas Nethercote
002fe1c5b2 Bug 850523 (part 1) - Add a "js-main-runtime-temporary-peak" memory reporter (2nd attempt). r=wmccloskey,jlebar.
--HG--
extra : rebase_source : d90dcad2ed990b6e276ff38c36170b815ae9b823
2013-03-06 20:40:36 -08:00
Phil Ringnalda
3dbc683edc Back out e0038e628250 and 02b242697afb (bug 850523) for test_memoryReporters.xul crashes
CLOSED TREE
2013-03-17 22:15:25 -07:00
Nicholas Nethercote
918908f379 Bug 850523 (part 2) - Use C++ comments in LifoAlloc.{cpp,h}. r=wmccloskey.
--HG--
extra : rebase_source : 395321642042559ef2484445fa13c03ba22e8390
2013-03-14 15:10:39 -07:00
Nicholas Nethercote
1aad0e70c2 Bug 850523 (part 1) - Add a "js-main-runtime-temporary-peak" memory reporter. r=wmccloskey,jlebar.
--HG--
extra : rebase_source : d183213c48b9d07fb62fce830998bcb8bb044f47
2013-03-06 20:40:36 -08:00
Christian Holler
a933aec5ad Bug 838557 - Create a common interface for ASan/Valgrind functions. r=mats,bhackett 2013-02-15 00:50:11 +01:00
Jeff Walden
579f351e28 Rename the |static const bool result| member of IsSame, IsPod, and IsPointer to |value| to be consistent with every other type trait. I have no idea how I managed to consistently not notice this during review. Followup to bug 723228, r=typo 2013-02-08 22:59:54 -08:00
Razvan Cojocaru
83699243fe Bug 723228 - nsTArray::AssignRange should use memcpy when possible. r=jlebar for the XPCOM changes, r=jwalden for js/mfbt changes
--HG--
extra : rebase_source : 2442a0d29ae0fa7edd0312d980cbc270a4f33134
2013-02-08 13:18:49 -08:00
Nicholas Nethercote
5163cfb796 Bug 838911 - Fix Valgrind and ASAN annotations in LifoAlloc. r=bhackett 2013-02-06 17:39:27 -08:00
Christian Holler
6fd655dead Bug 838150 - Add ASan and Valgrind annotations to JS LifoAlloc. r=bhackett 2013-02-06 14:30:01 +01:00
Luke Wagner
fd1c2ab1a1 Bug 834108 - avoid O(n^2) chunk-searching in LifoAlloc::ensureUnusedApproximate (r=dvander)
--HG--
extra : rebase_source : d3cb159978d10e6f74984d8556784081b2c940b9
2013-01-24 14:36:17 -08:00
Jeff Walden
430b9a273b Bug 752578 - Use mfbt's guard object implementation rather than using our own in all the easy cases. r=Ms2ger
--HG--
extra : rebase_source : ba7faa490cdc5c9b85b5617ff5bb17246b74868e
2012-12-27 11:20:22 -06:00
Brian Hackett
5226bfbc9e Bug 822116 - x86/x64 tuning for backtracking allocator, r=jandem. 2012-12-19 10:32:17 -07:00
Ed Morley
85776abd2f Backout 70f1b2db9f5f (bug 822116) for M2 crashes 2012-12-19 09:16:26 +00:00
Brian Hackett
f7e2c2afcd Bug 822116 - x86/x64 tuning for backtracking allocator, r=jandem. 2012-12-18 21:26:09 -07:00
Jeff Walden
e0523203c9 Bug 820570 - Move mozilla::DebugOnly into DebugOnly.h to pare down the grab-baggish Util.h. r=Ms2ger 2012-12-14 18:58:45 -05:00
Brian Hackett
e02365d1ff Bug 821151 - Never call destructors for splay tree elements, r=luke. 2012-12-14 11:47:27 -07:00
Brian Hackett
289f585792 Bug 821151 - Add splay tree utility class, r=luke. 2012-12-14 09:53:52 -07:00
Brian Hackett
bc04b68f8a Add generic priority queue implementation, bug 817769. r=luke 2012-12-03 15:25:26 -07:00
Terrence Cole
0c462dc03a Bug 807151 - Unexport |mozilla| from the |js| namespace; r=Waldo
Clang does not want to allow js::ion::Range and mozilla::Range simultaneously
when we have a |namespace js { using namespace mozilla; }| declaration.
2012-11-06 17:35:18 -08:00