LCOV - code coverage report
Current view: top level - src - visitors.cc (source / functions) Hit Total Coverage
Test: app.info Lines: 8 9 88.9 %
Date: 2019-04-17 Functions: 3 3 100.0 %

          Line data    Source code
       1             : // Copyright 2017 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             : #include "src/visitors.h"
       6             : 
       7             : #include "src/reloc-info.h"
       8             : 
       9             : namespace v8 {
      10             : namespace internal {
      11             : 
      12        9552 : const char* RootVisitor::RootName(Root root) {
      13        9552 :   switch (root) {
      14             : #define ROOT_CASE(root_id, description) \
      15             :   case Root::root_id:                   \
      16             :     return description;
      17         398 :     ROOT_ID_LIST(ROOT_CASE)
      18             : #undef ROOT_CASE
      19             :     case Root::kNumberOfRoots:
      20             :       break;
      21             :   }
      22           0 :   UNREACHABLE();
      23             :   return nullptr;
      24             : }
      25             : 
      26   118560066 : void ObjectVisitor::VisitRelocInfo(RelocIterator* it) {
      27   375278367 :   for (; !it->done(); it->next()) {
      28   129547953 :     it->rinfo()->Visit(this);
      29             :   }
      30   116869888 : }
      31             : 
      32             : }  // namespace internal
      33      122004 : }  // namespace v8

Generated by: LCOV version 1.10