diff --git a/js/src/gc/Barrier.h b/js/src/gc/Barrier.h index eb5153a41dfe..3d018ded5c67 100644 --- a/js/src/gc/Barrier.h +++ b/js/src/gc/Barrier.h @@ -844,7 +844,7 @@ static inline void BarrieredSetPair(Zone* zone, HeapPtr& v1, T1* val1, * class! */ template -class ImmutableTenuredPtr { +class MOZ_HEAP_CLASS ImmutableTenuredPtr { T value; public: diff --git a/js/src/wasm/AsmJS.cpp b/js/src/wasm/AsmJS.cpp index 32a5aa3b5292..4eb9fb048bb3 100644 --- a/js/src/wasm/AsmJS.cpp +++ b/js/src/wasm/AsmJS.cpp @@ -6476,7 +6476,7 @@ static bool GetDataProperty(JSContext* cx, HandleValue objVal, } static bool GetDataProperty(JSContext* cx, HandleValue objVal, - ImmutablePropertyNamePtr field, + const ImmutablePropertyNamePtr& field, MutableHandleValue v) { // Help the conversion along for all the cx->names().* users. HandlePropertyName fieldHandle = field;