summaryrefslogtreecommitdiff
path: root/chromium/v8/src/runtime/runtime-classes.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/src/runtime/runtime-classes.cc')
-rw-r--r--chromium/v8/src/runtime/runtime-classes.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chromium/v8/src/runtime/runtime-classes.cc b/chromium/v8/src/runtime/runtime-classes.cc
index 120f2441a79..8fb37cec32a 100644
--- a/chromium/v8/src/runtime/runtime-classes.cc
+++ b/chromium/v8/src/runtime/runtime-classes.cc
@@ -188,7 +188,6 @@ Object GetMethodWithSharedName(
template <typename Dictionary>
Handle<Dictionary> ShallowCopyDictionaryTemplate(
Isolate* isolate, Handle<Dictionary> dictionary_template) {
- Handle<Map> dictionary_map(dictionary_template->map(), isolate);
Handle<Dictionary> dictionary =
Dictionary::ShallowCopy(isolate, dictionary_template);
// Clone all AccessorPairs in the dictionary.
@@ -375,7 +374,7 @@ bool AddDescriptorsByTemplate(
}
// Atomically commit the changes.
- receiver->synchronized_set_map(*map);
+ receiver->set_map(*map, kReleaseStore);
if (elements_dictionary->NumberOfElements() > 0) {
receiver->set_elements(*elements_dictionary);
}
@@ -469,7 +468,7 @@ bool AddDescriptorsByTemplate(
}
// Atomically commit the changes.
- receiver->synchronized_set_map(*map);
+ receiver->set_map(*map, kReleaseStore);
receiver->set_raw_properties_or_hash(*properties_dictionary);
if (elements_dictionary->NumberOfElements() > 0) {
receiver->set_elements(*elements_dictionary);
@@ -498,7 +497,7 @@ bool InitClassPrototype(Isolate* isolate,
map = Map::CopyDropDescriptors(isolate, map);
map->set_is_prototype_map(true);
Map::SetPrototype(isolate, map, prototype_parent);
- constructor->set_prototype_or_initial_map(*prototype);
+ constructor->set_prototype_or_initial_map(*prototype, kReleaseStore);
map->SetConstructor(*constructor);
Handle<FixedArray> computed_properties(
class_boilerplate->instance_computed_properties(), isolate);