OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4823 | 4823 |
4824 | 4824 |
4825 void JSProxy::InitializeBody(int object_size, Object* value) { | 4825 void JSProxy::InitializeBody(int object_size, Object* value) { |
4826 ASSERT(!value->IsHeapObject() || !GetHeap()->InNewSpace(value)); | 4826 ASSERT(!value->IsHeapObject() || !GetHeap()->InNewSpace(value)); |
4827 for (int offset = kHeaderSize; offset < object_size; offset += kPointerSize) { | 4827 for (int offset = kHeaderSize; offset < object_size; offset += kPointerSize) { |
4828 WRITE_FIELD(this, offset, value); | 4828 WRITE_FIELD(this, offset, value); |
4829 } | 4829 } |
4830 } | 4830 } |
4831 | 4831 |
4832 | 4832 |
4833 ACCESSORS(JSSet, table, Object, kTableOffset) | 4833 ACCESSORS(JSSet, table, ObjectHashSet, kTableOffset) |
4834 ACCESSORS(JSMap, table, Object, kTableOffset) | 4834 ACCESSORS(JSMap, table, ObjectHashTable, kTableOffset) |
4835 ACCESSORS(JSWeakMap, table, Object, kTableOffset) | 4835 ACCESSORS(JSWeakMap, table, ObjectHashTable, kTableOffset) |
4836 ACCESSORS(JSWeakMap, next, Object, kNextOffset) | 4836 ACCESSORS(JSWeakMap, next, Object, kNextOffset) |
4837 | 4837 |
4838 | 4838 |
4839 Address Foreign::foreign_address() { | 4839 Address Foreign::foreign_address() { |
4840 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kForeignAddressOffset)); | 4840 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kForeignAddressOffset)); |
4841 } | 4841 } |
4842 | 4842 |
4843 | 4843 |
4844 void Foreign::set_foreign_address(Address value) { | 4844 void Foreign::set_foreign_address(Address value) { |
4845 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); | 4845 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); |
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5890 #undef WRITE_UINT32_FIELD | 5890 #undef WRITE_UINT32_FIELD |
5891 #undef READ_SHORT_FIELD | 5891 #undef READ_SHORT_FIELD |
5892 #undef WRITE_SHORT_FIELD | 5892 #undef WRITE_SHORT_FIELD |
5893 #undef READ_BYTE_FIELD | 5893 #undef READ_BYTE_FIELD |
5894 #undef WRITE_BYTE_FIELD | 5894 #undef WRITE_BYTE_FIELD |
5895 | 5895 |
5896 | 5896 |
5897 } } // namespace v8::internal | 5897 } } // namespace v8::internal |
5898 | 5898 |
5899 #endif // V8_OBJECTS_INL_H_ | 5899 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |