Index: src/factory.h |
diff --git a/src/factory.h b/src/factory.h |
index a0569f6e81b36483647a649666941f94bac1c854..0b7aaae817e89fb1074bc9898df053eef98b6d1a 100644 |
--- a/src/factory.h |
+++ b/src/factory.h |
@@ -436,6 +436,12 @@ class V8_EXPORT_PRIVATE Factory final { |
MutableMode mode = IMMUTABLE, |
PretenureFlag pretenure = NOT_TENURED); |
+ Handle<HeapNumber> NewMutableHeapNumber( |
+ PretenureFlag pretenure = NOT_TENURED) { |
+ double hole_nan = bit_cast<double>(kHoleNanInt64); |
+ return NewHeapNumber(hole_nan, MUTABLE, pretenure); |
+ } |
+ |
#define SIMD128_NEW_DECL(TYPE, Type, type, lane_count, lane_type) \ |
Handle<Type> New##Type(lane_type lanes[lane_count], \ |
PretenureFlag pretenure = NOT_TENURED); |