| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 } | 168 } |
| 169 int dictionary_entry() const { | 169 int dictionary_entry() const { |
| 170 DCHECK(has_property_); | 170 DCHECK(has_property_); |
| 171 DCHECK(holder_map_->is_dictionary_map()); | 171 DCHECK(holder_map_->is_dictionary_map()); |
| 172 return number_; | 172 return number_; |
| 173 } | 173 } |
| 174 | 174 |
| 175 static Configuration ComputeConfiguration( | 175 static Configuration ComputeConfiguration( |
| 176 Configuration configuration, Handle<Name> name) { | 176 Configuration configuration, Handle<Name> name) { |
| 177 if (name->IsOwn()) { | 177 if (name->IsOwn()) { |
| 178 return static_cast<Configuration>(configuration & HIDDEN); | 178 return static_cast<Configuration>(configuration & |
| 179 HIDDEN_SKIP_INTERCEPTOR); |
| 179 } else { | 180 } else { |
| 180 return configuration; | 181 return configuration; |
| 181 } | 182 } |
| 182 } | 183 } |
| 183 | 184 |
| 184 // If configuration_ becomes mutable, update | 185 // If configuration_ becomes mutable, update |
| 185 // HolderIsReceiverOrHiddenPrototype. | 186 // HolderIsReceiverOrHiddenPrototype. |
| 186 Configuration configuration_; | 187 Configuration configuration_; |
| 187 State state_; | 188 State state_; |
| 188 bool has_property_; | 189 bool has_property_; |
| 189 PropertyDetails property_details_; | 190 PropertyDetails property_details_; |
| 190 Isolate* isolate_; | 191 Isolate* isolate_; |
| 191 Handle<Name> name_; | 192 Handle<Name> name_; |
| 192 Handle<Map> holder_map_; | 193 Handle<Map> holder_map_; |
| 193 Handle<Map> transition_map_; | 194 Handle<Map> transition_map_; |
| 194 Handle<Object> receiver_; | 195 Handle<Object> receiver_; |
| 195 Handle<JSReceiver> holder_; | 196 Handle<JSReceiver> holder_; |
| 196 | 197 |
| 197 int number_; | 198 int number_; |
| 198 }; | 199 }; |
| 199 | 200 |
| 200 | 201 |
| 201 } } // namespace v8::internal | 202 } } // namespace v8::internal |
| 202 | 203 |
| 203 #endif // V8_LOOKUP_H_ | 204 #endif // V8_LOOKUP_H_ |
| OLD | NEW |