OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 5918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5929 if (uncommit) UncommitFromSpace(); | 5929 if (uncommit) UncommitFromSpace(); |
5930 | 5930 |
5931 return finished; | 5931 return finished; |
5932 } | 5932 } |
5933 | 5933 |
5934 | 5934 |
5935 #ifdef DEBUG | 5935 #ifdef DEBUG |
5936 | 5936 |
5937 void Heap::Print() { | 5937 void Heap::Print() { |
5938 if (!HasBeenSetUp()) return; | 5938 if (!HasBeenSetUp()) return; |
5939 isolate()->PrintStack(); | 5939 isolate()->PrintStack(stdout); |
5940 AllSpaces spaces(this); | 5940 AllSpaces spaces(this); |
5941 for (Space* space = spaces.next(); space != NULL; space = spaces.next()) { | 5941 for (Space* space = spaces.next(); space != NULL; space = spaces.next()) { |
5942 space->Print(); | 5942 space->Print(); |
5943 } | 5943 } |
5944 } | 5944 } |
5945 | 5945 |
5946 | 5946 |
5947 void Heap::ReportCodeStatistics(const char* title) { | 5947 void Heap::ReportCodeStatistics(const char* title) { |
5948 PrintF(">>>>>> Code Stats (%s) >>>>>>\n", title); | 5948 PrintF(">>>>>> Code Stats (%s) >>>>>>\n", title); |
5949 PagedSpace::ResetCodeStatistics(); | 5949 PagedSpace::ResetCodeStatistics(); |
(...skipping 1996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7946 if (FLAG_parallel_recompilation) { | 7946 if (FLAG_parallel_recompilation) { |
7947 heap_->relocation_mutex_->Lock(); | 7947 heap_->relocation_mutex_->Lock(); |
7948 #ifdef DEBUG | 7948 #ifdef DEBUG |
7949 heap_->relocation_mutex_locked_by_optimizer_thread_ = | 7949 heap_->relocation_mutex_locked_by_optimizer_thread_ = |
7950 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); | 7950 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); |
7951 #endif // DEBUG | 7951 #endif // DEBUG |
7952 } | 7952 } |
7953 } | 7953 } |
7954 | 7954 |
7955 } } // namespace v8::internal | 7955 } } // namespace v8::internal |
OLD | NEW |