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

Unified Diff: src/objects.h

Issue 637253004: Use smi zero instead of undefine_value to zap dead weak cells. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 603f7b3e3f8a78a2c4be4178cb9d34f33321ccf9..1f44187ccb21f08e55e64d411035ff9459a7377a 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -9595,14 +9595,16 @@ class PropertyCell: public Cell {
class WeakCell : public HeapObject {
public:
- inline HeapObject* value() const;
+ inline Object* value() const;
// This should not be called by anyone except GC.
- inline void clear(HeapObject* undefined);
+ inline void clear();
// This should not be called by anyone except allocator.
inline void initialize(HeapObject* value);
+ inline bool cleared() const;
+
DECL_ACCESSORS(next, Object)
DECLARE_CAST(WeakCell)
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698