Commit Graph

91 Commits

Author SHA1 Message Date
Mike Hommey
d01b5df996 Bug 881323 - Re-implement CycleCollectorParticipant with actual vtables, with constexpr to avoid static initializers. r=mccr8 2013-08-02 10:29:05 +09:00
Andrea Marchesini
413ce8df28 Bug 887524 - Move IDBRequest to WebIDL, r=janv 2013-08-01 00:28:15 +02:00
Andrea Marchesini
affecad19a Bug 891944 - Move IDBCursor to WebIDL, r=janv 2013-08-01 00:28:13 +02:00
Andrea Marchesini
a55b90d029 Bug 892065 - Move IDBIndex to WebIDL, r=janv 2013-07-31 17:48:40 +02:00
Andrea Marchesini
f88a92b855 Bug 888597 - Move IDBObjectStore to WebIDL, r=janv 2013-07-31 17:48:36 +02:00
Ehsan Akhgari
5ee21d6d3f 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
Jon Coppeard
a89a393bba Bug 884384 - Use JS::MutableHandle<JS::Value> instead of jsval* for out parameters r=smaug 2013-06-21 14:12:46 +01:00
Jon Coppeard
59d5490ab4 Bug 877762 - GC: Post-barrier cycle collector participants - 5 Convert JS::Value to use Heap<T> r=smaug 2013-06-18 11:00:37 +01:00
Bobby Holley
91448a9dac Bug 868130 - Remove the lion's share of JSAutoRequests in gecko. r=gabor
There are still a handful that either are used with other runtimes, or that
happen very early/late in cx the lifetime of various things where it doesn't
necessarily make sense to have a cx on the stack. This should definitely ensure
that we're not doing double-duty with the nsCxPusher change, though.
2013-05-22 10:05:28 -06:00
David Zbarsky
f6efab93ab Bug 866450 Part 6: Fix rooting hazards under content/ and dom/ r=bz 2013-05-02 05:12:47 -04:00
Ed Morley
ca271dcaf0 Backed out changeset 7c0ace2560c4 (bug 866450) 2013-05-02 11:57:01 +01:00
David Zbarsky
c16b833cb2 Bug 866450 Part 6: Fix rooting hazards under content/ and dom/ r=bz 2013-05-02 05:12:47 -04:00
Ben Turner
0514a30d13 Bug 861287 - 'Integrate IndexedDB into the gecko profiler'. r=khuey. 2013-03-15 23:58:50 -07:00
Ben Turner
d2d94d205c Backout bug 861287 for gcc build failures. 2013-04-25 08:30:28 -04:00
Ben Turner
19f1c29c69 Bug 861287 - 'Integrate IndexedDB into the gecko profiler'. r=khuey. 2013-03-15 23:58:50 -07:00
Trevor Saunders
9f0ad48b28 bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8 2013-01-12 07:40:33 -05:00
Andrew McCreight
bf4449f2b7 Bug 792861 - Make HoldJSObjects/DropJSObjects infallible. r=smaug 2012-11-12 17:15:00 -08:00
Olli Pettay
1e72329799 Bug 811206, Fix JSHolder drop handling, part 3 (fixes), r=mccr8,khuey
--HG--
extra : rebase_source : 7b2726d2aa7f5764a3c4cb750e5a735728069687
2012-11-28 03:37:57 +02:00
Benoit Jacob
a1d7e0f511 Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 1: automatic changes - r=mccr8 2012-11-15 02:32:40 -05:00
Ben Turner
9572705866 Bug 808743 - ' Better protection for PBrowser shutdown and database invalidation in multiprocess scenarios'. r=khuey+cjones.
--HG--
extra : transplant_source : %BD%E4%ADA%09%CE%D9%BE%1C%7C%7B%1A%FC%86%5C%13%24%29%B4%16
2012-11-09 19:29:07 -08:00
Kyle Huey
4bf336005a Bug 797889: Make sure IndexedDB does not send messages to thechild after it has begun shutting down. r=bent 2012-10-05 12:09:33 -07:00
Kyle Huey
b2feb19cf4 Bug 780778: Make sure we already release stuff on the right thread. r=bent
--HG--
extra : rebase_source : 554edc65d83af084a26679d046a90d38f499e142
2012-10-03 12:05:20 -07:00
Isaac Aggrey
997db4d142 Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

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 "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Ben Turner
0010e82b08 Bug 759427 - 'Multiprocess blob support for MessageManager and IndexedDB'. r=smaug+janv+khuey (rs=sicking for nsBlobURI changes).
--HG--
extra : transplant_source : %95%B5y%11%C5%AB%D9%CF%FF%7C%5E%BB%E5%DA%F5j%83o%29%EB
2012-08-01 23:02:29 -07:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Jonas Sicking
2e7cb24268 Bug 755514: Cursor.update support for keypath arrays. r=khuey 2012-06-29 09:48:34 -07:00
Kyle Huey
be8af1d20d Bug 758497: Mimic [EnforceRange] for cursor.advance until we get new WebIDL bindings. r=sicking 2012-06-29 09:48:34 -07:00
Kyle Huey
9b2a38f11f Bug 765834: Rework and unify keyPath handling. r=bent 2012-06-21 15:27:13 -07:00
David Zbarsky
cc6af21c8d Bug 765362: Remove some unused functions in IDB r=bent 2012-06-18 12:48:15 -07:00
Ryan VanderMeulen
891e38e528 Revert c39d36167b99 due to a horribly munged backout. 2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
f497d31a0a Backout the bug 754202 backout due to orange. 2012-06-10 19:37:47 -04:00
Andrew McCreight
f4f0e1a935 Bug 754478 - clean up cycle collector JS tracing callbacks. r=bent 2012-05-15 09:56:39 -07:00
Ms2ger
0170d19adc Bug 761635 - Fix build in MSVC 8; r=khuey 2012-06-10 19:19:12 +02:00
Kyle Huey
0d49be1d43 Bug 759970: Result when reaching the end of a cursor should be null. r=sicking 2012-06-07 13:59:51 -07:00
Jan Varga
6e3e5ab48b Bug 726593 - Implement FileHandle. r=bent 2012-06-03 18:33:52 +02:00
Ben Turner
b072e01d8f Bug 666693 - 'Remote IndexedDB for multiple IndexedDB-using processes'. r=cjones+sicking. 2012-06-01 10:21:12 -07:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Masatoshi Kimura
23049011a9 Bug 730161 - Replace IDBDatabaseException and FileException with DOMException. r=sicking 2012-04-11 17:55:21 -04:00
Jonas Sicking
a6918c141f Bug 735357: Fix Contacts API to use new IndexedDB constants. r=gwagner 2012-03-13 13:25:05 -07:00
Jonas Sicking
39ecbe97e4 Bug 735094: Implement new string values (rather than numeric constants) for IndexedDB. r=bent 2012-03-12 21:44:45 -07:00
Olli Pettay
339e88ba7e Bug 734057 - Make nsDOMEventTargetHelper to not have strong pointer to window, r=jst,bent 2012-03-13 02:56:07 +02:00
Peter Van der Beken
28f90dc67b Fix for bug 731227 (Fix script object ownership in IDBWrapperCache/IDBCursor). r=bent.
--HG--
extra : rebase_source : 86074980306682ebe1c4df8e09c4c2f3c51c4bf2
2012-02-27 17:52:19 +01:00
Ben Turner
565ac90471 Bug 718132 - IndexedDB: Intermittent Failing to get JS wrapper in IDBRequest::NotifyHelperCompleted. r=khuey.
--HG--
extra : transplant_source : kT-%8B%9A%00%D5%230%EC%11%00%1A%B1%A2%1EFSd%2A
2012-01-24 02:03:37 -08:00
Ed Morley
25bb1feaa8 Backout 8886b027527a (bug 718132) for xpcshell failures 2012-01-23 16:18:14 +00:00
Ben Turner
a83f777b58 Bug 718132 - IndexedDB: Intermittent Failing to get JS wrapper in IDBRequest::NotifyHelperCompleted. r=khuey.
--HG--
extra : transplant_source : 1j%98%F9%1D%7F%C8%13%8E%9D%B0%05%05%93%D4%60%89%3D%06%19
2012-01-23 06:03:41 -08:00
Ms2ger
51f59f0021 Bug 713645 - Remove superfluous inclusions of jscntxt.h; r=luke 2012-01-02 19:05:19 +01:00
Jan Varga
8702627c09 Bug 661877 - Enable storing files in IndexedDB. r=bent 2011-12-16 08:34:24 +01:00
Ben Turner
d2fe7043a2 Bug 692628 - 'IndexedDB: Support IDBCursor.advance'. r=sicking. 2011-11-07 15:37:19 -08:00