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 <sstream> | 5 #include <sstream> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/accessors.h" | 9 #include "src/accessors.h" |
10 #include "src/allocation-site-scopes.h" | 10 #include "src/allocation-site-scopes.h" |
(...skipping 12699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12710 index, value, language_mode); | 12710 index, value, language_mode); |
12711 } | 12711 } |
12712 return JSObject::SetElement(Handle<JSObject>::cast(object), index, value, | 12712 return JSObject::SetElement(Handle<JSObject>::cast(object), index, value, |
12713 attributes, language_mode); | 12713 attributes, language_mode); |
12714 } | 12714 } |
12715 | 12715 |
12716 | 12716 |
12717 MaybeHandle<Object> JSObject::SetOwnElement(Handle<JSObject> object, | 12717 MaybeHandle<Object> JSObject::SetOwnElement(Handle<JSObject> object, |
12718 uint32_t index, | 12718 uint32_t index, |
12719 Handle<Object> value, | 12719 Handle<Object> value, |
| 12720 PropertyAttributes attributes, |
12720 LanguageMode language_mode) { | 12721 LanguageMode language_mode) { |
12721 DCHECK(!object->HasExternalArrayElements()); | 12722 DCHECK(!object->HasExternalArrayElements()); |
12722 return JSObject::SetElement(object, index, value, NONE, language_mode, false); | 12723 return JSObject::SetElement(object, index, value, attributes, language_mode, |
| 12724 false); |
12723 } | 12725 } |
12724 | 12726 |
12725 | 12727 |
12726 MaybeHandle<Object> JSObject::SetElement(Handle<JSObject> object, | 12728 MaybeHandle<Object> JSObject::SetElement(Handle<JSObject> object, |
12727 uint32_t index, Handle<Object> value, | 12729 uint32_t index, Handle<Object> value, |
12728 PropertyAttributes attributes, | 12730 PropertyAttributes attributes, |
12729 LanguageMode language_mode, | 12731 LanguageMode language_mode, |
12730 bool check_prototype, | 12732 bool check_prototype, |
12731 SetPropertyMode set_mode) { | 12733 SetPropertyMode set_mode) { |
12732 Isolate* isolate = object->GetIsolate(); | 12734 Isolate* isolate = object->GetIsolate(); |
(...skipping 4140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16873 Handle<DependentCode> codes = | 16875 Handle<DependentCode> codes = |
16874 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), | 16876 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), |
16875 DependentCode::kPropertyCellChangedGroup, | 16877 DependentCode::kPropertyCellChangedGroup, |
16876 info->object_wrapper()); | 16878 info->object_wrapper()); |
16877 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); | 16879 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); |
16878 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( | 16880 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( |
16879 cell, info->zone()); | 16881 cell, info->zone()); |
16880 } | 16882 } |
16881 | 16883 |
16882 } } // namespace v8::internal | 16884 } } // namespace v8::internal |
OLD | NEW |