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_FIELD_INDEX_INL_H_ | 5 #ifndef V8_FIELD_INDEX_INL_H_ |
6 #define V8_FIELD_INDEX_INL_H_ | 6 #define V8_FIELD_INDEX_INL_H_ |
7 | 7 |
8 #include "src/field-index.h" | 8 #include "src/field-index.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 inline int FieldIndex::GetKeyedLookupCacheIndex() const { | 113 inline int FieldIndex::GetKeyedLookupCacheIndex() const { |
114 if (FLAG_compiled_keyed_generic_loads) { | 114 if (FLAG_compiled_keyed_generic_loads) { |
115 return GetLoadByFieldIndex(); | 115 return GetLoadByFieldIndex(); |
116 } else { | 116 } else { |
117 return property_index(); | 117 return property_index(); |
118 } | 118 } |
119 } | 119 } |
120 | 120 |
121 | 121 |
122 } } // namespace v8::internal | 122 } // namespace internal |
| 123 } // namespace v8 |
123 | 124 |
124 #endif | 125 #endif |
OLD | NEW |