| 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 #ifndef V8_LOOKUP_H_ | 5 #ifndef V8_LOOKUP_H_ |
| 6 #define V8_LOOKUP_H_ | 6 #define V8_LOOKUP_H_ |
| 7 | 7 |
| 8 #include "src/factory.h" | 8 #include "src/factory.h" |
| 9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
| 10 #include "src/objects.h" | 10 #include "src/objects.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 Handle<Object> GetDataValue() const; | 142 Handle<Object> GetDataValue() const; |
| 143 void WriteDataValue(Handle<Object> value); | 143 void WriteDataValue(Handle<Object> value); |
| 144 | 144 |
| 145 void InternalizeName(); | 145 void InternalizeName(); |
| 146 | 146 |
| 147 private: | 147 private: |
| 148 Handle<Map> GetReceiverMap() const; | 148 Handle<Map> GetReceiverMap() const; |
| 149 | 149 |
| 150 MUST_USE_RESULT inline JSReceiver* NextHolder(Map* map); | 150 MUST_USE_RESULT inline JSReceiver* NextHolder(Map* map); |
| 151 inline State LookupInHolder(Map* map, JSReceiver* holder); | 151 inline State LookupInHolder(Map* map, JSReceiver* holder); |
| 152 State LookupRealNameInHolder(Map* map, JSReceiver* holder); |
| 152 Handle<Object> FetchValue() const; | 153 Handle<Object> FetchValue() const; |
| 153 void ReloadPropertyInformation(); | 154 void ReloadPropertyInformation(); |
| 154 | 155 |
| 155 bool IsBootstrapping() const; | 156 bool IsBootstrapping() const; |
| 156 | 157 |
| 157 // Methods that fetch data from the holder ensure they always have a holder. | 158 // Methods that fetch data from the holder ensure they always have a holder. |
| 158 // This means the receiver needs to be present as opposed to just the receiver | 159 // This means the receiver needs to be present as opposed to just the receiver |
| 159 // map. Other objects in the prototype chain are transitively guaranteed to be | 160 // map. Other objects in the prototype chain are transitively guaranteed to be |
| 160 // present via the receiver map. | 161 // present via the receiver map. |
| 161 bool is_guaranteed_to_have_holder() const { | 162 bool is_guaranteed_to_have_holder() const { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 MaybeHandle<Object> maybe_receiver_; | 202 MaybeHandle<Object> maybe_receiver_; |
| 202 MaybeHandle<JSReceiver> maybe_holder_; | 203 MaybeHandle<JSReceiver> maybe_holder_; |
| 203 | 204 |
| 204 int number_; | 205 int number_; |
| 205 }; | 206 }; |
| 206 | 207 |
| 207 | 208 |
| 208 } } // namespace v8::internal | 209 } } // namespace v8::internal |
| 209 | 210 |
| 210 #endif // V8_LOOKUP_H_ | 211 #endif // V8_LOOKUP_H_ |
| OLD | NEW |