| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 | 353 |
| 354 DISALLOW_COPY_AND_ASSIGN(ExternalStringTable); | 354 DISALLOW_COPY_AND_ASSIGN(ExternalStringTable); |
| 355 }; | 355 }; |
| 356 | 356 |
| 357 | 357 |
| 358 class Heap { | 358 class Heap { |
| 359 public: | 359 public: |
| 360 // Configure heap size before setup. Return false if the heap has been | 360 // Configure heap size before setup. Return false if the heap has been |
| 361 // setup already. | 361 // setup already. |
| 362 bool ConfigureHeap(int max_semispace_size, | 362 bool ConfigureHeap(int max_semispace_size, |
| 363 int max_old_gen_size, | 363 intptr_t max_old_gen_size, |
| 364 int max_executable_size); | 364 intptr_t max_executable_size); |
| 365 bool ConfigureHeapDefault(); | 365 bool ConfigureHeapDefault(); |
| 366 | 366 |
| 367 // Initializes the global object heap. If create_heap_objects is true, | 367 // Initializes the global object heap. If create_heap_objects is true, |
| 368 // also creates the basic non-mutable objects. | 368 // also creates the basic non-mutable objects. |
| 369 // Returns whether it succeeded. | 369 // Returns whether it succeeded. |
| 370 bool Setup(bool create_heap_objects); | 370 bool Setup(bool create_heap_objects); |
| 371 | 371 |
| 372 // Destroys all memory allocated by the heap. | 372 // Destroys all memory allocated by the heap. |
| 373 void TearDown(); | 373 void TearDown(); |
| 374 | 374 |
| (...skipping 1817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2192 // Amount of time spent in mutator that is time elapsed between end of the | 2192 // Amount of time spent in mutator that is time elapsed between end of the |
| 2193 // previous collection and the beginning of the current one. | 2193 // previous collection and the beginning of the current one. |
| 2194 double spent_in_mutator_; | 2194 double spent_in_mutator_; |
| 2195 | 2195 |
| 2196 // Size of objects promoted during the current collection. | 2196 // Size of objects promoted during the current collection. |
| 2197 intptr_t promoted_objects_size_; | 2197 intptr_t promoted_objects_size_; |
| 2198 | 2198 |
| 2199 // Incremental marking steps counters. | 2199 // Incremental marking steps counters. |
| 2200 int steps_count_; | 2200 int steps_count_; |
| 2201 double steps_took_; | 2201 double steps_took_; |
| 2202 double longest_step_; |
| 2202 int steps_count_since_last_gc_; | 2203 int steps_count_since_last_gc_; |
| 2203 double steps_took_since_last_gc_; | 2204 double steps_took_since_last_gc_; |
| 2204 | 2205 |
| 2205 Heap* heap_; | 2206 Heap* heap_; |
| 2206 }; | 2207 }; |
| 2207 | 2208 |
| 2208 | 2209 |
| 2209 class TranscendentalCache { | 2210 class TranscendentalCache { |
| 2210 public: | 2211 public: |
| 2211 enum Type {ACOS, ASIN, ATAN, COS, EXP, LOG, SIN, TAN, kNumberOfCaches}; | 2212 enum Type {ACOS, ASIN, ATAN, COS, EXP, LOG, SIN, TAN, kNumberOfCaches}; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2385 | 2386 |
| 2386 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2387 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2387 }; | 2388 }; |
| 2388 #endif // DEBUG || LIVE_OBJECT_LIST | 2389 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2389 | 2390 |
| 2390 } } // namespace v8::internal | 2391 } } // namespace v8::internal |
| 2391 | 2392 |
| 2392 #undef HEAP | 2393 #undef HEAP |
| 2393 | 2394 |
| 2394 #endif // V8_HEAP_H_ | 2395 #endif // V8_HEAP_H_ |
| OLD | NEW |