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

Side by Side Diff: src/objects.h

Issue 7639020: Perform TODO(gc) cleanup for TODO-lockdown. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 4 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
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 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 // information. 1070 // information.
1071 inline Map* map(); 1071 inline Map* map();
1072 inline void set_map(Map* value); 1072 inline void set_map(Map* value);
1073 1073
1074 // During garbage collection, the map word of a heap object does not 1074 // During garbage collection, the map word of a heap object does not
1075 // necessarily contain a map pointer. 1075 // necessarily contain a map pointer.
1076 inline MapWord map_word(); 1076 inline MapWord map_word();
1077 inline void set_map_word(MapWord map_word); 1077 inline void set_map_word(MapWord map_word);
1078 1078
1079 // The Heap the object was allocated in. Used also to access Isolate. 1079 // The Heap the object was allocated in. Used also to access Isolate.
1080 // This method can not be used during GC, it ASSERTs this.
1081 inline Heap* GetHeap(); 1080 inline Heap* GetHeap();
1081
1082 // Convenience method to get current isolate. This method can be 1082 // Convenience method to get current isolate. This method can be
1083 // accessed only when its result is the same as 1083 // accessed only when its result is the same as
1084 // Isolate::Current(), it ASSERTs this. See also comment for GetHeap. 1084 // Isolate::Current(), it ASSERTs this. See also comment for GetHeap.
1085 inline Isolate* GetIsolate(); 1085 inline Isolate* GetIsolate();
1086 1086
1087 // Converts an address to a HeapObject pointer. 1087 // Converts an address to a HeapObject pointer.
1088 static inline HeapObject* FromAddress(Address address); 1088 static inline HeapObject* FromAddress(Address address);
1089 1089
1090 // Returns the address of this HeapObject. 1090 // Returns the address of this HeapObject.
1091 inline Address address(); 1091 inline Address address();
(...skipping 6156 matching lines...) Expand 10 before | Expand all | Expand 10 after
7248 } else { 7248 } else {
7249 value &= ~(1 << bit_position); 7249 value &= ~(1 << bit_position);
7250 } 7250 }
7251 return value; 7251 return value;
7252 } 7252 }
7253 }; 7253 };
7254 7254
7255 } } // namespace v8::internal 7255 } } // namespace v8::internal
7256 7256
7257 #endif // V8_OBJECTS_H_ 7257 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698