Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 8777edcaa9fc95cc589886976bae9d756079cad9..de666bd2d32c4946845f88ee57d614757cd859ab 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2371,9 +2371,7 @@ void Map::LookupTransition(JSObject* holder, |
Object** DescriptorArray::GetKeySlot(int descriptor_number) { |
ASSERT(descriptor_number < number_of_descriptors()); |
- return HeapObject::RawField( |
- reinterpret_cast<HeapObject*>(this), |
- OffsetOfElementAt(ToKeyIndex(descriptor_number))); |
+ return RawFieldOfElementAt(ToKeyIndex(descriptor_number)); |
titzer
2013/12/17 08:31:43
Nice simplification.
|
} |
@@ -2428,9 +2426,7 @@ void DescriptorArray::InitializeRepresentations(Representation representation) { |
Object** DescriptorArray::GetValueSlot(int descriptor_number) { |
ASSERT(descriptor_number < number_of_descriptors()); |
- return HeapObject::RawField( |
- reinterpret_cast<HeapObject*>(this), |
- OffsetOfElementAt(ToValueIndex(descriptor_number))); |
+ return RawFieldOfElementAt(ToValueIndex(descriptor_number)); |
} |
@@ -3231,7 +3227,7 @@ void JSFunctionResultCache::MakeZeroSize() { |
void JSFunctionResultCache::Clear() { |
int cache_size = size(); |
- Object** entries_start = RawField(this, OffsetOfElementAt(kEntriesIndex)); |
+ Object** entries_start = RawFieldOfElementAt(kEntriesIndex); |
MemsetPointer(entries_start, |
GetHeap()->the_hole_value(), |
cache_size - kEntriesIndex); |
@@ -3837,8 +3833,7 @@ Object* DependentCode::object_at(int i) { |
Object** DependentCode::slot_at(int i) { |
- return HeapObject::RawField( |
- this, FixedArray::OffsetOfElementAt(kCodesStartIndex + i)); |
+ return RawFieldOfElementAt(kCodesStartIndex + i); |
} |