| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 name = Name::Flatten(name); | 151 name = Name::Flatten(name); |
| 152 uint32_t index; | 152 uint32_t index; |
| 153 LookupIterator it = | 153 LookupIterator it = |
| 154 name->AsArrayIndex(&index) | 154 name->AsArrayIndex(&index) |
| 155 ? LookupIterator(isolate, receiver, index, holder, configuration) | 155 ? LookupIterator(isolate, receiver, index, holder, configuration) |
| 156 : LookupIterator(receiver, name, holder, configuration); | 156 : LookupIterator(receiver, name, holder, configuration); |
| 157 it.name_ = name; | 157 it.name_ = name; |
| 158 return it; | 158 return it; |
| 159 } | 159 } |
| 160 | 160 |
| 161 static LookupIterator PropertyOrElement( |
| 162 Isolate* isolate, Handle<Object> receiver, Handle<Object> key, |
| 163 bool* success, Configuration configuration = DEFAULT); |
| 164 |
| 161 Isolate* isolate() const { return isolate_; } | 165 Isolate* isolate() const { return isolate_; } |
| 162 State state() const { return state_; } | 166 State state() const { return state_; } |
| 163 | 167 |
| 164 Handle<Name> name() const { | 168 Handle<Name> name() const { |
| 165 DCHECK(!IsElement()); | 169 DCHECK(!IsElement()); |
| 166 return name_; | 170 return name_; |
| 167 } | 171 } |
| 168 Handle<Name> GetName() { | 172 Handle<Name> GetName() { |
| 169 if (name_.is_null()) { | 173 if (name_.is_null()) { |
| 170 DCHECK(IsElement()); | 174 DCHECK(IsElement()); |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 Handle<JSReceiver> holder_; | 316 Handle<JSReceiver> holder_; |
| 313 Handle<Map> holder_map_; | 317 Handle<Map> holder_map_; |
| 314 const Handle<JSReceiver> initial_holder_; | 318 const Handle<JSReceiver> initial_holder_; |
| 315 uint32_t number_; | 319 uint32_t number_; |
| 316 }; | 320 }; |
| 317 | 321 |
| 318 | 322 |
| 319 } } // namespace v8::internal | 323 } } // namespace v8::internal |
| 320 | 324 |
| 321 #endif // V8_LOOKUP_H_ | 325 #endif // V8_LOOKUP_H_ |
| OLD | NEW |