LCOV - code coverage report
Current view: top level - src/objects - cell.h (source / functions) Hit Total Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2019-03-21 Functions: 1 1 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_H_
       6             : #define V8_OBJECTS_CELL_H_
       7             : 
       8             : #include "src/objects/heap-object.h"
       9             : #include "torque-generated/class-definitions-from-dsl.h"
      10             : 
      11             : // Has to be the last include (doesn't have include guards):
      12             : #include "src/objects/object-macros.h"
      13             : 
      14             : namespace v8 {
      15             : namespace internal {
      16             : 
      17             : class Cell : public HeapObject {
      18             :  public:
      19             :   // [value]: value of the cell.
      20             :   DECL_ACCESSORS(value, Object)
      21             : 
      22             :   DECL_CAST(Cell)
      23             : 
      24             :   static inline Cell FromValueAddress(Address value);
      25             : 
      26             :   inline Address ValueAddress() { return address() + kValueOffset; }
      27             : 
      28             :   // Dispatched behavior.
      29             :   DECL_PRINTER(Cell)
      30             :   DECL_VERIFIER(Cell)
      31             : 
      32             :   DEFINE_FIELD_OFFSET_CONSTANTS(HeapObject::kHeaderSize,
      33             :                                 TORQUE_GENERATED_CELL_FIELDS)
      34             : 
      35             :   typedef FixedBodyDescriptor<kValueOffset, kSize, kSize> BodyDescriptor;
      36             : 
      37         448 :   OBJECT_CONSTRUCTORS(Cell, HeapObject);
      38             : };
      39             : 
      40             : }  // namespace internal
      41             : }  // namespace v8
      42             : 
      43             : #include "src/objects/object-macros-undef.h"
      44             : 
      45             : #endif  // V8_OBJECTS_CELL_H_

Generated by: LCOV version 1.10