Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: src/objects-inl.h

Issue 8135003: Fix verification of weak maps during initialization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects-debug.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698