Index: src/heap-inl.h |
diff --git a/src/heap-inl.h b/src/heap-inl.h |
index 8c94013149db68d2bc11d77727c9052ebd3a3fab..57374572166d8b9785f60f486338d328165b943c 100644 |
--- a/src/heap-inl.h |
+++ b/src/heap-inl.h |
@@ -269,14 +269,6 @@ MaybeObject* Heap::AllocateRaw(int size_in_bytes, |
} |
-MaybeObject* Heap::NumberFromInt32( |
- int32_t value, PretenureFlag pretenure) { |
- if (Smi::IsValid(value)) return Smi::FromInt(value); |
- // Bypass NumberFromDouble to avoid various redundant checks. |
- return AllocateHeapNumber(FastI2D(value), pretenure); |
-} |
- |
- |
MaybeObject* Heap::NumberFromUint32( |
uint32_t value, PretenureFlag pretenure) { |
if (static_cast<int32_t>(value) >= 0 && |