Bug 1522163 - Remove unused AddContentTelemetry function. r=arai
authorTom Schuster <evilpies@gmail.com>
Thu, 24 Jan 2019 09:52:41 +0000
changeset 515267 dfc1e458a78055ed5d73807b2c27c8b49fc7ea25
parent 515266 0aa259de1b77361ef89c82592b7485f66d4d33fb
child 515268 76c397291c5fd579ada699db17ea80cb36ab7581
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersarai
bugs1522163
milestone66.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 1522163 - Remove unused AddContentTelemetry function. r=arai Differential Revision: https://phabricator.services.mozilla.com/D17385
js/src/vm/SelfHosting.cpp
--- a/js/src/vm/SelfHosting.cpp
+++ b/js/src/vm/SelfHosting.cpp
@@ -1991,35 +1991,16 @@ static bool intrinsic_GetBuiltinIntlCons
   if (!constructor) {
     return false;
   }
 
   args.rval().setObject(*constructor);
   return true;
 }
 
-static bool intrinsic_AddContentTelemetry(JSContext* cx, unsigned argc,
-                                          Value* vp) {
-  CallArgs args = CallArgsFromVp(argc, vp);
-  MOZ_ASSERT(args.length() == 2);
-  MOZ_RELEASE_ASSERT(args[0].isInt32());
-
-  int id = args[0].toInt32();
-  MOZ_ASSERT(id < JS_TELEMETRY_END);
-  MOZ_ASSERT(id >= 0);
-
-  if (!cx->realm()->isProbablySystemCode()) {
-    MOZ_RELEASE_ASSERT(args[1].isInt32());
-    cx->runtime()->addTelemetry(id, args[1].toInt32());
-  }
-
-  args.rval().setUndefined();
-  return true;
-}
-
 static bool intrinsic_WarnDeprecatedStringMethod(JSContext* cx, unsigned argc,
                                                  Value* vp) {
   CallArgs args = CallArgsFromVp(argc, vp);
   MOZ_ASSERT(args.length() == 2);
   MOZ_RELEASE_ASSERT(args[0].isInt32());
   MOZ_ASSERT(args[1].isString());
 
   uint32_t id = uint32_t(args[0].toInt32());
@@ -2448,17 +2429,16 @@ static const JSFunctionSpec intrinsic_fu
           0),
     JS_FN("_NameForTypedArray", intrinsic_NameForTypedArray, 1, 0),
     JS_FN("DecompileArg", intrinsic_DecompileArg, 2, 0),
     JS_INLINABLE_FN("_FinishBoundFunctionInit",
                     intrinsic_FinishBoundFunctionInit, 3, 0,
                     IntrinsicFinishBoundFunctionInit),
     JS_FN("RuntimeDefaultLocale", intrinsic_RuntimeDefaultLocale, 0, 0),
     JS_FN("IsRuntimeDefaultLocale", intrinsic_IsRuntimeDefaultLocale, 1, 0),
-    JS_FN("AddContentTelemetry", intrinsic_AddContentTelemetry, 2, 0),
     JS_FN("_DefineDataProperty", intrinsic_DefineDataProperty, 4, 0),
     JS_FN("_DefineProperty", intrinsic_DefineProperty, 6, 0),
     JS_FN("CopyDataPropertiesOrGetOwnKeys",
           intrinsic_CopyDataPropertiesOrGetOwnKeys, 3, 0),
     JS_INLINABLE_FN("SameValue", js::obj_is, 2, 0, ObjectIs),
 
     JS_INLINABLE_FN("_IsConstructing", intrinsic_IsConstructing, 0, 0,
                     IntrinsicIsConstructing),