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

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

Issue 9139051: Cosmetic changes ("set up" is a verb, "setup" is a noun). (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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/store-buffer.h ('k') | src/v8.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 // 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 store_buffer_rebuilding_enabled_(false), 48 store_buffer_rebuilding_enabled_(false),
49 callback_(NULL), 49 callback_(NULL),
50 may_move_store_buffer_entries_(true), 50 may_move_store_buffer_entries_(true),
51 virtual_memory_(NULL), 51 virtual_memory_(NULL),
52 hash_set_1_(NULL), 52 hash_set_1_(NULL),
53 hash_set_2_(NULL), 53 hash_set_2_(NULL),
54 hash_sets_are_empty_(true) { 54 hash_sets_are_empty_(true) {
55 } 55 }
56 56
57 57
58 void StoreBuffer::Setup() { 58 void StoreBuffer::SetUp() {
59 virtual_memory_ = new VirtualMemory(kStoreBufferSize * 3); 59 virtual_memory_ = new VirtualMemory(kStoreBufferSize * 3);
60 uintptr_t start_as_int = 60 uintptr_t start_as_int =
61 reinterpret_cast<uintptr_t>(virtual_memory_->address()); 61 reinterpret_cast<uintptr_t>(virtual_memory_->address());
62 start_ = 62 start_ =
63 reinterpret_cast<Address*>(RoundUp(start_as_int, kStoreBufferSize * 2)); 63 reinterpret_cast<Address*>(RoundUp(start_as_int, kStoreBufferSize * 2));
64 limit_ = start_ + (kStoreBufferSize / kPointerSize); 64 limit_ = start_ + (kStoreBufferSize / kPointerSize);
65 65
66 old_virtual_memory_ = 66 old_virtual_memory_ =
67 new VirtualMemory(kOldStoreBufferLength * kPointerSize); 67 new VirtualMemory(kOldStoreBufferLength * kPointerSize);
68 old_top_ = old_start_ = 68 old_top_ = old_start_ =
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 heap_->isolate()->counters()->store_buffer_compactions()->Increment(); 710 heap_->isolate()->counters()->store_buffer_compactions()->Increment();
711 CheckForFullBuffer(); 711 CheckForFullBuffer();
712 } 712 }
713 713
714 714
715 void StoreBuffer::CheckForFullBuffer() { 715 void StoreBuffer::CheckForFullBuffer() {
716 EnsureSpace(kStoreBufferSize * 2); 716 EnsureSpace(kStoreBufferSize * 2);
717 } 717 }
718 718
719 } } // namespace v8::internal 719 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/store-buffer.h ('k') | src/v8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698