LCOV - code coverage report
Current view: top level - src/objects - cell-inl.h (source / functions) Hit Total Coverage
Test: app.info Lines: 3 3 100.0 %
Date: 2019-01-20 Functions: 3 3 100.0 %

          Line data    Source code
       1             : // Copyright 2018 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_OBJECTS_CELL_INL_H_
       6             : #define V8_OBJECTS_CELL_INL_H_
       7             : 
       8             : #include "src/objects/cell.h"
       9             : 
      10             : #include "src/heap/heap-inl.h"
      11             : 
      12             : // Has to be the last include (doesn't have include guards):
      13             : #include "src/objects/object-macros.h"
      14             : 
      15             : namespace v8 {
      16             : namespace internal {
      17             : 
      18    45172158 : OBJECT_CONSTRUCTORS_IMPL(Cell, HeapObject)
      19             : 
      20    22586089 : CAST_ACCESSOR(Cell)
      21             : 
      22    95774471 : ACCESSORS(Cell, value, Object, kValueOffset)
      23             : 
      24             : Cell Cell::FromValueAddress(Address value) {
      25             :   return Cell::cast(HeapObject::FromAddress(value - kValueOffset));
      26             : }
      27             : 
      28             : }  // namespace internal
      29             : }  // namespace v8
      30             : 
      31             : #include "src/objects/object-macros-undef.h"
      32             : 
      33             : #endif  // V8_OBJECTS_CELL_INL_H_

Generated by: LCOV version 1.10