Commit Graph

285 Commits

Author SHA1 Message Date
Bobby Holley
99e1b4f2b7 Bug 901364 - Make operation callbacks runtime-wide. r=mrbkap 2013-08-12 12:54:50 -07:00
Nicholas Nethercote
f7d6f07d24 Bug 898914 (part 1) - Remove JSBool. 2013-08-08 15:53:04 -07:00
Kyle Huey
66c8b9672f Bug 845545: Part 5 - Port ImageData to workers. r=mccr8,peterv,bent 2013-08-03 16:55:40 -07:00
Kyle Huey
7801e2b85f Bug 845545: Part 4 - Create a worker implementation of CycleCollectedJSRuntime. r=mccr8,bent 2013-08-03 16:55:40 -07:00
Ehsan Akhgari
1ab9c7bcb4 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])
2013-07-18 13:59:53 -04:00
Boris Zbarsky
5b86452325 Bug 838146 part 1. Implement WebIDL API on Navigator for the parts that are specified or are in nsIDOMNavigator. r=smaug, sr=sicking 2013-07-12 10:35:35 -04:00
Brian Hackett
efa24e41bc Bug 890636 - Remove JSOPTION_PCCOUNT, r=jandem. 2013-07-08 09:17:35 -06:00
Bobby Holley
ae48528424 Bug 880917 - Convert JS_SetVersion API consumers to per-compartment versions. r=luke 2013-06-29 09:11:18 -06:00
Justin Lebar
de89040a2c Bug 802686 - s/MOZ_NOT_REACHED/MOZ_CRASH/ in Gecko. r=(see below)
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else

