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

Side by Side Diff: src/objects.h

Issue 23493019: remove most Isolate::Current asserts (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 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 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after
1706 inline void set_map_no_write_barrier(Map* value); 1706 inline void set_map_no_write_barrier(Map* value);
1707 1707
1708 // During garbage collection, the map word of a heap object does not 1708 // During garbage collection, the map word of a heap object does not
1709 // necessarily contain a map pointer. 1709 // necessarily contain a map pointer.
1710 inline MapWord map_word(); 1710 inline MapWord map_word();
1711 inline void set_map_word(MapWord map_word); 1711 inline void set_map_word(MapWord map_word);
1712 1712
1713 // The Heap the object was allocated in. Used also to access Isolate. 1713 // The Heap the object was allocated in. Used also to access Isolate.
1714 inline Heap* GetHeap(); 1714 inline Heap* GetHeap();
1715 1715
1716 // Convenience method to get current isolate. This method can be 1716 // Convenience method to get current isolate.
1717 // accessed only when its result is the same as
1718 // Isolate::Current(), it ASSERTs this. See also comment for GetHeap.
1719 inline Isolate* GetIsolate(); 1717 inline Isolate* GetIsolate();
1720 1718
1721 // Converts an address to a HeapObject pointer. 1719 // Converts an address to a HeapObject pointer.
1722 static inline HeapObject* FromAddress(Address address); 1720 static inline HeapObject* FromAddress(Address address);
1723 1721
1724 // Returns the address of this HeapObject. 1722 // Returns the address of this HeapObject.
1725 inline Address address(); 1723 inline Address address();
1726 1724
1727 // Iterates over pointers contained in the object (including the Map) 1725 // Iterates over pointers contained in the object (including the Map)
1728 void Iterate(ObjectVisitor* v); 1726 void Iterate(ObjectVisitor* v);
(...skipping 8448 matching lines...) Expand 10 before | Expand all | Expand 10 after
10177 } else { 10175 } else {
10178 value &= ~(1 << bit_position); 10176 value &= ~(1 << bit_position);
10179 } 10177 }
10180 return value; 10178 return value;
10181 } 10179 }
10182 }; 10180 };
10183 10181
10184 } } // namespace v8::internal 10182 } } // namespace v8::internal
10185 10183
10186 #endif // V8_OBJECTS_H_ 10184 #endif // V8_OBJECTS_H_
OLDNEW
« src/compiler.h ('K') | « src/mark-compact.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698