LCOV - code coverage report
Current view: top level - src - setup-isolate-deserialize.cc (source / functions) Hit Total Coverage
Test: app.info Lines: 7 10 70.0 %
Date: 2017-10-20 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/setup-isolate.h"
       6             : 
       7             : #include "src/base/logging.h"
       8             : #include "src/interpreter/interpreter.h"
       9             : #include "src/isolate.h"
      10             : #include "src/ostreams.h"
      11             : 
      12             : namespace v8 {
      13             : namespace internal {
      14             : 
      15       54843 : void SetupIsolateDelegate::SetupBuiltins(Isolate* isolate) {
      16             :   DCHECK(!create_heap_objects_);
      17             :   // No actual work to be done; builtins will be deserialized from the snapshot.
      18       54843 : }
      19             : 
      20       54843 : void SetupIsolateDelegate::SetupInterpreter(
      21             :     interpreter::Interpreter* interpreter) {
      22             : #if defined(V8_USE_SNAPSHOT) && !defined(V8_USE_SNAPSHOT_WITH_UNWINDING_INFO)
      23       54843 :   if (FLAG_perf_prof_unwinding_info) {
      24           0 :     OFStream os(stdout);
      25             :     os << "Warning: The --perf-prof-unwinding-info flag can be passed at "
      26           0 :           "mksnapshot time to get better results."
      27           0 :        << std::endl;
      28             :   }
      29             : #endif
      30             :   DCHECK(interpreter->IsDispatchTableInitialized());
      31       54843 : }
      32             : 
      33       54843 : bool SetupIsolateDelegate::SetupHeap(Heap* heap) {
      34             :   DCHECK(!create_heap_objects_);
      35             :   // No actual work to be done; heap will be deserialized from the snapshot.
      36       54843 :   return true;
      37             : }
      38             : 
      39             : }  // namespace internal
      40             : }  // namespace v8

Generated by: LCOV version 1.10