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

Side by Side Diff: src/objects.h

Issue 1844413002: Use EmbedderHeapTracer instead of object grouping when trace_embedder_heap flag is set (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Incorporated Jochen's wonderful comments Created 4 years, 8 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
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/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 2273 matching lines...) Expand 10 before | Expand all | Expand 10 after
2284 // internal fields as well as the number of internal fields. 2284 // internal fields as well as the number of internal fields.
2285 static inline int GetHeaderSize(InstanceType instance_type); 2285 static inline int GetHeaderSize(InstanceType instance_type);
2286 inline int GetHeaderSize(); 2286 inline int GetHeaderSize();
2287 2287
2288 static inline int GetInternalFieldCount(Map* map); 2288 static inline int GetInternalFieldCount(Map* map);
2289 inline int GetInternalFieldCount(); 2289 inline int GetInternalFieldCount();
2290 inline int GetInternalFieldOffset(int index); 2290 inline int GetInternalFieldOffset(int index);
2291 inline Object* GetInternalField(int index); 2291 inline Object* GetInternalField(int index);
2292 inline void SetInternalField(int index, Object* value); 2292 inline void SetInternalField(int index, Object* value);
2293 inline void SetInternalField(int index, Smi* value); 2293 inline void SetInternalField(int index, Smi* value);
2294 bool WasConstructedFromApiFunction();
2294 2295
2295 void CollectOwnPropertyNames(KeyAccumulator* keys, 2296 void CollectOwnPropertyNames(KeyAccumulator* keys,
2296 PropertyFilter filter = ALL_PROPERTIES); 2297 PropertyFilter filter = ALL_PROPERTIES);
2297 2298
2298 // Returns the number of properties on this object filtering out properties 2299 // Returns the number of properties on this object filtering out properties
2299 // with the specified attributes (ignoring interceptors). 2300 // with the specified attributes (ignoring interceptors).
2300 // TODO(jkummerow): Deprecated, only used by Object.observe. 2301 // TODO(jkummerow): Deprecated, only used by Object.observe.
2301 int NumberOfOwnElements(PropertyFilter filter); 2302 int NumberOfOwnElements(PropertyFilter filter);
2302 // Returns the number of elements on this object filtering out elements 2303 // Returns the number of elements on this object filtering out elements
2303 // with the specified attributes (ignoring interceptors). 2304 // with the specified attributes (ignoring interceptors).
(...skipping 8613 matching lines...) Expand 10 before | Expand all | Expand 10 after
10917 } 10918 }
10918 return value; 10919 return value;
10919 } 10920 }
10920 }; 10921 };
10921 10922
10922 10923
10923 } // NOLINT, false-positive due to second-order macros. 10924 } // NOLINT, false-positive due to second-order macros.
10924 } // NOLINT, false-positive due to second-order macros. 10925 } // NOLINT, false-positive due to second-order macros.
10925 10926
10926 #endif // V8_OBJECTS_H_ 10927 #endif // V8_OBJECTS_H_
OLDNEW
« src/heap/mark-compact.cc ('K') | « src/heap/mark-compact.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698