Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: src/objects-inl.h

Issue 1238463002: Minor cleanup IC keyed access handling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | test/cctest/test-strings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/objects.h ('k') | test/cctest/test-strings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698