| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 15 matching lines...) Expand all Loading... |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #include "v8.h" | 28 #include "v8.h" |
| 29 | 29 |
| 30 #include "macro-assembler.h" | 30 #include "macro-assembler.h" |
| 31 #include "mark-compact.h" | 31 #include "mark-compact.h" |
| 32 #include "platform.h" | 32 #include "platform.h" |
| 33 | 33 |
| 34 namespace v8 { namespace internal { | 34 namespace v8 { namespace internal { |
| 35 | 35 |
| 36 #ifdef DEBUG | |
| 37 DECLARE_bool(heap_stats); | |
| 38 DEFINE_bool(collect_heap_spill_statistics, false, | |
| 39 "report heap spill statistics along with heap_stats " | |
| 40 "(requires heap_stats)"); | |
| 41 #endif | |
| 42 | |
| 43 #ifdef ENABLE_LOGGING_AND_PROFILING | |
| 44 DECLARE_bool(log_gc); | |
| 45 #endif | |
| 46 | |
| 47 // For contiguous spaces, top should be in the space (or at the end) and limit | 36 // For contiguous spaces, top should be in the space (or at the end) and limit |
| 48 // should be the end of the space. | 37 // should be the end of the space. |
| 49 #define ASSERT_SEMISPACE_ALLOCATION_INFO(info, space) \ | 38 #define ASSERT_SEMISPACE_ALLOCATION_INFO(info, space) \ |
| 50 ASSERT((space)->low() <= (info).top \ | 39 ASSERT((space)->low() <= (info).top \ |
| 51 && (info).top <= (space)->high() \ | 40 && (info).top <= (space)->high() \ |
| 52 && (info).limit == (space)->high()) | 41 && (info).limit == (space)->high()) |
| 53 | 42 |
| 54 | 43 |
| 55 // ---------------------------------------------------------------------------- | 44 // ---------------------------------------------------------------------------- |
| 56 // HeapObjectIterator | 45 // HeapObjectIterator |
| (...skipping 2479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2536 reinterpret_cast<Object**>(object->address() | 2525 reinterpret_cast<Object**>(object->address() |
| 2537 + Page::kObjectAreaSize), | 2526 + Page::kObjectAreaSize), |
| 2538 allocation_top); | 2527 allocation_top); |
| 2539 PrintF("\n"); | 2528 PrintF("\n"); |
| 2540 } | 2529 } |
| 2541 } | 2530 } |
| 2542 } | 2531 } |
| 2543 #endif // DEBUG | 2532 #endif // DEBUG |
| 2544 | 2533 |
| 2545 } } // namespace v8::internal | 2534 } } // namespace v8::internal |
| OLD | NEW |