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

Side by Side Diff: src/objects.h

Issue 1488593003: Optimize clearing of map transitions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comment Created 5 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
« no previous file with comments | « src/heap/objects-visiting-inl.h ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 9445 matching lines...) Expand 10 before | Expand all | Expand 10 after
9456 // This should not be called by anyone except GC. 9456 // This should not be called by anyone except GC.
9457 inline void clear(); 9457 inline void clear();
9458 9458
9459 // This should not be called by anyone except allocator. 9459 // This should not be called by anyone except allocator.
9460 inline void initialize(HeapObject* value); 9460 inline void initialize(HeapObject* value);
9461 9461
9462 inline bool cleared() const; 9462 inline bool cleared() const;
9463 9463
9464 DECL_ACCESSORS(next, Object) 9464 DECL_ACCESSORS(next, Object)
9465 9465
9466 inline void clear_next(Heap* heap); 9466 inline void clear_next(Object* the_hole_value);
9467 9467
9468 inline bool next_cleared(); 9468 inline bool next_cleared();
9469 9469
9470 DECLARE_CAST(WeakCell) 9470 DECLARE_CAST(WeakCell)
9471 9471
9472 DECLARE_PRINTER(WeakCell) 9472 DECLARE_PRINTER(WeakCell)
9473 DECLARE_VERIFIER(WeakCell) 9473 DECLARE_VERIFIER(WeakCell)
9474 9474
9475 // Layout description. 9475 // Layout description.
9476 static const int kValueOffset = HeapObject::kHeaderSize; 9476 static const int kValueOffset = HeapObject::kHeaderSize;
(...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after
10682 } 10682 }
10683 return value; 10683 return value;
10684 } 10684 }
10685 }; 10685 };
10686 10686
10687 10687
10688 } // NOLINT, false-positive due to second-order macros. 10688 } // NOLINT, false-positive due to second-order macros.
10689 } // NOLINT, false-positive due to second-order macros. 10689 } // NOLINT, false-positive due to second-order macros.
10690 10690
10691 #endif // V8_OBJECTS_H_ 10691 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698