Bug 1431957 - Trim builtin/Intl.cpp's #include set down to size, now that it contains *only* stuff related to Intl, its non-constructor properties, and initialization of Intl. r=anba
authorJeff Walden <jwalden@mit.edu>
Fri, 19 Jan 2018 21:49:05 -0800
changeset 401034 147d42b58a5eafdab94b0dc704262b8fadefeca4
parent 401033 8e7562a2e2afc5acc3ca78ce3259ce213937225d
child 401035 4f315f5bdd5a6100fe58282e5ddb733e15f16ab6
push id99283
push userjwalden@mit.edu
push dateSat, 27 Jan 2018 07:54:29 +0000
treeherdermozilla-inbound@c50cbf6e8176 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersanba
bugs1431957
milestone60.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1431957 - Trim builtin/Intl.cpp's #include set down to size, now that it contains *only* stuff related to Intl, its non-constructor properties, and initialization of Intl. r=anba
js/src/builtin/Intl.cpp
--- a/js/src/builtin/Intl.cpp
+++ b/js/src/builtin/Intl.cpp
@@ -1,61 +1,39 @@
 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  * vim: set ts=8 sts=4 et sw=4 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/. */
 
-/*
- * The Intl module specified by standard ECMA-402,
- * ECMAScript Internationalization API Specification.
- */
+/* Implementation of the Intl object and its non-constructor properties. */
 
 #include "builtin/Intl.h"
 
-#include "mozilla/Casting.h"
-#include "mozilla/FloatingPoint.h"
-#include "mozilla/HashFunctions.h"
-#include "mozilla/PodOperations.h"
+#include "mozilla/Assertions.h"
+#include "mozilla/Likely.h"
 #include "mozilla/Range.h"
-#include "mozilla/TypeTraits.h"
-
-#include <string.h>
 
 #include "jsapi.h"
-#include "jsatom.h"
 #include "jscntxt.h"
-#include "jsfriendapi.h"
 #include "jsobj.h"
-#include "jsstr.h"
-#include "jsutil.h"
 
 #include "builtin/intl/Collator.h"
 #include "builtin/intl/CommonFunctions.h"
 #include "builtin/intl/DateTimeFormat.h"
 #include "builtin/intl/ICUStubs.h"
 #include "builtin/intl/NumberFormat.h"
 #include "builtin/intl/PluralRules.h"
 #include "builtin/intl/ScopedICUObject.h"
-#include "ds/Sort.h"
-#include "gc/FreeOp.h"
-#include "js/Date.h"
-#include "vm/DateTime.h"
+#include "js/Class.h"
 #include "vm/GlobalObject.h"
-#include "vm/Interpreter.h"
-#include "vm/SelfHosting.h"
-#include "vm/Stack.h"
 #include "vm/String.h"
-#include "vm/StringBuffer.h"
-#include "vm/Unicode.h"
 
 #include "jsobjinlines.h"
 
-#include "vm/NativeObject-inl.h"
-
 using namespace js;
 
 using mozilla::Range;
 using mozilla::RangedPtr;
 
 using js::intl::CallICU;
 using js::intl::DateTimeFormatOptions;
 using js::intl::GetAvailableLocales;