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

Side by Side Diff: src/heap/heap.h

Issue 851073002: Fix remaining issues in the custom snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix heap snapshot test expectation Created 5 years, 11 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 | « src/factory.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 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_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after
1479 // the provided data as the relocation information. 1479 // the provided data as the relocation information.
1480 MUST_USE_RESULT AllocationResult 1480 MUST_USE_RESULT AllocationResult
1481 CopyCode(Code* code, Vector<byte> reloc_info); 1481 CopyCode(Code* code, Vector<byte> reloc_info);
1482 1482
1483 MUST_USE_RESULT AllocationResult CopyCode(Code* code); 1483 MUST_USE_RESULT AllocationResult CopyCode(Code* code);
1484 1484
1485 // Allocates a fixed array initialized with undefined values 1485 // Allocates a fixed array initialized with undefined values
1486 MUST_USE_RESULT AllocationResult 1486 MUST_USE_RESULT AllocationResult
1487 AllocateFixedArray(int length, PretenureFlag pretenure = NOT_TENURED); 1487 AllocateFixedArray(int length, PretenureFlag pretenure = NOT_TENURED);
1488 1488
1489 static const int kInitialStringTableSize = 2048;
1490 static const int kInitialEvalCacheSize = 64;
1491 static const int kInitialNumberStringCacheSize = 256;
1492
1489 private: 1493 private:
1490 Heap(); 1494 Heap();
1491 1495
1492 // The amount of external memory registered through the API kept alive 1496 // The amount of external memory registered through the API kept alive
1493 // by global handles 1497 // by global handles
1494 int64_t amount_of_external_allocated_memory_; 1498 int64_t amount_of_external_allocated_memory_;
1495 1499
1496 // Caches the amount of external memory registered at the last global gc. 1500 // Caches the amount of external memory registered at the last global gc.
1497 int64_t amount_of_external_allocated_memory_at_last_global_gc_; 1501 int64_t amount_of_external_allocated_memory_at_last_global_gc_;
1498 1502
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
2036 } 2040 }
2037 2041
2038 Object** weak_object_to_code_table_address() { 2042 Object** weak_object_to_code_table_address() {
2039 return &weak_object_to_code_table_; 2043 return &weak_object_to_code_table_;
2040 } 2044 }
2041 2045
2042 inline void UpdateAllocationsHash(HeapObject* object); 2046 inline void UpdateAllocationsHash(HeapObject* object);
2043 inline void UpdateAllocationsHash(uint32_t value); 2047 inline void UpdateAllocationsHash(uint32_t value);
2044 inline void PrintAlloctionsHash(); 2048 inline void PrintAlloctionsHash();
2045 2049
2046 static const int kInitialStringTableSize = 2048;
2047 static const int kInitialEvalCacheSize = 64;
2048 static const int kInitialNumberStringCacheSize = 256;
2049
2050 // Object counts and used memory by InstanceType 2050 // Object counts and used memory by InstanceType
2051 size_t object_counts_[OBJECT_STATS_COUNT]; 2051 size_t object_counts_[OBJECT_STATS_COUNT];
2052 size_t object_counts_last_time_[OBJECT_STATS_COUNT]; 2052 size_t object_counts_last_time_[OBJECT_STATS_COUNT];
2053 size_t object_sizes_[OBJECT_STATS_COUNT]; 2053 size_t object_sizes_[OBJECT_STATS_COUNT];
2054 size_t object_sizes_last_time_[OBJECT_STATS_COUNT]; 2054 size_t object_sizes_last_time_[OBJECT_STATS_COUNT];
2055 2055
2056 // Maximum GC pause. 2056 // Maximum GC pause.
2057 double max_gc_pause_; 2057 double max_gc_pause_;
2058 2058
2059 // Total time spent in GC. 2059 // Total time spent in GC.
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
2596 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2596 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2597 2597
2598 private: 2598 private:
2599 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2599 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2600 }; 2600 };
2601 #endif // DEBUG 2601 #endif // DEBUG
2602 } 2602 }
2603 } // namespace v8::internal 2603 } // namespace v8::internal
2604 2604
2605 #endif // V8_HEAP_HEAP_H_ 2605 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698