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

Side by Side Diff: src/lithium-allocator.cc

Issue 23469013: Reland "Add Chromium-style TimeDelta, Time and TimeTicks classes, and a new ElapsedTimer class." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 7 years, 3 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 | « src/hydrogen.cc ('k') | src/log.h » ('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 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
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
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698