| 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 3869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3880 | 3880 |
| 3881 | 3881 |
| 3882 void JSProxy::InitializeBody(int object_size, Object* value) { | 3882 void JSProxy::InitializeBody(int object_size, Object* value) { |
| 3883 ASSERT(!value->IsHeapObject() || !GetHeap()->InNewSpace(value)); | 3883 ASSERT(!value->IsHeapObject() || !GetHeap()->InNewSpace(value)); |
| 3884 for (int offset = kHeaderSize; offset < object_size; offset += kPointerSize) { | 3884 for (int offset = kHeaderSize; offset < object_size; offset += kPointerSize) { |
| 3885 WRITE_FIELD(this, offset, value); | 3885 WRITE_FIELD(this, offset, value); |
| 3886 } | 3886 } |
| 3887 } | 3887 } |
| 3888 | 3888 |
| 3889 | 3889 |
| 3890 ACCESSORS(JSWeakMap, table, ObjectHashTable, kTableOffset) | 3890 ACCESSORS(JSWeakMap, table, Object, kTableOffset) |
| 3891 ACCESSORS_GCSAFE(JSWeakMap, next, Object, kNextOffset) | 3891 ACCESSORS_GCSAFE(JSWeakMap, next, Object, kNextOffset) |
| 3892 | 3892 |
| 3893 | 3893 |
| 3894 ObjectHashTable* JSWeakMap::unchecked_table() { | 3894 ObjectHashTable* JSWeakMap::unchecked_table() { |
| 3895 return reinterpret_cast<ObjectHashTable*>(READ_FIELD(this, kTableOffset)); | 3895 return reinterpret_cast<ObjectHashTable*>(READ_FIELD(this, kTableOffset)); |
| 3896 } | 3896 } |
| 3897 | 3897 |
| 3898 | 3898 |
| 3899 Address Foreign::address() { | 3899 Address Foreign::address() { |
| 3900 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kAddressOffset)); | 3900 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kAddressOffset)); |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4641 #undef WRITE_INT_FIELD | 4641 #undef WRITE_INT_FIELD |
| 4642 #undef READ_SHORT_FIELD | 4642 #undef READ_SHORT_FIELD |
| 4643 #undef WRITE_SHORT_FIELD | 4643 #undef WRITE_SHORT_FIELD |
| 4644 #undef READ_BYTE_FIELD | 4644 #undef READ_BYTE_FIELD |
| 4645 #undef WRITE_BYTE_FIELD | 4645 #undef WRITE_BYTE_FIELD |
| 4646 | 4646 |
| 4647 | 4647 |
| 4648 } } // namespace v8::internal | 4648 } } // namespace v8::internal |
| 4649 | 4649 |
| 4650 #endif // V8_OBJECTS_INL_H_ | 4650 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |