LCOV - code coverage report
Current view: top level - src/heap - store-buffer-inl.h (source / functions) Hit Total Coverage
Test: app.info Lines: 14 14 100.0 %
Date: 2019-04-17 Functions: 2 2 100.0 %

          Line data    Source code
       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
       3             : // found in the LICENSE file.
       4             : 
       5             : #ifndef V8_HEAP_STORE_BUFFER_INL_H_
       6             : #define V8_HEAP_STORE_BUFFER_INL_H_
       7             : 
       8             : #include "src/heap/store-buffer.h"
       9             : 
      10             : #include "src/heap/heap-inl.h"
      11             : 
      12             : namespace v8 {
      13             : namespace internal {
      14             : 
      15       11646 : void StoreBuffer::InsertDeletionIntoStoreBuffer(Address start, Address end) {
      16       11646 :   if (top_ + sizeof(Address) * 2 > limit_[current_]) {
      17          60 :     StoreBufferOverflow(heap_->isolate());
      18             :   }
      19       23292 :   *top_ = MarkDeletionAddress(start);
      20       11646 :   top_++;
      21       11646 :   *top_ = end;
      22       11646 :   top_++;
      23       11646 : }
      24             : 
      25   110620216 : void StoreBuffer::InsertIntoStoreBuffer(Address slot) {
      26   110620216 :   if (top_ + sizeof(Address) > limit_[current_]) {
      27       30096 :     StoreBufferOverflow(heap_->isolate());
      28             :   }
      29   110620216 :   *top_ = slot;
      30   110620216 :   top_++;
      31   110620216 : }
      32             : 
      33             : }  // namespace internal
      34             : }  // namespace v8
      35             : 
      36             : #endif  // V8_HEAP_STORE_BUFFER_INL_H_

Generated by: LCOV version 1.10