Commit Graph

186 Commits

Author SHA1 Message Date
Dan Gohman
cb91b0c71d Bug 918350 - SpiderMonkey: Remove js_NaN in favor of a new mozilla::GenericNaN() function. r=waldo 2013-09-19 18:42:56 -07:00
Benjamin Bouvier
23ca7d5226 Bug 888109: Float32 general optimizations for IonMonkey: framework and arithmetic operations; r=sstangl,nbp 2013-07-18 15:13:15 -07:00
Nicholas Nethercote
fa37a2655d Bug 905017 (part 3, attempt 2) - Move profiling stack stuff from jsapi.h to js/ProfilingStack.h. r=billm. 2013-08-19 23:45:26 -07:00
Nicholas Nethercote
8e581639bf Bug 905017 (part 2, attempt 2) - Move structured clone stuff from jsapi.{h,cpp} and jsclone.{h,cpp} to js/StructuredClone.{h,cpp}. r=billm. 2013-08-19 23:43:47 -07:00
Ehsan Akhgari
b195bf9852 Backed out changeset 9cdd168a8518 (bug 904108) because it includes an unreliable Clang marketing version check 2013-08-16 11:53:46 -04:00
Adam Roach [:abr]
9112527bc3 Bug 904108 - Add explicit assignment operator to js::Value r=luke 2013-08-12 12:01:23 -05:00
Nathan Froyd
9ede2445f6 Bug 899309 - modify JS::Value and some helper functions to be constexpr-foldable; r=luke 2013-07-29 16:59:34 -04:00
Nicholas Nethercote
f7d6f07d24 Bug 898914 (part 1) - Remove JSBool. 2013-08-08 15:53:04 -07:00
Nicholas Nethercote
f30b759645 Bug 902332 - Replace JS_{FALSE,TRUE} with {false,true} almost everywhere. r=luke,bz. 2013-08-06 23:59:54 -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
Terrence Cole
dda068b13b Bug 887563 - Convert CallArgs::operator[] to return a Handle; r=Waldo,bz 2013-06-26 16:26:45 -07:00
Cykesiopka
205ce5a1bb Bug 831741 - Followup: Remove remaining __cplusplus bits from /js (with exceptions). r=jorendorff 2013-06-26 21:35:11 -04:00
Emanuel Hoogeveen
7618e9b9a6 Bug 883697 (part 1) - Make include guards consistent in js/ductwork/, js/ipc/ and js/public/. r=njn. 2013-06-19 17:59:09 -07:00
Jon Coppeard
36fbe0a5b6 Bug 884283 - GC: Rename RootMethods to GCMethods r=terrence 2013-06-19 11:32:26 +01:00
Jon Coppeard
131c1edc52 Bug 877762 - GC: Post-barrier cycle collector participants - 1 Fixes and updates to JS::Heap<T> r=terrence 2013-06-18 11:00:37 +01:00
Landry Breuil
5ec4cc9cfe Bug 618485: Finally remove uintptr_t word payload union member on 64BE, it grows jsval_layout size and is unused. r=luke 2013-06-08 12:49:10 +02:00
Jon Coppeard
e77125c8a7 Bug 875872 - Add public Heap<T> class for implementing post-barriers in the browser r=terrence 2013-05-27 12:51:25 +01:00
Nathan Froyd
d80f045a6c Bug 858131 - rewrite FloatingPoint.h to be C++-only instead of C-compatible C++; r+original-author=Waldo 2013-05-01 16:55:13 -04:00
Sean Stangl
9651e263e1 Bug 618485 - Prefer word types that exist. no_r=red 2013-04-25 17:05:20 -07:00
Landry Breuil
08e567111b Bug 618485 - Add jsuword view to jsval_layout on 64-bit big-endian. r=luke 2013-04-25 16:18:03 -07:00
Sean Stangl
4c46a9aa7c Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-16 13:47:10 -07:00
Phil Ringnalda
4f94bac4a1 Back out a5a1dd3bd8ae (bug 860029) for stupidorange 2013-04-15 12:55:38 -07:00
Sean Stangl
9596836ecf Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-15 11:33:03 -07:00
Phil Ringnalda
978110175c Back out 5bf9771e1a28 (bug 860029) for bustage
CLOSED TREE
2013-04-11 19:55:37 -07:00
Sean Stangl
999eb7bab9 Bug 860029 - Standardize Modelines in the JS Module. DONTBUILD. r=njn 2013-04-11 18:48:59 -07:00
Nicholas Nethercote
95e369b83c Bug 851421 (part 2) - Don't emit bytecode for asm.js functions unless linking fails. r=luke. 2013-03-14 18:44:03 -07:00
Jon Coppeard
22aae16f6f Bug 849273 - Investigate splitting the js and JS namespaces r=terrence 2013-03-19 10:35:41 +00:00
Jeff Walden
b8069d13ee Bug 843402 - Make all always-inlined methods just inline, and let the compiler choose how to optimize. r=http://perf.snarkfest.net/compare-talos/index.html?oldRevs=7ad145f9b092&newRev=6be7cad95d97&submit=true is a wash 2013-03-04 09:41:11 -08:00
Terrence Cole
9386b4573f Bug 850074 - Move SpiderMonkey stack rooting infrastructure to RootingAPI.h; r=billm 2013-03-12 14:05:57 -07:00
Steve Fink
d92d564b56 Bug 838014 - Rooting in ionmonkey, r=terrence 2013-02-08 13:44:35 -08:00
Steve Fink
f7229e914a Backed out changeset ced35810adb2 (bug 838014). Again. 2013-02-07 17:06:42 -08:00
Steve Fink
3dc60fd66e Bug 838014 - Rooting in ionmonkey. r=terrence. Relanding. 2013-02-07 13:32:00 -08:00
Jeff Walden
ef16637323 Bug 837773 - Change private uint32_t Values to use the int32_t representation, for simplicity. r=luke 2013-02-01 18:41:35 -08:00
Jeff Walden
bae7ebc2f9 Bug 837773 - Move JS::Value into Value.h. r=jorendorff 2013-02-01 16:15:49 -08:00
Jeff Walden
b1cf701ed3 Bug 837773 - Move JS::Anchor into js/public/Anchor.h, necessary to properly make Value.h an independent header. r=jorendorff 2013-02-01 15:31:00 -08:00
Jeff Walden
54cde2913f Bug 837773 - Move js/src/jsval.h to js/public/Value.h. r=jorendorff 2013-02-01 14:24:37 -08:00