| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 holder_map_->instance_descriptors()->GetFieldType(descriptor_number()), | 305 holder_map_->instance_descriptors()->GetFieldType(descriptor_number()), |
| 306 isolate_); | 306 isolate_); |
| 307 } | 307 } |
| 308 | 308 |
| 309 | 309 |
| 310 Handle<PropertyCell> LookupIterator::GetPropertyCell() const { | 310 Handle<PropertyCell> LookupIterator::GetPropertyCell() const { |
| 311 Handle<JSObject> holder = GetHolder<JSObject>(); | 311 Handle<JSObject> holder = GetHolder<JSObject>(); |
| 312 Handle<GlobalObject> global = Handle<GlobalObject>::cast(holder); | 312 Handle<GlobalObject> global = Handle<GlobalObject>::cast(holder); |
| 313 Object* value = global->property_dictionary()->ValueAt(dictionary_entry()); | 313 Object* value = global->property_dictionary()->ValueAt(dictionary_entry()); |
| 314 DCHECK(value->IsPropertyCell()); | 314 DCHECK(value->IsPropertyCell()); |
| 315 return Handle<PropertyCell>(PropertyCell::cast(value)); | 315 return handle(PropertyCell::cast(value)); |
| 316 } | 316 } |
| 317 | 317 |
| 318 | 318 |
| 319 Handle<Object> LookupIterator::GetAccessors() const { | 319 Handle<Object> LookupIterator::GetAccessors() const { |
| 320 DCHECK_EQ(ACCESSOR, state_); | 320 DCHECK_EQ(ACCESSOR, state_); |
| 321 return FetchValue(); | 321 return FetchValue(); |
| 322 } | 322 } |
| 323 | 323 |
| 324 | 324 |
| 325 Handle<Object> LookupIterator::GetDataValue() const { | 325 Handle<Object> LookupIterator::GetDataValue() const { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 // Fall through. | 386 // Fall through. |
| 387 case InterceptorState::kSkipNonMasking: | 387 case InterceptorState::kSkipNonMasking: |
| 388 return true; | 388 return true; |
| 389 case InterceptorState::kProcessNonMasking: | 389 case InterceptorState::kProcessNonMasking: |
| 390 return false; | 390 return false; |
| 391 } | 391 } |
| 392 } | 392 } |
| 393 return interceptor_state_ == InterceptorState::kProcessNonMasking; | 393 return interceptor_state_ == InterceptorState::kProcessNonMasking; |
| 394 } | 394 } |
| 395 } } // namespace v8::internal | 395 } } // namespace v8::internal |
| OLD | NEW |