LCOV - code coverage report
Current view: top level - src/compiler - osr.cc (source / functions) Hit Total Coverage
Test: app.info Lines: 5 5 100.0 %
Date: 2017-10-20 Functions: 2 2 100.0 %

          Line data    Source code
       1             : // Copyright 2014 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/compiler/osr.h"
       6             : 
       7             : #include "src/compilation-info.h"
       8             : #include "src/compiler/frame.h"
       9             : #include "src/objects-inl.h"
      10             : #include "src/objects.h"
      11             : #include "src/objects/shared-function-info.h"
      12             : 
      13             : namespace v8 {
      14             : namespace internal {
      15             : namespace compiler {
      16             : 
      17        5809 : OsrHelper::OsrHelper(CompilationInfo* info)
      18             :     : parameter_count_(
      19             :           info->shared_info()->bytecode_array()->parameter_count()),
      20             :       stack_slot_count_(
      21             :           InterpreterFrameConstants::RegisterStackSlotCount(
      22        5809 :               info->shared_info()->bytecode_array()->register_count()) +
      23       11618 :           InterpreterFrameConstants::kExtraSlotCount) {}
      24             : 
      25        5809 : void OsrHelper::SetupFrame(Frame* frame) {
      26             :   // The optimized frame will subsume the unoptimized frame. Do so by reserving
      27             :   // the first spill slots.
      28             :   frame->ReserveSpillSlots(UnoptimizedFrameSlots());
      29        5809 : }
      30             : 
      31             : }  // namespace compiler
      32             : }  // namespace internal
      33             : }  // namespace v8

Generated by: LCOV version 1.10