LCOV - code coverage report
Current view: top level - test/cctest - test-transitions.h (source / functions) Hit Total Coverage
Test: app.info Lines: 3 3 100.0 %
Date: 2019-02-19 Functions: 0 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             : #ifndef V8_TEST_CCTEST_TEST_TRANSITIONS_H_
       6             : #define V8_TEST_CCTEST_TEST_TRANSITIONS_H_
       7             : 
       8             : #include "src/transitions.h"
       9             : 
      10             : namespace v8 {
      11             : namespace internal {
      12             : 
      13             : class TestTransitionsAccessor : public TransitionsAccessor {
      14             :  public:
      15             :   TestTransitionsAccessor(Isolate* isolate, Map map,
      16             :                           DisallowHeapAllocation* no_gc)
      17             :       : TransitionsAccessor(isolate, map, no_gc) {}
      18             :   TestTransitionsAccessor(Isolate* isolate, Handle<Map> map)
      19          30 :       : TransitionsAccessor(isolate, map) {}
      20             : 
      21             :   // Expose internals for tests.
      22           5 :   bool IsWeakRefEncoding() { return encoding() == kWeakRef; }
      23             : 
      24             :   bool IsFullTransitionArrayEncoding() {
      25          15 :     return encoding() == kFullTransitionArray;
      26             :   }
      27             : };
      28             : 
      29             : }  // namespace internal
      30             : }  // namespace v8
      31             : 
      32             : #endif  // V8_TEST_CCTEST_TEST_TRANSITIONS_H_

Generated by: LCOV version 1.10