Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index ae0ec7a6fb3347ee5d9e3ecaaed4722324d7394a..e992b66d86a176e2be4b862db7f986f80018687e 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -180,7 +180,6 @@ class PropertyDetails BASE_EMBEDDED { |
PropertyDetails(PropertyAttributes attributes, |
PropertyType type, |
int index = 0) { |
- ASSERT(type != ELEMENTS_TRANSITION); |
ASSERT(TypeField::is_valid(type)); |
ASSERT(AttributesField::is_valid(attributes)); |
ASSERT(StorageField::is_valid(index)); |
@@ -194,23 +193,6 @@ class PropertyDetails BASE_EMBEDDED { |
ASSERT(index == this->index()); |
} |
- PropertyDetails(PropertyAttributes attributes, |
- PropertyType type, |
- ElementsKind elements_kind) { |
- ASSERT(type == ELEMENTS_TRANSITION); |
- ASSERT(TypeField::is_valid(type)); |
- ASSERT(AttributesField::is_valid(attributes)); |
- ASSERT(StorageField::is_valid(static_cast<int>(elements_kind))); |
- |
- value_ = TypeField::encode(type) |
- | AttributesField::encode(attributes) |
- | StorageField::encode(static_cast<int>(elements_kind)); |
- |
- ASSERT(type == this->type()); |
- ASSERT(attributes == this->attributes()); |
- ASSERT(elements_kind == this->elements_kind()); |
- } |
- |
// Conversion for storing details as Object*. |
explicit inline PropertyDetails(Smi* smi); |
inline Smi* AsSmi(); |
@@ -232,11 +214,6 @@ class PropertyDetails BASE_EMBEDDED { |
int index() { return StorageField::decode(value_); } |
- ElementsKind elements_kind() { |
- ASSERT(type() == ELEMENTS_TRANSITION); |
- return static_cast<ElementsKind>(StorageField::decode(value_)); |
- } |
- |
inline PropertyDetails AsDeleted(); |
static bool IsValidIndex(int index) { |