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

Side by Side Diff: src/profiler/heap-snapshot-generator.h

Issue 2189643004: Fix performance regression of heap snapshot generator that was (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments Created 4 years, 4 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_ 5 #ifndef V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_
6 #define V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_ 6 #define V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_
7 7
8 #include "include/v8-profiler.h" 8 #include "include/v8-profiler.h"
9 #include "src/base/platform/time.h" 9 #include "src/base/platform/time.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 void ExtractAllocationSiteReferences(int entry, AllocationSite* site); 389 void ExtractAllocationSiteReferences(int entry, AllocationSite* site);
390 void ExtractJSArrayBufferReferences(int entry, JSArrayBuffer* buffer); 390 void ExtractJSArrayBufferReferences(int entry, JSArrayBuffer* buffer);
391 void ExtractFixedArrayReferences(int entry, FixedArray* array); 391 void ExtractFixedArrayReferences(int entry, FixedArray* array);
392 void ExtractPropertyReferences(JSObject* js_obj, int entry); 392 void ExtractPropertyReferences(JSObject* js_obj, int entry);
393 void ExtractAccessorPairProperty(JSObject* js_obj, int entry, Name* key, 393 void ExtractAccessorPairProperty(JSObject* js_obj, int entry, Name* key,
394 Object* callback_obj, int field_offset = -1); 394 Object* callback_obj, int field_offset = -1);
395 void ExtractElementReferences(JSObject* js_obj, int entry); 395 void ExtractElementReferences(JSObject* js_obj, int entry);
396 void ExtractInternalReferences(JSObject* js_obj, int entry); 396 void ExtractInternalReferences(JSObject* js_obj, int entry);
397 397
398 bool IsEssentialObject(Object* object); 398 bool IsEssentialObject(Object* object);
399 bool IsEssentialHiddenReference(Object* parent, int field_offset);
400
399 void SetContextReference(HeapObject* parent_obj, 401 void SetContextReference(HeapObject* parent_obj,
400 int parent, 402 int parent,
401 String* reference_name, 403 String* reference_name,
402 Object* child, 404 Object* child,
403 int field_offset); 405 int field_offset);
404 void SetNativeBindReference(HeapObject* parent_obj, 406 void SetNativeBindReference(HeapObject* parent_obj,
405 int parent, 407 int parent,
406 const char* reference_name, 408 const char* reference_name,
407 Object* child); 409 Object* child);
408 void SetElementReference(HeapObject* parent_obj, 410 void SetElementReference(HeapObject* parent_obj,
409 int parent, 411 int parent,
410 int index, 412 int index,
411 Object* child); 413 Object* child);
412 void SetInternalReference(HeapObject* parent_obj, 414 void SetInternalReference(HeapObject* parent_obj,
413 int parent, 415 int parent,
414 const char* reference_name, 416 const char* reference_name,
415 Object* child, 417 Object* child,
416 int field_offset = -1); 418 int field_offset = -1);
417 void SetInternalReference(HeapObject* parent_obj, 419 void SetInternalReference(HeapObject* parent_obj,
418 int parent, 420 int parent,
419 int index, 421 int index,
420 Object* child, 422 Object* child,
421 int field_offset = -1); 423 int field_offset = -1);
422 void SetHiddenReference(HeapObject* parent_obj, 424 void SetHiddenReference(HeapObject* parent_obj, int parent, int index,
423 int parent, 425 Object* child, int field_offset);
424 int index,
425 Object* child);
426 void SetWeakReference(HeapObject* parent_obj, 426 void SetWeakReference(HeapObject* parent_obj,
427 int parent, 427 int parent,
428 const char* reference_name, 428 const char* reference_name,
429 Object* child_obj, 429 Object* child_obj,
430 int field_offset); 430 int field_offset);
431 void SetWeakReference(HeapObject* parent_obj, 431 void SetWeakReference(HeapObject* parent_obj,
432 int parent, 432 int parent,
433 int index, 433 int index,
434 Object* child_obj, 434 Object* child_obj,
435 int field_offset); 435 int field_offset);
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 friend class HeapSnapshotJSONSerializerIterator; 618 friend class HeapSnapshotJSONSerializerIterator;
619 619
620 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); 620 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer);
621 }; 621 };
622 622
623 623
624 } // namespace internal 624 } // namespace internal
625 } // namespace v8 625 } // namespace v8
626 626
627 #endif // V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_ 627 #endif // V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_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