LCOV - code coverage report
Current view: top level - js/src/jit - C1Spewer.h (source / functions) Hit Total Coverage
Test: output.info Lines: 3 3 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
       2             :  * vim: set ts=8 sts=4 et sw=4 tw=99:
       3             :  * This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #ifndef jit_C1Spewer_h
       8             : #define jit_C1Spewer_h
       9             : 
      10             : #ifdef JS_JITSPEW
      11             : 
      12             : #include "NamespaceImports.h"
      13             : 
      14             : #include "js/RootingAPI.h"
      15             : #include "vm/Printer.h"
      16             : 
      17             : namespace js {
      18             : namespace jit {
      19             : 
      20             : class BacktrackingAllocator;
      21             : class MBasicBlock;
      22             : class MIRGraph;
      23             : class LNode;
      24             : 
      25             : class C1Spewer
      26             : {
      27             :     MIRGraph* graph;
      28             :     GenericPrinter& out_;
      29             : 
      30             :   public:
      31         179 :     explicit C1Spewer(GenericPrinter& out)
      32         179 :       : graph(nullptr), out_(out)
      33         179 :     { }
      34             : 
      35             :     void beginFunction(MIRGraph* graph, JSScript* script);
      36             :     void spewPass(const char* pass);
      37             :     void spewRanges(const char* pass, BacktrackingAllocator* regalloc);
      38             :     void endFunction();
      39             : 
      40             :   private:
      41             :     void spewPass(GenericPrinter& out, MBasicBlock* block);
      42             :     void spewRanges(GenericPrinter& out, BacktrackingAllocator* regalloc, LNode* ins);
      43             :     void spewRanges(GenericPrinter& out, MBasicBlock* block, BacktrackingAllocator* regalloc);
      44             : };
      45             : 
      46             : } // namespace jit
      47             : } // namespace js
      48             : 
      49             : #endif /* JS_JITSPEW */
      50             : 
      51             : #endif /* jit_C1Spewer_h */

Generated by: LCOV version 1.13