| 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 <iomanip> | 5 #include <iomanip> |
| 6 #include <sstream> | 6 #include <sstream> |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
| (...skipping 4109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4120 DCHECK(object->map()->is_extensible() || | 4120 DCHECK(object->map()->is_extensible() || |
| 4121 it.isolate()->IsInternallyUsedPropertyName(name)); | 4121 it.isolate()->IsInternallyUsedPropertyName(name)); |
| 4122 #endif | 4122 #endif |
| 4123 AddDataProperty(&it, value, attributes, STRICT, | 4123 AddDataProperty(&it, value, attributes, STRICT, |
| 4124 CERTAINLY_NOT_STORE_FROM_KEYED).Check(); | 4124 CERTAINLY_NOT_STORE_FROM_KEYED).Check(); |
| 4125 } | 4125 } |
| 4126 | 4126 |
| 4127 | 4127 |
| 4128 // static | 4128 // static |
| 4129 void ExecutableAccessorInfo::ClearSetter(Handle<ExecutableAccessorInfo> info) { | 4129 void ExecutableAccessorInfo::ClearSetter(Handle<ExecutableAccessorInfo> info) { |
| 4130 info->set_setter(*v8::FromCData(info->GetIsolate(), nullptr)); | 4130 Handle<Object> object = v8::FromCData(info->GetIsolate(), nullptr); |
| 4131 info->set_setter(*object); |
| 4131 } | 4132 } |
| 4132 | 4133 |
| 4133 | 4134 |
| 4134 MaybeHandle<Object> JSObject::ReconfigureAsDataProperty( | 4135 MaybeHandle<Object> JSObject::ReconfigureAsDataProperty( |
| 4135 LookupIterator* it, Handle<Object> value, PropertyAttributes attributes) { | 4136 LookupIterator* it, Handle<Object> value, PropertyAttributes attributes) { |
| 4136 Handle<JSObject> object = Handle<JSObject>::cast(it->GetReceiver()); | 4137 Handle<JSObject> object = Handle<JSObject>::cast(it->GetReceiver()); |
| 4137 bool is_observed = object->map()->is_observed() && | 4138 bool is_observed = object->map()->is_observed() && |
| 4138 (it->IsElement() || | 4139 (it->IsElement() || |
| 4139 !it->isolate()->IsInternallyUsedPropertyName(it->name())); | 4140 !it->isolate()->IsInternallyUsedPropertyName(it->name())); |
| 4140 | 4141 |
| (...skipping 12584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16725 Handle<Object> new_value) { | 16726 Handle<Object> new_value) { |
| 16726 if (cell->value() != *new_value) { | 16727 if (cell->value() != *new_value) { |
| 16727 cell->set_value(*new_value); | 16728 cell->set_value(*new_value); |
| 16728 Isolate* isolate = cell->GetIsolate(); | 16729 Isolate* isolate = cell->GetIsolate(); |
| 16729 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 16730 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
| 16730 isolate, DependentCode::kPropertyCellChangedGroup); | 16731 isolate, DependentCode::kPropertyCellChangedGroup); |
| 16731 } | 16732 } |
| 16732 } | 16733 } |
| 16733 } // namespace internal | 16734 } // namespace internal |
| 16734 } // namespace v8 | 16735 } // namespace v8 |
| OLD | NEW |