| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/lookup.h" | 8 #include "src/lookup.h" |
| 9 #include "src/lookup-inl.h" | 9 #include "src/lookup-inl.h" |
| 10 | 10 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 Handle<JSGlobalObject>::cast(PrototypeIterator::GetCurrent(iter)); | 167 Handle<JSGlobalObject>::cast(PrototypeIterator::GetCurrent(iter)); |
| 168 } | 168 } |
| 169 | 169 |
| 170 maybe_holder_ = receiver; | 170 maybe_holder_ = receiver; |
| 171 holder_map_ = Map::TransitionToDataProperty(handle(receiver->map()), name_, | 171 holder_map_ = Map::TransitionToDataProperty(handle(receiver->map()), name_, |
| 172 value, attributes, store_mode); | 172 value, attributes, store_mode); |
| 173 JSObject::MigrateToMap(receiver, holder_map_); | 173 JSObject::MigrateToMap(receiver, holder_map_); |
| 174 | 174 |
| 175 // Reload the information. | 175 // Reload the information. |
| 176 state_ = NOT_FOUND; | 176 state_ = NOT_FOUND; |
| 177 configuration_ = CHECK_OWN_REAL; | 177 configuration_ = CHECK_PROPERTY; |
| 178 state_ = LookupInHolder(*holder_map_); | 178 state_ = LookupInHolder(*holder_map_); |
| 179 DCHECK(IsFound()); | 179 DCHECK(IsFound()); |
| 180 HasProperty(); | 180 HasProperty(); |
| 181 } | 181 } |
| 182 | 182 |
| 183 | 183 |
| 184 bool LookupIterator::HolderIsReceiverOrHiddenPrototype() const { | 184 bool LookupIterator::HolderIsReceiverOrHiddenPrototype() const { |
| 185 DCHECK(has_property_ || state_ == INTERCEPTOR || state_ == JSPROXY); | 185 DCHECK(has_property_ || state_ == INTERCEPTOR || state_ == JSPROXY); |
| 186 // Optimization that only works if configuration_ is not mutable. | 186 // Optimization that only works if configuration_ is not mutable. |
| 187 if (!check_derived()) return true; | 187 if (!check_derived()) return true; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 DCHECK_EQ(v8::internal::CONSTANT, property_details_.type()); | 299 DCHECK_EQ(v8::internal::CONSTANT, property_details_.type()); |
| 300 } | 300 } |
| 301 } | 301 } |
| 302 | 302 |
| 303 | 303 |
| 304 void LookupIterator::InternalizeName() { | 304 void LookupIterator::InternalizeName() { |
| 305 if (name_->IsUniqueName()) return; | 305 if (name_->IsUniqueName()) return; |
| 306 name_ = factory()->InternalizeString(Handle<String>::cast(name_)); | 306 name_ = factory()->InternalizeString(Handle<String>::cast(name_)); |
| 307 } | 307 } |
| 308 } } // namespace v8::internal | 308 } } // namespace v8::internal |
| OLD | NEW |