| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/objects.h" | 5 #include "src/objects.h" |
| 6 | 6 |
| 7 #include <iomanip> | 7 #include <iomanip> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
| (...skipping 14256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14267 default: | 14267 default: |
| 14268 UNREACHABLE(); | 14268 UNREACHABLE(); |
| 14269 return 0; | 14269 return 0; |
| 14270 } | 14270 } |
| 14271 } | 14271 } |
| 14272 | 14272 |
| 14273 | 14273 |
| 14274 void FixedArray::SetValue(uint32_t index, Object* value) { set(index, value); } | 14274 void FixedArray::SetValue(uint32_t index, Object* value) { set(index, value); } |
| 14275 | 14275 |
| 14276 | 14276 |
| 14277 void FixedArray::SetValue(uint32_t index, Object* value, |
| 14278 WriteBarrierMode mode) { |
| 14279 set(index, value, mode); |
| 14280 } |
| 14281 |
| 14282 |
| 14277 void FixedDoubleArray::SetValue(uint32_t index, Object* value) { | 14283 void FixedDoubleArray::SetValue(uint32_t index, Object* value) { |
| 14278 set(index, value->Number()); | 14284 set(index, value->Number()); |
| 14279 } | 14285 } |
| 14286 |
| 14287 |
| 14280 void GlobalObject::InvalidatePropertyCell(Handle<GlobalObject> global, | 14288 void GlobalObject::InvalidatePropertyCell(Handle<GlobalObject> global, |
| 14281 Handle<Name> name) { | 14289 Handle<Name> name) { |
| 14282 DCHECK(!global->HasFastProperties()); | 14290 DCHECK(!global->HasFastProperties()); |
| 14283 auto dictionary = handle(global->global_dictionary()); | 14291 auto dictionary = handle(global->global_dictionary()); |
| 14284 int entry = dictionary->FindEntry(name); | 14292 int entry = dictionary->FindEntry(name); |
| 14285 if (entry == GlobalDictionary::kNotFound) return; | 14293 if (entry == GlobalDictionary::kNotFound) return; |
| 14286 PropertyCell::InvalidateEntry(dictionary, entry); | 14294 PropertyCell::InvalidateEntry(dictionary, entry); |
| 14287 } | 14295 } |
| 14288 | 14296 |
| 14289 | 14297 |
| (...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16164 if (cell->value() != *new_value) { | 16172 if (cell->value() != *new_value) { |
| 16165 cell->set_value(*new_value); | 16173 cell->set_value(*new_value); |
| 16166 Isolate* isolate = cell->GetIsolate(); | 16174 Isolate* isolate = cell->GetIsolate(); |
| 16167 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 16175 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
| 16168 isolate, DependentCode::kPropertyCellChangedGroup); | 16176 isolate, DependentCode::kPropertyCellChangedGroup); |
| 16169 } | 16177 } |
| 16170 } | 16178 } |
| 16171 | 16179 |
| 16172 } // namespace internal | 16180 } // namespace internal |
| 16173 } // namespace v8 | 16181 } // namespace v8 |
| OLD | NEW |