Bug 1290337 - Part 10: Replace WrapperValue parameter tor const WrapperValue&. r=terrence
authorTooru Fujisawa <arai_a@mac.com>
Sun, 11 Sep 2016 18:15:23 +0900
changeset 316055 c05dd2167ba573dee54a0626d9539c973103b7ef
parent 316054 7e2d5ee669e9c0fa4e14d74e052d526b286c0395
child 316056 9550e82a1bc0fdc7274998a7a97a591268ad32bd
push id30759
push userphilringnalda@gmail.com
push dateSat, 01 Oct 2016 06:25:09 +0000
treeherdermozilla-central@fcc62bbf09ee [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersterrence
bugs1290337
milestone52.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 1290337 - Part 10: Replace WrapperValue parameter tor const WrapperValue&. r=terrence
js/src/jscompartment.h
--- a/js/src/jscompartment.h
+++ b/js/src/jscompartment.h
@@ -1036,17 +1036,17 @@ class MOZ_RAII AutoWrapperVector : publi
         MOZ_GUARD_OBJECT_NOTIFIER_INIT;
     }
 
     MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER
 };
 
 class MOZ_RAII AutoWrapperRooter : private JS::AutoGCRooter {
   public:
-    AutoWrapperRooter(JSContext* cx, WrapperValue v
+    AutoWrapperRooter(JSContext* cx, const WrapperValue& v
                       MOZ_GUARD_OBJECT_NOTIFIER_PARAM)
       : JS::AutoGCRooter(cx, WRAPPER), value(v)
     {
         MOZ_GUARD_OBJECT_NOTIFIER_INIT;
     }
 
     operator JSObject*() const {
         return value.get().toObjectOrNull();