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

Side by Side Diff: src/objects.h

Issue 1719903002: Fix AllocationSite body descriptor to include all pointer slots. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | src/profiler/heap-snapshot-generator.cc » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 8349 matching lines...) Expand 10 before | Expand all | Expand 10 after
8360 kPretenureCreateCountOffset + kPointerSize; 8360 kPretenureCreateCountOffset + kPointerSize;
8361 static const int kWeakNextOffset = kDependentCodeOffset + kPointerSize; 8361 static const int kWeakNextOffset = kDependentCodeOffset + kPointerSize;
8362 static const int kSize = kWeakNextOffset + kPointerSize; 8362 static const int kSize = kWeakNextOffset + kPointerSize;
8363 8363
8364 // During mark compact we need to take special care for the dependent code 8364 // During mark compact we need to take special care for the dependent code
8365 // field. 8365 // field.
8366 static const int kPointerFieldsBeginOffset = kTransitionInfoOffset; 8366 static const int kPointerFieldsBeginOffset = kTransitionInfoOffset;
8367 static const int kPointerFieldsEndOffset = kWeakNextOffset; 8367 static const int kPointerFieldsEndOffset = kWeakNextOffset;
8368 8368
8369 // For other visitors, use the fixed body descriptor below. 8369 // For other visitors, use the fixed body descriptor below.
8370 typedef FixedBodyDescriptor<HeapObject::kHeaderSize, 8370 typedef FixedBodyDescriptor<HeapObject::kHeaderSize, kSize, kSize>
8371 kDependentCodeOffset + kPointerSize, 8371 BodyDescriptor;
8372 kSize> BodyDescriptor;
8373 8372
8374 private: 8373 private:
8375 inline bool PretenuringDecisionMade(); 8374 inline bool PretenuringDecisionMade();
8376 8375
8377 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationSite); 8376 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationSite);
8378 }; 8377 };
8379 8378
8380 8379
8381 class AllocationMemento: public Struct { 8380 class AllocationMemento: public Struct {
8382 public: 8381 public:
(...skipping 2454 matching lines...) Expand 10 before | Expand all | Expand 10 after
10837 } 10836 }
10838 return value; 10837 return value;
10839 } 10838 }
10840 }; 10839 };
10841 10840
10842 10841
10843 } // NOLINT, false-positive due to second-order macros. 10842 } // NOLINT, false-positive due to second-order macros.
10844 } // NOLINT, false-positive due to second-order macros. 10843 } // NOLINT, false-positive due to second-order macros.
10845 10844
10846 #endif // V8_OBJECTS_H_ 10845 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/profiler/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698