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