Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 908e701e7f8622b9f9eab4576bb83901c3a8fdbe..8a7443caec2f844a28872b3d878a1f79af225d9a 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -15810,23 +15810,6 @@ void Dictionary<Derived, Shape, Key>::Print() { |
#endif |
-template<typename Derived, typename Shape, typename Key> |
-void Dictionary<Derived, Shape, Key>::CopyValuesTo(FixedArray* elements) { |
- Isolate* isolate = this->GetIsolate(); |
- int pos = 0; |
- int capacity = this->Capacity(); |
- DisallowHeapAllocation no_gc; |
- WriteBarrierMode mode = elements->GetWriteBarrierMode(no_gc); |
- for (int i = 0; i < capacity; i++) { |
- Object* k = this->KeyAt(i); |
- if (this->IsKey(isolate, k)) { |
- elements->set(pos++, this->ValueAt(i), mode); |
- } |
- } |
- DCHECK(pos == elements->length()); |
-} |
- |
- |
MaybeHandle<Object> JSObject::GetPropertyWithInterceptor(LookupIterator* it, |
bool* done) { |
DCHECK_EQ(LookupIterator::INTERCEPTOR, it->state()); |
@@ -17980,6 +17963,20 @@ Handle<SeededNumberDictionary> SeededNumberDictionary::AtNumberPut( |
return AtPut(dictionary, key, value); |
} |
+void SeededNumberDictionary::CopyValuesTo(FixedArray* elements) { |
+ Isolate* isolate = this->GetIsolate(); |
+ int pos = 0; |
+ int capacity = this->Capacity(); |
+ DisallowHeapAllocation no_gc; |
+ WriteBarrierMode mode = elements->GetWriteBarrierMode(no_gc); |
+ for (int i = 0; i < capacity; i++) { |
+ Object* k = this->KeyAt(i); |
+ if (this->IsKey(isolate, k)) { |
+ elements->set(pos++, this->ValueAt(i), mode); |
+ } |
+ } |
+ DCHECK(pos == elements->length()); |
+} |
Handle<UnseededNumberDictionary> UnseededNumberDictionary::AtNumberPut( |
Handle<UnseededNumberDictionary> dictionary, |