LCOV - code coverage report
Current view: top level - src - setup-isolate-full.cc (source / functions) Hit Total Coverage
Test: app.info Lines: 8 8 100.0 %
Date: 2017-04-26 Functions: 2 2 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/interpreter/setup-interpreter.h"
      10             : #include "src/isolate.h"
      11             : 
      12             : namespace v8 {
      13             : namespace internal {
      14             : 
      15       60620 : void SetupIsolateDelegate::SetupBuiltins(Isolate* isolate,
      16             :                                          bool create_heap_objects) {
      17       60620 :   if (create_heap_objects) {
      18           1 :     SetupBuiltinsInternal(isolate);
      19             :   } else {
      20             :     DCHECK(isolate->snapshot_available());
      21             :   }
      22       60620 : }
      23             : 
      24       60620 : void SetupIsolateDelegate::SetupInterpreter(
      25             :     interpreter::Interpreter* interpreter, bool create_heap_objects) {
      26       60620 :   if (create_heap_objects) {
      27           1 :     interpreter::SetupInterpreter::InstallBytecodeHandlers(interpreter);
      28             :   } else {
      29             :     DCHECK(interpreter->IsDispatchTableInitialized());
      30             :   }
      31       60620 : }
      32             : 
      33             : }  // namespace internal
      34             : }  // namespace v8

Generated by: LCOV version 1.10