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

Side by Side Diff: src/objects.h

Issue 8715004: Fix assertion while marking Harmony weak maps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years 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-inl.h » ('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 7279 matching lines...) Expand 10 before | Expand all | Expand 10 after
7290 7290
7291 // The JSWeakMap describes EcmaScript Harmony weak maps 7291 // The JSWeakMap describes EcmaScript Harmony weak maps
7292 class JSWeakMap: public JSObject { 7292 class JSWeakMap: public JSObject {
7293 public: 7293 public:
7294 // [table]: the backing hash table mapping keys to values. 7294 // [table]: the backing hash table mapping keys to values.
7295 DECL_ACCESSORS(table, Object) 7295 DECL_ACCESSORS(table, Object)
7296 7296
7297 // [next]: linked list of encountered weak maps during GC. 7297 // [next]: linked list of encountered weak maps during GC.
7298 DECL_ACCESSORS(next, Object) 7298 DECL_ACCESSORS(next, Object)
7299 7299
7300 // Unchecked accessors to be used during GC.
7301 inline ObjectHashTable* unchecked_table();
7302
7303 // Casting. 7300 // Casting.
7304 static inline JSWeakMap* cast(Object* obj); 7301 static inline JSWeakMap* cast(Object* obj);
7305 7302
7306 #ifdef OBJECT_PRINT 7303 #ifdef OBJECT_PRINT
7307 inline void JSWeakMapPrint() { 7304 inline void JSWeakMapPrint() {
7308 JSWeakMapPrint(stdout); 7305 JSWeakMapPrint(stdout);
7309 } 7306 }
7310 void JSWeakMapPrint(FILE* out); 7307 void JSWeakMapPrint(FILE* out);
7311 #endif 7308 #endif
7312 #ifdef DEBUG 7309 #ifdef DEBUG
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
7962 } else { 7959 } else {
7963 value &= ~(1 << bit_position); 7960 value &= ~(1 << bit_position);
7964 } 7961 }
7965 return value; 7962 return value;
7966 } 7963 }
7967 }; 7964 };
7968 7965
7969 } } // namespace v8::internal 7966 } } // namespace v8::internal
7970 7967
7971 #endif // V8_OBJECTS_H_ 7968 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698