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_INL_H_ | 5 #ifndef V8_LOOKUP_INL_H_ |
6 #define V8_LOOKUP_INL_H_ | 6 #define V8_LOOKUP_INL_H_ |
7 | 7 |
8 #include "src/lookup.h" | 8 #include "src/lookup.h" |
9 | 9 |
| 10 #include "src/elements.h" |
| 11 |
10 namespace v8 { | 12 namespace v8 { |
11 namespace internal { | 13 namespace internal { |
12 | 14 |
13 | 15 |
14 JSReceiver* LookupIterator::NextHolder(Map* map) { | 16 JSReceiver* LookupIterator::NextHolder(Map* map) { |
15 DisallowHeapAllocation no_gc; | 17 DisallowHeapAllocation no_gc; |
16 if (map->prototype()->IsNull()) return NULL; | 18 if (map->prototype()->IsNull()) return NULL; |
17 | 19 |
18 JSReceiver* next = JSReceiver::cast(map->prototype()); | 20 JSReceiver* next = JSReceiver::cast(map->prototype()); |
19 DCHECK(!next->map()->IsGlobalObjectMap() || | 21 DCHECK(!next->map()->IsGlobalObjectMap() || |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 default: | 132 default: |
131 return NOT_FOUND; | 133 return NOT_FOUND; |
132 } | 134 } |
133 UNREACHABLE(); | 135 UNREACHABLE(); |
134 return state_; | 136 return state_; |
135 } | 137 } |
136 } | 138 } |
137 } // namespace v8::internal | 139 } // namespace v8::internal |
138 | 140 |
139 #endif // V8_LOOKUP_INL_H_ | 141 #endif // V8_LOOKUP_INL_H_ |
OLD | NEW |