Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 6b1cfb3c330f1d22c31793d0b4b807d2f0b537e4..7617a08d2206aca0789595dc4c31b04171960120 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1132,19 +1132,6 @@ bool Object::IsMinusZero() const { |
} |
-MaybeHandle<Smi> Object::ToSmi(Isolate* isolate, Handle<Object> object) { |
- if (object->IsSmi()) return Handle<Smi>::cast(object); |
- if (object->IsHeapNumber()) { |
- double value = Handle<HeapNumber>::cast(object)->value(); |
- int int_value = FastD2I(value); |
- if (value == FastI2D(int_value) && Smi::IsValid(int_value)) { |
- return handle(Smi::FromInt(int_value), isolate); |
- } |
- } |
- return Handle<Smi>(); |
-} |
- |
- |
MaybeHandle<JSReceiver> Object::ToObject(Isolate* isolate, |
Handle<Object> object) { |
return ToObject( |
@@ -1838,12 +1825,6 @@ void JSObject::EnsureCanContainElements(Handle<JSObject> object, |
} |
-bool JSObject::WouldConvertToSlowElements(Handle<Object> key) { |
- uint32_t index = 0; |
- return key->ToArrayIndex(&index) && WouldConvertToSlowElements(index); |
-} |
- |
- |
void JSObject::SetMapAndElements(Handle<JSObject> object, |
Handle<Map> new_map, |
Handle<FixedArrayBase> value) { |