| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |