| 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 6319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6330 set_literals_or_bindings(bindings); | 6330 set_literals_or_bindings(bindings); |
| 6331 } | 6331 } |
| 6332 | 6332 |
| 6333 | 6333 |
| 6334 int JSFunction::NumberOfLiterals() { | 6334 int JSFunction::NumberOfLiterals() { |
| 6335 DCHECK(!shared()->bound()); | 6335 DCHECK(!shared()->bound()); |
| 6336 return literals()->length(); | 6336 return literals()->length(); |
| 6337 } | 6337 } |
| 6338 | 6338 |
| 6339 | 6339 |
| 6340 ACCESSORS(JSProxy, target, Object, kTargetOffset) | |
| 6341 ACCESSORS(JSProxy, handler, Object, kHandlerOffset) | 6340 ACCESSORS(JSProxy, handler, Object, kHandlerOffset) |
| 6341 ACCESSORS(JSProxy, target, JSReceiver, kTargetOffset) |
| 6342 ACCESSORS(JSProxy, hash, Object, kHashOffset) | 6342 ACCESSORS(JSProxy, hash, Object, kHashOffset) |
| 6343 | 6343 |
| 6344 bool JSProxy::IsRevoked() const { return !handler()->IsJSReceiver(); } |
| 6345 |
| 6344 ACCESSORS(JSFunctionProxy, call_trap, JSReceiver, kCallTrapOffset) | 6346 ACCESSORS(JSFunctionProxy, call_trap, JSReceiver, kCallTrapOffset) |
| 6345 ACCESSORS(JSFunctionProxy, construct_trap, Object, kConstructTrapOffset) | 6347 ACCESSORS(JSFunctionProxy, construct_trap, Object, kConstructTrapOffset) |
| 6346 | 6348 |
| 6347 | 6349 |
| 6348 ACCESSORS(JSCollection, table, Object, kTableOffset) | 6350 ACCESSORS(JSCollection, table, Object, kTableOffset) |
| 6349 | 6351 |
| 6350 | 6352 |
| 6351 #define ORDERED_HASH_TABLE_ITERATOR_ACCESSORS(name, type, offset) \ | 6353 #define ORDERED_HASH_TABLE_ITERATOR_ACCESSORS(name, type, offset) \ |
| 6352 template<class Derived, class TableType> \ | 6354 template<class Derived, class TableType> \ |
| 6353 type* OrderedHashTableIterator<Derived, TableType>::name() const { \ | 6355 type* OrderedHashTableIterator<Derived, TableType>::name() const { \ |
| (...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7871 #undef WRITE_INT64_FIELD | 7873 #undef WRITE_INT64_FIELD |
| 7872 #undef READ_BYTE_FIELD | 7874 #undef READ_BYTE_FIELD |
| 7873 #undef WRITE_BYTE_FIELD | 7875 #undef WRITE_BYTE_FIELD |
| 7874 #undef NOBARRIER_READ_BYTE_FIELD | 7876 #undef NOBARRIER_READ_BYTE_FIELD |
| 7875 #undef NOBARRIER_WRITE_BYTE_FIELD | 7877 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7876 | 7878 |
| 7877 } // namespace internal | 7879 } // namespace internal |
| 7878 } // namespace v8 | 7880 } // namespace v8 |
| 7879 | 7881 |
| 7880 #endif // V8_OBJECTS_INL_H_ | 7882 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |