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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 } | 65 } |
66 return Handle<JSObject>::cast(receiver_); | 66 return Handle<JSObject>::cast(receiver_); |
67 } | 67 } |
68 | 68 |
69 | 69 |
70 bool LookupIterator::IsBootstrapping() const { | 70 bool LookupIterator::IsBootstrapping() const { |
71 return isolate_->bootstrapper()->IsActive(); | 71 return isolate_->bootstrapper()->IsActive(); |
72 } | 72 } |
73 | 73 |
74 | 74 |
75 bool LookupIterator::HasAccess(v8::AccessType access_type) const { | 75 bool LookupIterator::HasAccess() const { |
76 DCHECK_EQ(ACCESS_CHECK, state_); | 76 DCHECK_EQ(ACCESS_CHECK, state_); |
77 return isolate_->MayNamedAccess(GetHolder<JSObject>(), name_, access_type); | 77 return isolate_->MayAccess(GetHolder<JSObject>()); |
78 } | 78 } |
79 | 79 |
80 | 80 |
81 void LookupIterator::ReloadPropertyInformation() { | 81 void LookupIterator::ReloadPropertyInformation() { |
82 state_ = BEFORE_PROPERTY; | 82 state_ = BEFORE_PROPERTY; |
83 state_ = LookupInHolder(*holder_map_, *holder_); | 83 state_ = LookupInHolder(*holder_map_, *holder_); |
84 DCHECK(IsFound() || holder_map_->is_dictionary_map()); | 84 DCHECK(IsFound() || holder_map_->is_dictionary_map()); |
85 } | 85 } |
86 | 86 |
87 | 87 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 } | 353 } |
354 return false; | 354 return false; |
355 } | 355 } |
356 | 356 |
357 | 357 |
358 void LookupIterator::InternalizeName() { | 358 void LookupIterator::InternalizeName() { |
359 if (name_->IsUniqueName()) return; | 359 if (name_->IsUniqueName()) return; |
360 name_ = factory()->InternalizeString(Handle<String>::cast(name_)); | 360 name_ = factory()->InternalizeString(Handle<String>::cast(name_)); |
361 } | 361 } |
362 } } // namespace v8::internal | 362 } } // namespace v8::internal |
OLD | NEW |