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 namespace v8 { | 10 namespace v8 { |
(...skipping 11 matching lines...) Expand all Loading... |
22 if (!check_derived() && | 22 if (!check_derived() && |
23 !(check_hidden() && next->map()->is_hidden_prototype())) { | 23 !(check_hidden() && next->map()->is_hidden_prototype())) { |
24 return NULL; | 24 return NULL; |
25 } | 25 } |
26 | 26 |
27 return next; | 27 return next; |
28 } | 28 } |
29 | 29 |
30 | 30 |
31 LookupIterator::State LookupIterator::LookupInHolder(Map* map) { | 31 LookupIterator::State LookupIterator::LookupInHolder(Map* map) { |
| 32 STATIC_ASSERT(INTERCEPTOR == BEFORE_PROPERTY); |
32 DisallowHeapAllocation no_gc; | 33 DisallowHeapAllocation no_gc; |
33 switch (state_) { | 34 switch (state_) { |
34 case NOT_FOUND: | 35 case NOT_FOUND: |
35 if (map->IsJSProxyMap()) { | 36 if (map->IsJSProxyMap()) { |
36 return JSPROXY; | 37 return JSPROXY; |
37 } | 38 } |
38 if (check_access_check() && map->is_access_check_needed()) { | 39 if (check_access_check() && map->is_access_check_needed()) { |
39 return ACCESS_CHECK; | 40 return ACCESS_CHECK; |
40 } | 41 } |
41 // Fall through. | 42 // Fall through. |
(...skipping 17 matching lines...) Expand all Loading... |
59 case JSPROXY: | 60 case JSPROXY: |
60 UNREACHABLE(); | 61 UNREACHABLE(); |
61 } | 62 } |
62 UNREACHABLE(); | 63 UNREACHABLE(); |
63 return state_; | 64 return state_; |
64 } | 65 } |
65 } | 66 } |
66 } // namespace v8::internal | 67 } // namespace v8::internal |
67 | 68 |
68 #endif // V8_LOOKUP_INL_H_ | 69 #endif // V8_LOOKUP_INL_H_ |
OLD | NEW |