OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 3912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3923 } | 3923 } |
3924 } | 3924 } |
3925 | 3925 |
3926 | 3926 |
3927 ACCESSORS(JSSet, table, Object, kTableOffset) | 3927 ACCESSORS(JSSet, table, Object, kTableOffset) |
3928 ACCESSORS(JSMap, table, Object, kTableOffset) | 3928 ACCESSORS(JSMap, table, Object, kTableOffset) |
3929 ACCESSORS(JSWeakMap, table, Object, kTableOffset) | 3929 ACCESSORS(JSWeakMap, table, Object, kTableOffset) |
3930 ACCESSORS(JSWeakMap, next, Object, kNextOffset) | 3930 ACCESSORS(JSWeakMap, next, Object, kNextOffset) |
3931 | 3931 |
3932 | 3932 |
3933 ObjectHashTable* JSWeakMap::unchecked_table() { | |
3934 return reinterpret_cast<ObjectHashTable*>(READ_FIELD(this, kTableOffset)); | |
3935 } | |
3936 | |
3937 | |
3938 Address Foreign::foreign_address() { | 3933 Address Foreign::foreign_address() { |
3939 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kForeignAddressOffset)); | 3934 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kForeignAddressOffset)); |
3940 } | 3935 } |
3941 | 3936 |
3942 | 3937 |
3943 void Foreign::set_foreign_address(Address value) { | 3938 void Foreign::set_foreign_address(Address value) { |
3944 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); | 3939 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); |
3945 } | 3940 } |
3946 | 3941 |
3947 | 3942 |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4696 #undef WRITE_INT_FIELD | 4691 #undef WRITE_INT_FIELD |
4697 #undef READ_SHORT_FIELD | 4692 #undef READ_SHORT_FIELD |
4698 #undef WRITE_SHORT_FIELD | 4693 #undef WRITE_SHORT_FIELD |
4699 #undef READ_BYTE_FIELD | 4694 #undef READ_BYTE_FIELD |
4700 #undef WRITE_BYTE_FIELD | 4695 #undef WRITE_BYTE_FIELD |
4701 | 4696 |
4702 | 4697 |
4703 } } // namespace v8::internal | 4698 } } // namespace v8::internal |
4704 | 4699 |
4705 #endif // V8_OBJECTS_INL_H_ | 4700 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |