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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 state_ = LookupInHolder<is_element>(map, holder); | 101 state_ = LookupInHolder<is_element>(map, holder); |
102 } while (!IsFound()); | 102 } while (!IsFound()); |
103 | 103 |
104 holder_ = handle(holder, isolate_); | 104 holder_ = handle(holder, isolate_); |
105 } | 105 } |
106 | 106 |
107 template <bool is_element> | 107 template <bool is_element> |
108 void LookupIterator::RestartInternal(InterceptorState interceptor_state) { | 108 void LookupIterator::RestartInternal(InterceptorState interceptor_state) { |
109 interceptor_state_ = interceptor_state; | 109 interceptor_state_ = interceptor_state; |
110 property_details_ = PropertyDetails::Empty(); | 110 property_details_ = PropertyDetails::Empty(); |
111 number_ = DescriptorArray::kNotFound; | 111 number_ = static_cast<uint32_t>(DescriptorArray::kNotFound); |
112 Start<is_element>(); | 112 Start<is_element>(); |
113 } | 113 } |
114 | 114 |
115 template void LookupIterator::RestartInternal<true>(InterceptorState); | 115 template void LookupIterator::RestartInternal<true>(InterceptorState); |
116 template void LookupIterator::RestartInternal<false>(InterceptorState); | 116 template void LookupIterator::RestartInternal<false>(InterceptorState); |
117 | 117 |
118 // static | 118 // static |
119 Handle<JSReceiver> LookupIterator::GetRootForNonJSReceiver( | 119 Handle<JSReceiver> LookupIterator::GetRootForNonJSReceiver( |
120 Isolate* isolate, Handle<Object> receiver, uint32_t index) { | 120 Isolate* isolate, Handle<Object> receiver, uint32_t index) { |
121 // Strings are the only objects with properties (only elements) directly on | 121 // Strings are the only objects with properties (only elements) directly on |
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 | 936 |
937 // We have found a cached property! Modify the iterator accordingly. | 937 // We have found a cached property! Modify the iterator accordingly. |
938 name_ = maybe_name.ToHandleChecked(); | 938 name_ = maybe_name.ToHandleChecked(); |
939 Restart(); | 939 Restart(); |
940 CHECK_EQ(state(), LookupIterator::DATA); | 940 CHECK_EQ(state(), LookupIterator::DATA); |
941 return true; | 941 return true; |
942 } | 942 } |
943 | 943 |
944 } // namespace internal | 944 } // namespace internal |
945 } // namespace v8 | 945 } // namespace v8 |
OLD | NEW |