Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/lookup.h" | 5 #include "src/lookup.h" |
| 6 | 6 |
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
| 9 #include "src/elements.h" | 9 #include "src/elements.h" |
| 10 #include "src/field-type.h" | 10 #include "src/field-type.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 187 isolate_->CountUsage( | 187 isolate_->CountUsage( |
| 188 v8::Isolate::UseCounterFeature::kArraySpeciesModified); | 188 v8::Isolate::UseCounterFeature::kArraySpeciesModified); |
| 189 isolate_->InvalidateArraySpeciesProtector(); | 189 isolate_->InvalidateArraySpeciesProtector(); |
| 190 } | 190 } |
| 191 } else if (*name_ == heap()->is_concat_spreadable_symbol()) { | 191 } else if (*name_ == heap()->is_concat_spreadable_symbol()) { |
| 192 if (!isolate_->IsIsConcatSpreadableLookupChainIntact()) return; | 192 if (!isolate_->IsIsConcatSpreadableLookupChainIntact()) return; |
| 193 isolate_->InvalidateIsConcatSpreadableProtector(); | 193 isolate_->InvalidateIsConcatSpreadableProtector(); |
| 194 } else if (*name_ == heap()->has_instance_symbol()) { | 194 } else if (*name_ == heap()->has_instance_symbol()) { |
| 195 if (!isolate_->IsHasInstanceLookupChainIntact()) return; | 195 if (!isolate_->IsHasInstanceLookupChainIntact()) return; |
| 196 isolate_->InvalidateHasInstanceProtector(); | 196 isolate_->InvalidateHasInstanceProtector(); |
| 197 } else if (*name_ == heap()->iterator_symbol()) { | |
| 198 if (!isolate_->IsArrayIteratorLookupChainIntact()) return; | |
| 199 if (holder_->IsJSArray()) { | |
| 200 isolate_->InvalidateArrayIteratorProtector(); | |
| 201 } | |
| 202 } else if (*name_ == heap()->next_string()) { | |
|
Benedikt Meurer
2016/11/10 12:32:59
As discussed offline, please check against the ini
| |
| 203 if (!isolate_->IsArrayIteratorLookupChainIntact()) return; | |
| 204 // Also invalidate the array iterator protector cell when the iterator | |
| 205 // itself is changed. | |
| 206 if (*holder_ == *isolate_->initial_array_iterator_prototype()) { | |
| 207 isolate_->InvalidateArrayIteratorProtector(); | |
| 208 } | |
| 197 } | 209 } |
| 198 } | 210 } |
| 199 | 211 |
| 200 void LookupIterator::PrepareForDataProperty(Handle<Object> value) { | 212 void LookupIterator::PrepareForDataProperty(Handle<Object> value) { |
| 201 DCHECK(state_ == DATA || state_ == ACCESSOR); | 213 DCHECK(state_ == DATA || state_ == ACCESSOR); |
| 202 DCHECK(HolderIsReceiverOrHiddenPrototype()); | 214 DCHECK(HolderIsReceiverOrHiddenPrototype()); |
| 203 | 215 |
| 204 Handle<JSObject> holder = GetHolder<JSObject>(); | 216 Handle<JSObject> holder = GetHolder<JSObject>(); |
| 205 | 217 |
| 206 if (IsElement()) { | 218 if (IsElement()) { |
| (...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 837 : access_check_info->named_interceptor(); | 849 : access_check_info->named_interceptor(); |
| 838 if (interceptor) { | 850 if (interceptor) { |
| 839 return handle(InterceptorInfo::cast(interceptor), isolate_); | 851 return handle(InterceptorInfo::cast(interceptor), isolate_); |
| 840 } | 852 } |
| 841 } | 853 } |
| 842 return Handle<InterceptorInfo>(); | 854 return Handle<InterceptorInfo>(); |
| 843 } | 855 } |
| 844 | 856 |
| 845 } // namespace internal | 857 } // namespace internal |
| 846 } // namespace v8 | 858 } // namespace v8 |
| OLD | NEW |