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

Side by Side Diff: src/store-buffer.cc

Issue 272433002: Merge counters and v8-counters (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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/heap-inl.h ('k') | src/v8-counters.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "store-buffer.h" 5 #include "store-buffer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "counters.h"
9 #include "v8.h" 10 #include "v8.h"
Michael Starzinger 2014/05/06 16:17:02 nit: The "v8.h" include file should go first.
10 #include "store-buffer-inl.h" 11 #include "store-buffer-inl.h"
11 #include "v8-counters.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 15
16 StoreBuffer::StoreBuffer(Heap* heap) 16 StoreBuffer::StoreBuffer(Heap* heap)
17 : heap_(heap), 17 : heap_(heap),
18 start_(NULL), 18 start_(NULL),
19 limit_(NULL), 19 limit_(NULL),
20 old_start_(NULL), 20 old_start_(NULL),
21 old_limit_(NULL), 21 old_limit_(NULL),
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 } 721 }
722 old_buffer_is_sorted_ = false; 722 old_buffer_is_sorted_ = false;
723 old_buffer_is_filtered_ = false; 723 old_buffer_is_filtered_ = false;
724 *old_top_++ = reinterpret_cast<Address>(int_addr << kPointerSizeLog2); 724 *old_top_++ = reinterpret_cast<Address>(int_addr << kPointerSizeLog2);
725 ASSERT(old_top_ <= old_limit_); 725 ASSERT(old_top_ <= old_limit_);
726 } 726 }
727 heap_->isolate()->counters()->store_buffer_compactions()->Increment(); 727 heap_->isolate()->counters()->store_buffer_compactions()->Increment();
728 } 728 }
729 729
730 } } // namespace v8::internal 730 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap-inl.h ('k') | src/v8-counters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698