Bug 791607 - Remove unnecessary |#include <new>| directives. r=dmandelin.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 20 Sep 2012 20:42:43 -0700
changeset 107816 f33e3b2c9cac0d69a699ab2d73725f796f2e89ee
parent 107815 65cf1362d58c5ba29c793858da5545f8c3ef2e71
child 107817 88a1e8e2df95185d41e414ff6b95b61e07105cc0
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersdmandelin
bugs791607
milestone18.0a1
Bug 791607 - Remove unnecessary |#include <new>| directives. r=dmandelin.
js/src/ds/LifoAlloc.cpp
js/src/frontend/BytecodeEmitter.cpp
js/src/jscntxt.cpp
js/src/jsobjinlines.h
js/src/jspropertytree.cpp
js/src/jsscope.cpp
js/src/jsscope.h
js/src/jsscopeinlines.h
js/src/perf/pm_linux.cpp
--- a/js/src/ds/LifoAlloc.cpp
+++ b/js/src/ds/LifoAlloc.cpp
@@ -2,18 +2,16 @@
  * vim: set ts=8 sw=4 et tw=99 ft=cpp:
  *
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "LifoAlloc.h"
 
-#include <new>
-
 using namespace js;
 
 namespace js {
 namespace detail {
 
 BumpChunk *
 BumpChunk::new_(size_t chunkSize)
 {
--- a/js/src/frontend/BytecodeEmitter.cpp
+++ b/js/src/frontend/BytecodeEmitter.cpp
@@ -9,17 +9,16 @@
  * JS bytecode generation.
  */
 
 #include "mozilla/FloatingPoint.h"
 
 #ifdef HAVE_MEMORY_H
 #include <memory.h>
 #endif
-#include <new>
 #include <string.h>
 
 #include "jstypes.h"
 #include "jsutil.h"
 #include "jsprf.h"
 #include "jsapi.h"
 #include "jsatom.h"
 #include "jscntxt.h"
--- a/js/src/jscntxt.cpp
+++ b/js/src/jscntxt.cpp
@@ -6,17 +6,16 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 /*
  * JS execution context.
  */
 
 #include <limits.h> /* make sure that <features.h> is included and we can use
                        __GLIBC__ to detect glibc presence */
-#include <new>
 #include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
 #ifdef ANDROID
 # include <android/log.h>
 # include <fstream>
 # include <string>
 #endif  // ANDROID
--- a/js/src/jsobjinlines.h
+++ b/js/src/jsobjinlines.h
@@ -3,18 +3,16 @@
  *
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef jsobjinlines_h___
 #define jsobjinlines_h___
 
-#include <new>
-
 #include "jsapi.h"
 #include "jsarray.h"
 #include "jsbool.h"
 #include "jscntxt.h"
 #include "jsfun.h"
 #include "jsiter.h"
 #include "jslock.h"
 #include "jsnum.h"
--- a/js/src/jspropertytree.cpp
+++ b/js/src/jspropertytree.cpp
@@ -1,16 +1,14 @@
 /* -*- Mode: C++; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- */
 /* vim: set ts=4 sw=4 et tw=99: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-#include <new>
-
 #include "jstypes.h"
 #include "jsprf.h"
 #include "jsapi.h"
 #include "jscntxt.h"
 #include "jsgc.h"
 #include "jspropertytree.h"
 #include "jsscope.h"
 
--- a/js/src/jsscope.cpp
+++ b/js/src/jsscope.cpp
@@ -3,17 +3,16 @@
  *
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 /*
  * JS symbol tables.
  */
-#include <new>
 #include <stdlib.h>
 #include <string.h>
 #include "jstypes.h"
 #include "jsclist.h"
 #include "jsutil.h"
 #include "jsapi.h"
 #include "jsatom.h"
 #include "jscntxt.h"
--- a/js/src/jsscope.h
+++ b/js/src/jsscope.h
@@ -5,17 +5,16 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef jsscope_h___
 #define jsscope_h___
 /*
  * JS symbol tables.
  */
-#include <new>
 #ifdef DEBUG
 #include <stdio.h>
 #endif
 
 #include "jsobj.h"
 #include "jspropertytree.h"
 #include "jstypes.h"
 
--- a/js/src/jsscopeinlines.h
+++ b/js/src/jsscopeinlines.h
@@ -2,18 +2,16 @@
  *
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef jsscopeinlines_h___
 #define jsscopeinlines_h___
 
-#include <new>
-
 #include "jsarray.h"
 #include "jsbool.h"
 #include "jscntxt.h"
 #include "jsdbgapi.h"
 #include "jsfun.h"
 #include "jsgc.h"
 #include "jsobj.h"
 #include "jsscope.h"
--- a/js/src/perf/pm_linux.cpp
+++ b/js/src/perf/pm_linux.cpp
@@ -9,17 +9,16 @@
 using namespace js;
 
 /* This variant of nsIPerfMeasurement uses the perf_event interface
  * added in Linux 2.6.31.  We key compilation of this file off the
  * existence of <linux/perf_event.h>.
  */
 
 #include <linux/perf_event.h>
-#include <new>
 #include <sys/syscall.h>
 #include <sys/ioctl.h>
 #include <errno.h>
 #include <unistd.h>
 #include <string.h>
 
 // As of July 2010, this system call has not been added to the
 // C library, so we have to provide our own wrapper function.