| 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/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
| 9 #include "src/lookup.h" | 9 #include "src/lookup.h" |
| 10 #include "src/lookup-inl.h" | 10 #include "src/lookup-inl.h" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 void LookupIterator::LoadPropertyKind() { | 112 void LookupIterator::LoadPropertyKind() { |
| 113 switch (property_details_.type()) { | 113 switch (property_details_.type()) { |
| 114 case v8::internal::FIELD: | 114 case v8::internal::FIELD: |
| 115 case v8::internal::NORMAL: | 115 case v8::internal::NORMAL: |
| 116 case v8::internal::CONSTANT: | 116 case v8::internal::CONSTANT: |
| 117 property_kind_ = DATA; | 117 property_kind_ = DATA; |
| 118 break; | 118 break; |
| 119 case v8::internal::CALLBACKS: | 119 case v8::internal::CALLBACKS: |
| 120 property_kind_ = ACCESSOR; | 120 property_kind_ = ACCESSOR; |
| 121 break; | 121 break; |
| 122 case v8::internal::HANDLER: | |
| 123 case v8::internal::INTERCEPTOR: | |
| 124 UNREACHABLE(); | |
| 125 } | 122 } |
| 126 } | 123 } |
| 127 | 124 |
| 128 | 125 |
| 129 void LookupIterator::ReloadPropertyInformation() { | 126 void LookupIterator::ReloadPropertyInformation() { |
| 130 state_ = BEFORE_PROPERTY; | 127 state_ = BEFORE_PROPERTY; |
| 131 state_ = LookupInHolder(*holder_map_); | 128 state_ = LookupInHolder(*holder_map_); |
| 132 DCHECK(IsFound()); | 129 DCHECK(IsFound()); |
| 133 HasProperty(); | 130 HasProperty(); |
| 134 } | 131 } |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 DCHECK_EQ(v8::internal::CONSTANT, property_details_.type()); | 364 DCHECK_EQ(v8::internal::CONSTANT, property_details_.type()); |
| 368 } | 365 } |
| 369 } | 366 } |
| 370 | 367 |
| 371 | 368 |
| 372 void LookupIterator::InternalizeName() { | 369 void LookupIterator::InternalizeName() { |
| 373 if (name_->IsUniqueName()) return; | 370 if (name_->IsUniqueName()) return; |
| 374 name_ = factory()->InternalizeString(Handle<String>::cast(name_)); | 371 name_ = factory()->InternalizeString(Handle<String>::cast(name_)); |
| 375 } | 372 } |
| 376 } } // namespace v8::internal | 373 } } // namespace v8::internal |
| OLD | NEW |