| 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 Heap* heap_; | 345 Heap* heap_; |
| 346 | 346 |
| 347 DISALLOW_COPY_AND_ASSIGN(ExternalStringTable); | 347 DISALLOW_COPY_AND_ASSIGN(ExternalStringTable); |
| 348 }; | 348 }; |
| 349 | 349 |
| 350 | 350 |
| 351 class Heap { | 351 class Heap { |
| 352 public: | 352 public: |
| 353 // Configure heap size before setup. Return false if the heap has been | 353 // Configure heap size before setup. Return false if the heap has been |
| 354 // setup already. | 354 // setup already. |
| 355 bool ConfigureHeap(intptr_t max_semispace_size, | 355 bool ConfigureHeap(int max_semispace_size, |
| 356 intptr_t max_old_gen_size, | 356 int max_old_gen_size, |
| 357 intptr_t max_executable_size); | 357 int max_executable_size); |
| 358 bool ConfigureHeapDefault(); | 358 bool ConfigureHeapDefault(); |
| 359 | 359 |
| 360 // Initializes the global object heap. If create_heap_objects is true, | 360 // Initializes the global object heap. If create_heap_objects is true, |
| 361 // also creates the basic non-mutable objects. | 361 // also creates the basic non-mutable objects. |
| 362 // Returns whether it succeeded. | 362 // Returns whether it succeeded. |
| 363 bool Setup(bool create_heap_objects); | 363 bool Setup(bool create_heap_objects); |
| 364 | 364 |
| 365 // Destroys all memory allocated by the heap. | 365 // Destroys all memory allocated by the heap. |
| 366 void TearDown(); | 366 void TearDown(); |
| 367 | 367 |
| (...skipping 1971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2339 | 2339 |
| 2340 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2340 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2341 }; | 2341 }; |
| 2342 #endif // DEBUG || LIVE_OBJECT_LIST | 2342 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2343 | 2343 |
| 2344 } } // namespace v8::internal | 2344 } } // namespace v8::internal |
| 2345 | 2345 |
| 2346 #undef HEAP | 2346 #undef HEAP |
| 2347 | 2347 |
| 2348 #endif // V8_HEAP_H_ | 2348 #endif // V8_HEAP_H_ |
| OLD | NEW |