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

Side by Side Diff: src/objects.h

Issue 6904166: Read isolate from page, not through map. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Remove Map::heap and use HeapObject::GetHeap instead. Created 9 years, 7 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/mark-compact.cc ('k') | src/objects.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 2010 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
11 // with the distribution. 11 // with the distribution.
(...skipping 3706 matching lines...) Expand 10 before | Expand all | Expand 10 after
3718 void MapPrint(FILE* out); 3718 void MapPrint(FILE* out);
3719 #endif 3719 #endif
3720 #ifdef DEBUG 3720 #ifdef DEBUG
3721 void MapVerify(); 3721 void MapVerify();
3722 void SharedMapVerify(); 3722 void SharedMapVerify();
3723 #endif 3723 #endif
3724 3724
3725 inline int visitor_id(); 3725 inline int visitor_id();
3726 inline void set_visitor_id(int visitor_id); 3726 inline void set_visitor_id(int visitor_id);
3727 3727
3728 // Returns the heap this map belongs to.
3729 inline Heap* heap();
3730
3731 typedef void (*TraverseCallback)(Map* map, void* data); 3728 typedef void (*TraverseCallback)(Map* map, void* data);
3732 3729
3733 void TraverseTransitionTree(TraverseCallback callback, void* data); 3730 void TraverseTransitionTree(TraverseCallback callback, void* data);
3734 3731
3735 static const int kMaxPreAllocatedPropertyFields = 255; 3732 static const int kMaxPreAllocatedPropertyFields = 255;
3736 3733
3737 // Layout description. 3734 // Layout description.
3738 static const int kInstanceSizesOffset = HeapObject::kHeaderSize; 3735 static const int kInstanceSizesOffset = HeapObject::kHeaderSize;
3739 static const int kInstanceAttributesOffset = kInstanceSizesOffset + kIntSize; 3736 static const int kInstanceAttributesOffset = kInstanceSizesOffset + kIntSize;
3740 static const int kPrototypeOffset = kInstanceAttributesOffset + kIntSize; 3737 static const int kPrototypeOffset = kInstanceAttributesOffset + kIntSize;
(...skipping 2825 matching lines...) Expand 10 before | Expand all | Expand 10 after
6566 } else { 6563 } else {
6567 value &= ~(1 << bit_position); 6564 value &= ~(1 << bit_position);
6568 } 6565 }
6569 return value; 6566 return value;
6570 } 6567 }
6571 }; 6568 };
6572 6569
6573 } } // namespace v8::internal 6570 } } // namespace v8::internal
6574 6571
6575 #endif // V8_OBJECTS_H_ 6572 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698