OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 // Review notes: | 5 // Review notes: |
6 // | 6 // |
7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
10 // | 10 // |
(...skipping 6336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6347 set_literals_or_bindings(bindings); | 6347 set_literals_or_bindings(bindings); |
6348 } | 6348 } |
6349 | 6349 |
6350 | 6350 |
6351 int JSFunction::NumberOfLiterals() { | 6351 int JSFunction::NumberOfLiterals() { |
6352 DCHECK(!shared()->bound()); | 6352 DCHECK(!shared()->bound()); |
6353 return literals()->length(); | 6353 return literals()->length(); |
6354 } | 6354 } |
6355 | 6355 |
6356 | 6356 |
| 6357 ACCESSORS(JSProxy, target, JSReceiver, kTargetOffset) |
6357 ACCESSORS(JSProxy, handler, Object, kHandlerOffset) | 6358 ACCESSORS(JSProxy, handler, Object, kHandlerOffset) |
6358 ACCESSORS(JSProxy, target, JSReceiver, kTargetOffset) | |
6359 ACCESSORS(JSProxy, hash, Object, kHashOffset) | 6359 ACCESSORS(JSProxy, hash, Object, kHashOffset) |
6360 | 6360 |
6361 bool JSProxy::IsRevoked() const { return !handler()->IsJSReceiver(); } | 6361 bool JSProxy::IsRevoked() const { return !handler()->IsJSReceiver(); } |
6362 | 6362 |
6363 ACCESSORS(JSCollection, table, Object, kTableOffset) | 6363 ACCESSORS(JSCollection, table, Object, kTableOffset) |
6364 | 6364 |
6365 | 6365 |
6366 #define ORDERED_HASH_TABLE_ITERATOR_ACCESSORS(name, type, offset) \ | 6366 #define ORDERED_HASH_TABLE_ITERATOR_ACCESSORS(name, type, offset) \ |
6367 template<class Derived, class TableType> \ | 6367 template<class Derived, class TableType> \ |
6368 type* OrderedHashTableIterator<Derived, TableType>::name() const { \ | 6368 type* OrderedHashTableIterator<Derived, TableType>::name() const { \ |
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7885 #undef WRITE_INT64_FIELD | 7885 #undef WRITE_INT64_FIELD |
7886 #undef READ_BYTE_FIELD | 7886 #undef READ_BYTE_FIELD |
7887 #undef WRITE_BYTE_FIELD | 7887 #undef WRITE_BYTE_FIELD |
7888 #undef NOBARRIER_READ_BYTE_FIELD | 7888 #undef NOBARRIER_READ_BYTE_FIELD |
7889 #undef NOBARRIER_WRITE_BYTE_FIELD | 7889 #undef NOBARRIER_WRITE_BYTE_FIELD |
7890 | 7890 |
7891 } // namespace internal | 7891 } // namespace internal |
7892 } // namespace v8 | 7892 } // namespace v8 |
7893 | 7893 |
7894 #endif // V8_OBJECTS_INL_H_ | 7894 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |