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

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

Issue 460413002: Fix predictable mode to make time pass faster. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/d8.cc ('k') | test/benchmarks/benchmarks.status » ('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 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 return false; 953 return false;
954 #endif 954 #endif
955 #endif 955 #endif
956 } 956 }
957 957
958 // Number of "runtime allocations" done so far. 958 // Number of "runtime allocations" done so far.
959 uint32_t allocations_count() { return allocations_count_; } 959 uint32_t allocations_count() { return allocations_count_; }
960 960
961 // Returns deterministic "time" value in ms. Works only with 961 // Returns deterministic "time" value in ms. Works only with
962 // FLAG_verify_predictable. 962 // FLAG_verify_predictable.
963 double synthetic_time() { return allocations_count_ / 100.0; } 963 double synthetic_time() { return allocations_count_ / 2.0; }
964 964
965 // Print short heap statistics. 965 // Print short heap statistics.
966 void PrintShortHeapStatistics(); 966 void PrintShortHeapStatistics();
967 967
968 // Write barrier support for address[offset] = o. 968 // Write barrier support for address[offset] = o.
969 INLINE(void RecordWrite(Address address, int offset)); 969 INLINE(void RecordWrite(Address address, int offset));
970 970
971 // Write barrier support for address[start : start + len[ = o. 971 // Write barrier support for address[start : start + len[ = o.
972 INLINE(void RecordWrites(Address address, int start, int len)); 972 INLINE(void RecordWrites(Address address, int start, int len));
973 973
(...skipping 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after
2538 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2538 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2539 2539
2540 private: 2540 private:
2541 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2541 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2542 }; 2542 };
2543 #endif // DEBUG 2543 #endif // DEBUG
2544 } 2544 }
2545 } // namespace v8::internal 2545 } // namespace v8::internal
2546 2546
2547 #endif // V8_HEAP_HEAP_H_ 2547 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | test/benchmarks/benchmarks.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698