This is a mechanical change made with sed.  Later patches in this queue
clean up the whitespace errors and so on.
2013-06-28 18:38:30 -07:00
Gregor Wagner
42f1e9c3f3 Bug 887125 - Allow 0 for Memory GC Preferences. r=bent 2013-06-27 14:40:17 +08:00
Jon Coppeard
5f0e17f56a Bug 885310 - 1 Rename JSHandleFoo in the browser r=bz 2013-06-21 14:12:46 +01:00
Benjamin Peterson
b97a128e7f Bug 823978 - Rename JSOPTION_STRICT to JSOPTION_EXTRA_WARNINGS. r=Waldo 2013-06-11 12:49:11 -07:00
Ryan VanderMeulen
05d0234247 Backed out changeset 1df122edcf0d (bug 823978) for bustage (again).
CLOSED TREE (again)
2013-06-11 15:27:46 -04:00
Benjamin Peterson
8192b95a4d Bug 823978 - Rename JSOPTION_STRICT to JSOPTION_EXTRA_WARNINGS. r=Waldo 2013-06-11 11:30:18 -07:00
Ryan VanderMeulen
44c3c3cd0e Backed out changeset 7e69e102a432 (bug 823978) for bustage.
CLOSED TREE
2013-06-11 14:28:17 -04:00
Benjamin Peterson
c2652ce2ee Bug 823978 - Rename JSOPTION_STRICT to JSOPTION_EXTRA_WARNINGS. r=Waldo 2013-06-11 10:55:21 -07:00
Ben Turner
446b872845 Bug 873356 - 'Should do shrinking GCs more often for workers'. r=khuey. 2013-05-16 15:49:43 -07:00
Kyle Huey
e8d27b95ce Bug 854739: Ensure that messages are delivered in order when suspending and resuming workers. r=bent+bholley 2013-06-06 10:28:47 -07:00
Julian Seward
3b5fdeee03 Bug 872496 - Allow early registration of stack tops, to improve native unwind quality. r=bgirard. 2013-05-28 14:03:38 +02:00
Bobby Holley
c3247a55cf Bug 868130 - Include nsCxPusher.h everywhere we need it, and stop including it from nsContentUtils.h. r=gabor 2013-05-22 10:05:26 -06:00
Jan de Mooij
13b3a7e5aa Bug 857845 part 3 - Remove JM JSAPI flags, memory reporters and browser prefs. r=djvj 2013-05-22 14:50:45 +02:00
Luke Wagner
5a550b33ba Bug 868184 - OdinMonkey: enable by default on beta/release (r=vlad) 2013-05-07 13:34:17 -07:00
Sankha Narayan Guria
b4a935c1df Bug 867414 - Rename SafeAutoJSContext to AutoSafeJSContext. r=bholley 2013-05-06 09:04:17 -04:00
Terrence Cole
9cde48c3ba Bug 860050 - Remove JSMutableHandleObject typedef; r=bz,jonco 2013-04-16 16:20:44 -07:00
Bobby Holley
18bc49a336 Bug 865729 - Remove nsIJSContextStack from dom/foo. r=gabor 2013-04-29 11:16:18 -07:00
Benoit Girard
c852e9f776 Bug 734691 - Port multi-thread support to win/mac. r=snorp,smaug 2013-04-03 18:59:17 -04:00
James Willcox
5629d42acd Bug 734691 - Add multi-thread support to profiler r=benwa 2013-03-29 15:34:49 -04:00
Bobby Holley
5869781fad Bug 860438 - Convert workers to SafeAutoJSContext. r=gabor
The only functional difference here is that AutoSafeJSContext entered a request.
Really, we should always enter a request and a compartment at the same time. But
for now we just preserve the old behavior with a JSAutoRequest.
2013-04-18 11:36:04 -04:00
Bobby Holley
388bfefb80 Bug 860438 - Simplify JSContext handling {Cancel,Suspend,Resume}WorkersForWindow. r=gabor
The only functional difference here is the removal of a bug in which we were
constructing a dom::workers::AutoSafeJSContext around aCx, but then continuing
to pass aCx to the callee. If aCx were to be null, we'd end up with a mismatch
between the stack and the active cx. But it looks likes stuff depends on cx
being non-null anyway, so that probably never happened.
2013-04-18 11:36:04 -04:00
Ryan VanderMeulen
af7b34490a Backed out 3 changesets (bug 734691, bug 862500) for leaks.
Backed out changeset 4444510d672f (bug 862500)
Backed out changeset 5c321bc4dc63 (bug 734691)
Backed out changeset e045934f78be (bug 734691)
2013-04-18 08:15:09 -04:00
Benoit Girard
91d210dbdb Bug 734691 - Port multi-thread support to win/mac. r=snorp,smaug 2013-04-03 18:59:17 -04:00
James Willcox
418f38c9c6 Bug 734691 - Add multi-thread support to profiler r=benwa 2013-03-29 15:34:49 -04:00
Ryan VanderMeulen
96444bb594 Backed out 2 changesets (bug 734691) for leaks.
Backed out changeset ba88d9730af6 (bug 734691)
Backed out changeset 7d2fbf7b0372 (bug 734691)
2013-04-16 13:45:53 -04:00
Benoit Girard
3a5a301d89 Bug 734691 - Port multi-thread support to win/mac. r=snorp,smaug 2013-04-03 18:59:17 -04:00
James Willcox
974e635af1 Bug 734691 - Add multi-thread support to profiler r=benwa 2013-03-29 15:34:49 -04:00
Jan de Mooij
29f0c6fbb5 Merge from mozilla-inbound. 2013-03-29 15:55:22 +01:00
Phil Ringnalda
527c27f60a Back out 89e99ecdf29f (bug 734691) for leaking
CLOSED TREE
2013-03-28 20:52:20 -07:00
James Willcox
3cb967fd32 Bug 734691 - Add multi-thread support to profiler. r=benwa 2013-03-28 19:51:15 -04:00
Jan de Mooij
ebfa209616 Merge from mozilla-central. 2013-03-18 16:53:57 +01:00
Jan de Mooij
4306594212 Bug 846297 - Enable baseline compiler for web workers and chrome. r=djvj 2013-02-28 17:38:20 +01:00
Luke Wagner
df1c6eeff2 Bug 840282 - OdinMonkey (sr=dmandelin) 2013-03-15 02:29:02 -07:00
Sid Stamm
0836982dc6 Bug 687086 - change nsIContentSecurityPolicy to return two values, shouldBlock and shouldReportViolation. r=bz 2012-10-15 13:54:58 -07:00
Nicholas Nethercote
03e9f7ae1b Bug 788293 - Remove e4x support. r=jorendorff,terrence,evilpie.
Ding dong!  The witch is dead!
2013-01-24 21:24:57 -08:00
Phil Ringnalda
6c1eebfede Back out 66882ea6f8c7 (bug 788293) and 32f09cb3c7b6 (bug 834090) for bustage
CLOSED TREE
2013-01-31 22:29:30 -08:00
Nicholas Nethercote
2d2d004475 Bug 788293 - Remove e4x support. r=jorendorff,terrence,evilpie.
Ding dong!  The witch is dead!
2013-01-24 21:24:57 -08:00
Mats Palmgren
7532b4e736 Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan 2013-01-15 13:22:03 +01:00
Gregor Wagner
a97005ae45 Bug 828887 - "unused-arenas" is not freed unless worker is idle for 5 seconds. r=bent 2013-01-10 23:50:40 +01:00
Ben Turner
73163816a9 Bug 827274 - 'crash in [@ anonymous namespace::CTypesActivityCallback(JSContext*, js::CTypesActivityType)], add ctypes closure support to new worker memory reporting mechanism. r=khuey+mrbkap. 2013-01-08 13:57:44 +01:00
Ben Turner
370e873903 Bug 813867 - 'Report memory for web workers that use ctypes'. r=jlebar+jorendorff. 2012-12-30 10:21:52 -08:00
Jeff Walden
09bfe67944 Bug 824217 - Remove some easy-to-remove tests of JSRESOLVE_ASSIGNING. r=bz 2012-12-19 19:32:34 -05:00