| 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 14253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14264 TYPED_ARRAYS(INSTANCE_TYPE_TO_ELEMENT_SIZE) | 14264 TYPED_ARRAYS(INSTANCE_TYPE_TO_ELEMENT_SIZE) |
| 14265 #undef INSTANCE_TYPE_TO_ELEMENT_SIZE | 14265 #undef INSTANCE_TYPE_TO_ELEMENT_SIZE |
| 14266 | 14266 |
| 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); } | |
| 14275 | |
| 14276 | |
| 14277 void FixedDoubleArray::SetValue(uint32_t index, Object* value) { | |
| 14278 set(index, value->Number()); | |
| 14279 } | |
| 14280 void GlobalObject::InvalidatePropertyCell(Handle<GlobalObject> global, | 14274 void GlobalObject::InvalidatePropertyCell(Handle<GlobalObject> global, |
| 14281 Handle<Name> name) { | 14275 Handle<Name> name) { |
| 14282 DCHECK(!global->HasFastProperties()); | 14276 DCHECK(!global->HasFastProperties()); |
| 14283 auto dictionary = handle(global->global_dictionary()); | 14277 auto dictionary = handle(global->global_dictionary()); |
| 14284 int entry = dictionary->FindEntry(name); | 14278 int entry = dictionary->FindEntry(name); |
| 14285 if (entry == GlobalDictionary::kNotFound) return; | 14279 if (entry == GlobalDictionary::kNotFound) return; |
| 14286 PropertyCell::InvalidateEntry(dictionary, entry); | 14280 PropertyCell::InvalidateEntry(dictionary, entry); |
| 14287 } | 14281 } |
| 14288 | 14282 |
| 14289 | 14283 |
| (...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16164 if (cell->value() != *new_value) { | 16158 if (cell->value() != *new_value) { |
| 16165 cell->set_value(*new_value); | 16159 cell->set_value(*new_value); |
| 16166 Isolate* isolate = cell->GetIsolate(); | 16160 Isolate* isolate = cell->GetIsolate(); |
| 16167 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 16161 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
| 16168 isolate, DependentCode::kPropertyCellChangedGroup); | 16162 isolate, DependentCode::kPropertyCellChangedGroup); |
| 16169 } | 16163 } |
| 16170 } | 16164 } |
| 16171 | 16165 |
| 16172 } // namespace internal | 16166 } // namespace internal |
| 16173 } // namespace v8 | 16167 } // namespace v8 |
| OLD | NEW |