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 2171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2182 allocator_zone_start_allocation_size_ = | 2182 allocator_zone_start_allocation_size_ = |
2183 allocator->zone()->allocation_size(); | 2183 allocator->zone()->allocation_size(); |
2184 } | 2184 } |
2185 } | 2185 } |
2186 | 2186 |
2187 | 2187 |
2188 LAllocatorPhase::~LAllocatorPhase() { | 2188 LAllocatorPhase::~LAllocatorPhase() { |
2189 if (FLAG_hydrogen_stats) { | 2189 if (FLAG_hydrogen_stats) { |
2190 unsigned size = allocator_->zone()->allocation_size() - | 2190 unsigned size = allocator_->zone()->allocation_size() - |
2191 allocator_zone_start_allocation_size_; | 2191 allocator_zone_start_allocation_size_; |
2192 isolate()->GetHStatistics()->SaveTiming(name(), 0, size); | 2192 isolate()->GetHStatistics()->SaveTiming(name(), TimeDelta(), size); |
2193 } | 2193 } |
2194 | 2194 |
2195 if (ShouldProduceTraceOutput()) { | 2195 if (ShouldProduceTraceOutput()) { |
2196 isolate()->GetHTracer()->TraceLithium(name(), allocator_->chunk()); | 2196 isolate()->GetHTracer()->TraceLithium(name(), allocator_->chunk()); |
2197 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); | 2197 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); |
2198 } | 2198 } |
2199 | 2199 |
2200 #ifdef DEBUG | 2200 #ifdef DEBUG |
2201 if (allocator_ != NULL) allocator_->Verify(); | 2201 if (allocator_ != NULL) allocator_->Verify(); |
2202 #endif | 2202 #endif |
2203 } | 2203 } |
2204 | 2204 |
2205 | 2205 |
2206 } } // namespace v8::internal | 2206 } } // namespace v8::internal |
OLD | NEW |