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 <cmath> | 7 #include <cmath> |
8 #include <iomanip> | 8 #include <iomanip> |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 5840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5851 LookupIterator it(object->GetIsolate(), object, index, | 5851 LookupIterator it(object->GetIsolate(), object, index, |
5852 LookupIterator::HIDDEN); | 5852 LookupIterator::HIDDEN); |
5853 return DeleteProperty(&it, language_mode); | 5853 return DeleteProperty(&it, language_mode); |
5854 } | 5854 } |
5855 | 5855 |
5856 | 5856 |
5857 MaybeHandle<Object> JSReceiver::DeleteProperty(Handle<JSReceiver> object, | 5857 MaybeHandle<Object> JSReceiver::DeleteProperty(Handle<JSReceiver> object, |
5858 Handle<Name> name, | 5858 Handle<Name> name, |
5859 LanguageMode language_mode) { | 5859 LanguageMode language_mode) { |
5860 LookupIterator it(object, name, LookupIterator::HIDDEN); | 5860 LookupIterator it(object, name, LookupIterator::HIDDEN); |
5861 return JSObject::DeleteProperty(&it, language_mode); | 5861 return DeleteProperty(&it, language_mode); |
5862 } | 5862 } |
5863 | 5863 |
5864 | 5864 |
5865 MaybeHandle<Object> JSReceiver::DeletePropertyOrElement( | 5865 MaybeHandle<Object> JSReceiver::DeletePropertyOrElement( |
5866 Handle<JSReceiver> object, Handle<Name> name, LanguageMode language_mode) { | 5866 Handle<JSReceiver> object, Handle<Name> name, LanguageMode language_mode) { |
5867 LookupIterator it = LookupIterator::PropertyOrElement( | 5867 LookupIterator it = LookupIterator::PropertyOrElement( |
5868 name->GetIsolate(), object, name, LookupIterator::HIDDEN); | 5868 name->GetIsolate(), object, name, LookupIterator::HIDDEN); |
5869 return JSObject::DeleteProperty(&it, language_mode); | 5869 return DeleteProperty(&it, language_mode); |
5870 } | 5870 } |
5871 | 5871 |
5872 | 5872 |
5873 bool JSObject::ReferencesObjectFromElements(FixedArray* elements, | 5873 bool JSObject::ReferencesObjectFromElements(FixedArray* elements, |
5874 ElementsKind kind, | 5874 ElementsKind kind, |
5875 Object* object) { | 5875 Object* object) { |
5876 DCHECK(IsFastObjectElementsKind(kind) || | 5876 DCHECK(IsFastObjectElementsKind(kind) || |
5877 kind == DICTIONARY_ELEMENTS); | 5877 kind == DICTIONARY_ELEMENTS); |
5878 if (IsFastObjectElementsKind(kind)) { | 5878 if (IsFastObjectElementsKind(kind)) { |
5879 int length = IsJSArray() | 5879 int length = IsJSArray() |
(...skipping 11030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16910 if (cell->value() != *new_value) { | 16910 if (cell->value() != *new_value) { |
16911 cell->set_value(*new_value); | 16911 cell->set_value(*new_value); |
16912 Isolate* isolate = cell->GetIsolate(); | 16912 Isolate* isolate = cell->GetIsolate(); |
16913 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 16913 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
16914 isolate, DependentCode::kPropertyCellChangedGroup); | 16914 isolate, DependentCode::kPropertyCellChangedGroup); |
16915 } | 16915 } |
16916 } | 16916 } |
16917 | 16917 |
16918 } // namespace internal | 16918 } // namespace internal |
16919 } // namespace v8 | 16919 } // namespace v8 |
OLD | NEW |