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

Side by Side Diff: src/heap.h

Issue 7528022: Fix the --max-old-space-size flag so it can be used on 64 bit for (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 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 | « no previous file | src/heap.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 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
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698