Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 46d4d37eb8c8b0ee586c970fb8c6971c09a233f9..3dd7a5104770cb5d7c424008bd9583029623c4a6 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -894,7 +894,7 @@ MUST_USE_RESULT static inline MaybeObject* DoCopyInsert( |
Object* value, |
PropertyAttributes attributes) { |
CallbacksDescriptor desc(key, value, attributes); |
- MaybeObject* obj = array->CopyInsert(&desc, REMOVE_TRANSITIONS); |
+ MaybeObject* obj = array->CopyInsert(&desc); |
return obj; |
} |
@@ -944,7 +944,7 @@ Handle<DescriptorArray> Factory::CopyAppendCallbackDescriptors( |
Handle<String> key = |
SymbolFromString(Handle<String>(String::cast(entry->name()))); |
// Check if a descriptor with this name already exists before writing. |
- if (result->LinearSearch(EXPECT_UNSORTED, *key, descriptor_count) == |
+ if (LinearSearch(*result, EXPECT_UNSORTED, *key, descriptor_count) == |
DescriptorArray::kNotFound) { |
CallbacksDescriptor desc(*key, *entry, entry->property_attributes()); |
result->Set(descriptor_count, &desc, witness); |