LCOV - code coverage report
Current view: top level - src/objects - property-cell-inl.h (source / functions) Hit Total Coverage
Test: app.info Lines: 9 9 100.0 %
Date: 2019-01-20 Functions: 10 10 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_PROPERTY_CELL_INL_H_
       6             : #define V8_OBJECTS_PROPERTY_CELL_INL_H_
       7             : 
       8             : #include "src/objects/property-cell.h"
       9             : 
      10             : #include "src/heap/heap-inl.h"
      11             : #include "src/objects/code.h"
      12             : 
      13             : // Has to be the last include (doesn't have include guards):
      14             : #include "src/objects/object-macros.h"
      15             : 
      16             : namespace v8 {
      17             : namespace internal {
      18             : 
      19   725286438 : OBJECT_CONSTRUCTORS_IMPL(PropertyCell, HeapObject)
      20             : 
      21   362643653 : CAST_ACCESSOR(PropertyCell)
      22    32653332 : ACCESSORS(PropertyCell, dependent_code, DependentCode, kDependentCodeOffset)
      23   309838318 : ACCESSORS(PropertyCell, name, Name, kNameOffset)
      24   368192162 : ACCESSORS(PropertyCell, value, Object, kValueOffset)
      25   786036857 : ACCESSORS(PropertyCell, property_details_raw, Object, kDetailsOffset)
      26             : 
      27   213174499 : PropertyDetails PropertyCell::property_details() const {
      28   426349002 :   return PropertyDetails(Smi::cast(property_details_raw()));
      29             : }
      30             : 
      31             : void PropertyCell::set_property_details(PropertyDetails details) {
      32    29302672 :   set_property_details_raw(details.AsSmi());
      33             : }
      34             : 
      35             : }  // namespace internal
      36             : }  // namespace v8
      37             : 
      38             : #include "src/objects/object-macros-undef.h"
      39             : 
      40             : #endif  // V8_OBJECTS_PROPERTY_CELL_INL_H_

Generated by: LCOV version 1.10