Reviewers: Toon Verwaest,
Description:
Remove deprecated JSObject::GetLocalPropertyType method.
[email protected]
Please review this at https://codereview.chromium.org/25453003/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+0, -28 lines):
M src/objects-inl.h
M src/objects.h
M src/objects.cc
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index
785257c6badce2cb13c36283e641c37071e5600c..2d0068c47d7f35608ff209a744f71a390343794c
100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -1577,13 +1577,6 @@ Handle<Map>
JSObject::FindTransitionToField(Handle<Map> map, Handle<Name> key) {
}
-int JSObject::LastAddedFieldIndex() {
- Map* map = this->map();
- int last_added = map->LastAdded();
- return map->instance_descriptors()->GetFieldIndex(last_added);
-}
-
-
ACCESSORS(Oddball, to_string, String, kToStringOffset)
ACCESSORS(Oddball, to_number, Object, kToNumberOffset)
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index
76411faf07afb39248a2b5525be08c47f61bc7a9..001214c30cd92f255f4574670438c177cccdba3e
100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -11613,22 +11613,6 @@ MaybeObject*
JSObject::EnsureCanContainElements(Arguments* args,
}
-PropertyType JSObject::GetLocalPropertyType(Name* name) {
- uint32_t index = 0;
- if (name->AsArrayIndex(&index)) {
- return GetLocalElementType(index);
- }
- LookupResult lookup(GetIsolate());
- LocalLookup(name, &lookup, true);
- return lookup.type();
-}
-
-
-PropertyType JSObject::GetLocalElementType(uint32_t index) {
- return GetElementsAccessor()->GetType(this, this, index);
-}
-
-
AccessorPair* JSObject::GetLocalPropertyAccessorPair(Name* name) {
uint32_t index = 0;
if (name->AsArrayIndex(&index)) {
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index
7e3814a6c76b4aa5bd9c676c35f3f7decc938fc2..cd651060dc83bab332ec64bc5dc2da299f09addd
100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -2156,8 +2156,6 @@ class JSObject: public JSReceiver {
static inline Handle<Map> FindTransitionToField(Handle<Map> map,
Handle<Name> key);
- inline int LastAddedFieldIndex();
-
// Extend the receiver with a single fast property appeared first in the
// passed map. This also extends the property backing store if necessary.
static void AllocateStorageForMap(Handle<JSObject> object, Handle<Map>
map);
@@ -2334,9 +2332,6 @@ class JSObject: public JSReceiver {
return old_capacity + (old_capacity >> 1) + 16;
}
- PropertyType GetLocalPropertyType(Name* name);
- PropertyType GetLocalElementType(uint32_t index);
-
// These methods do not perform access checks!
AccessorPair* GetLocalPropertyAccessorPair(Name* name);
AccessorPair* GetLocalElementAccessorPair(uint32_t index);
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.