| OLD | NEW |
| 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 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1289 // deadline_ins_ms is not reached. step_size_in_bytes can be 0 to compute | 1289 // deadline_ins_ms is not reached. step_size_in_bytes can be 0 to compute |
| 1290 // an estimate increment. Returns the remaining time that cannot be used | 1290 // an estimate increment. Returns the remaining time that cannot be used |
| 1291 // for incremental marking anymore because a single step would exceed the | 1291 // for incremental marking anymore because a single step would exceed the |
| 1292 // deadline. | 1292 // deadline. |
| 1293 double AdvanceIncrementalMarking( | 1293 double AdvanceIncrementalMarking( |
| 1294 intptr_t step_size_in_bytes, double deadline_in_ms, | 1294 intptr_t step_size_in_bytes, double deadline_in_ms, |
| 1295 IncrementalMarking::StepActions step_actions); | 1295 IncrementalMarking::StepActions step_actions); |
| 1296 | 1296 |
| 1297 void FinalizeIncrementalMarkingIfComplete(const char* comment); | 1297 void FinalizeIncrementalMarkingIfComplete(const char* comment); |
| 1298 | 1298 |
| 1299 bool TryFinalizeIdleIncrementalMarking(double idle_time_in_ms); |
| 1300 |
| 1299 IncrementalMarking* incremental_marking() { return &incremental_marking_; } | 1301 IncrementalMarking* incremental_marking() { return &incremental_marking_; } |
| 1300 | 1302 |
| 1301 // =========================================================================== | 1303 // =========================================================================== |
| 1302 // External string table API. ================================================ | 1304 // External string table API. ================================================ |
| 1303 // =========================================================================== | 1305 // =========================================================================== |
| 1304 | 1306 |
| 1305 // Registers an external string. | 1307 // Registers an external string. |
| 1306 inline void RegisterExternalString(String* string); | 1308 inline void RegisterExternalString(String* string); |
| 1307 | 1309 |
| 1308 // Finalizes an external string by deleting the associated external | 1310 // Finalizes an external string by deleting the associated external |
| (...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2746 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2748 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2747 | 2749 |
| 2748 private: | 2750 private: |
| 2749 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2751 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2750 }; | 2752 }; |
| 2751 #endif // DEBUG | 2753 #endif // DEBUG |
| 2752 } | 2754 } |
| 2753 } // namespace v8::internal | 2755 } // namespace v8::internal |
| 2754 | 2756 |
| 2755 #endif // V8_HEAP_HEAP_H_ | 2757 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |