LCOV - code coverage report
Current view: top level - out/Release/gen/torque-generated - builtins-arguments-from-dsl-gen.cc (source / functions) Hit Total Coverage
Test: app.info Lines: 114 114 100.0 %
Date: 2019-03-21 Functions: 3 3 100.0 %

          Line data    Source code
       1             : #include "src/builtins/builtins-utils-gen.h"
       2             : #include "src/builtins/builtins.h"
       3             : #include "src/code-factory.h"
       4             : #include "src/elements-kind.h"
       5             : #include "src/heap/factory-inl.h"
       6             : #include "src/objects.h"
       7             : #include "src/objects/arguments.h"
       8             : #include "src/objects/bigint.h"
       9             : #include "src/objects/js-generator.h"
      10             : #include "src/objects/js-promise.h"
      11             : #include "src/objects/js-regexp-string-iterator.h"
      12             : #include "src/objects/module.h"
      13             : #include "src/objects/stack-frame-info.h"
      14             : #include "src/builtins/builtins-array-gen.h"
      15             : #include "src/builtins/builtins-collections-gen.h"
      16             : #include "src/builtins/builtins-data-view-gen.h"
      17             : #include "src/builtins/builtins-iterator-gen.h"
      18             : #include "src/builtins/builtins-proxy-gen.h"
      19             : #include "src/builtins/builtins-regexp-gen.h"
      20             : #include "src/builtins/builtins-typed-array-gen.h"
      21             : #include "src/builtins/builtins-constructor-gen.h"
      22             : #include "src/builtins/builtins-typed-array-gen.h"
      23             : #include "src/builtins/builtins-typed-array-gen.h"
      24             : #include "src/builtins/builtins-typed-array-gen.h"
      25             : #include "src/builtins/builtins-typed-array-gen.h"
      26             : #include "src/builtins/builtins-typed-array-gen.h"
      27             : #include "src/builtins/builtins-typed-array-gen.h"
      28             : #include "src/builtins/builtins-typed-array-gen.h"
      29             : #include "src/builtins/builtins-typed-array-gen.h"
      30             : #include "torque-generated/builtins-base-from-dsl-gen.h"
      31             : #include "torque-generated/builtins-growable-fixed-array-from-dsl-gen.h"
      32             : #include "torque-generated/builtins-arguments-from-dsl-gen.h"
      33             : #include "torque-generated/builtins-array-from-dsl-gen.h"
      34             : #include "torque-generated/builtins-array-copywithin-from-dsl-gen.h"
      35             : #include "torque-generated/builtins-array-filter-from-dsl-gen.h"
      36             : #include "torque-generated/builtins-array-find-from-dsl-gen.h"
      37             : #include "torque-generated/builtins-array-findindex-from-dsl-gen.h"
      38             : #include "torque-generated/builtins-array-foreach-from-dsl-gen.h"
      39             : #include "torque-generated/builtins-array-join-from-dsl-gen.h"
      40             : #include "torque-generated/builtins-array-lastindexof-from-dsl-gen.h"
      41             : #include "torque-generated/builtins-array-of-from-dsl-gen.h"
      42             : #include "torque-generated/builtins-array-map-from-dsl-gen.h"
      43             : #include "torque-generated/builtins-array-reverse-from-dsl-gen.h"
      44             : #include "torque-generated/builtins-array-shift-from-dsl-gen.h"
      45             : #include "torque-generated/builtins-array-slice-from-dsl-gen.h"
      46             : #include "torque-generated/builtins-array-splice-from-dsl-gen.h"
      47             : #include "torque-generated/builtins-array-unshift-from-dsl-gen.h"
      48             : #include "torque-generated/builtins-collections-from-dsl-gen.h"
      49             : #include "torque-generated/builtins-data-view-from-dsl-gen.h"
      50             : #include "torque-generated/builtins-extras-utils-from-dsl-gen.h"
      51             : #include "torque-generated/builtins-iterator-from-dsl-gen.h"
      52             : #include "torque-generated/builtins-object-from-dsl-gen.h"
      53             : #include "torque-generated/builtins-proxy-from-dsl-gen.h"
      54             : #include "torque-generated/builtins-string-from-dsl-gen.h"
      55             : #include "torque-generated/builtins-string-html-from-dsl-gen.h"
      56             : #include "torque-generated/builtins-string-repeat-from-dsl-gen.h"
      57             : #include "torque-generated/builtins-typed-array-from-dsl-gen.h"
      58             : #include "torque-generated/builtins-typed-array-createtypedarray-from-dsl-gen.h"
      59             : #include "torque-generated/builtins-typed-array-every-from-dsl-gen.h"
      60             : #include "torque-generated/builtins-typed-array-filter-from-dsl-gen.h"
      61             : #include "torque-generated/builtins-typed-array-find-from-dsl-gen.h"
      62             : #include "torque-generated/builtins-typed-array-findindex-from-dsl-gen.h"
      63             : #include "torque-generated/builtins-typed-array-foreach-from-dsl-gen.h"
      64             : #include "torque-generated/builtins-typed-array-reduce-from-dsl-gen.h"
      65             : #include "torque-generated/builtins-typed-array-reduceright-from-dsl-gen.h"
      66             : #include "torque-generated/builtins-typed-array-slice-from-dsl-gen.h"
      67             : #include "torque-generated/builtins-typed-array-some-from-dsl-gen.h"
      68             : #include "torque-generated/builtins-typed-array-subarray-from-dsl-gen.h"
      69             : #include "torque-generated/builtins-test-from-dsl-gen.h"
      70             : 
      71             : namespace v8 {
      72             : namespace internal {
      73             : 
      74         168 : ArgumentsBuiltinsFromDSLAssembler::ArgumentsInfo ArgumentsBuiltinsFromDSLAssembler::GetArgumentsFrameAndCount(compiler::TNode<Context> p_context, compiler::TNode<JSFunction> p_f) {
      75         336 :   compiler::CodeAssemblerParameterizedLabel<Context, JSFunction> block0(&ca_, compiler::CodeAssemblerLabel::kNonDeferred);
      76         336 :   compiler::CodeAssemblerParameterizedLabel<Context, JSFunction, RawPtrT, SharedFunctionInfo, BInt, BInt, RawPtrT> block5(&ca_, compiler::CodeAssemblerLabel::kNonDeferred);
      77         336 :   compiler::CodeAssemblerParameterizedLabel<Context, JSFunction, RawPtrT, SharedFunctionInfo, BInt, BInt, RawPtrT, RawPtrT> block4(&ca_, compiler::CodeAssemblerLabel::kNonDeferred);
      78         336 :   compiler::CodeAssemblerParameterizedLabel<Context, JSFunction, RawPtrT, SharedFunctionInfo, BInt, BInt> block3(&ca_, compiler::CodeAssemblerLabel::kNonDeferred);
      79         336 :   compiler::CodeAssemblerParameterizedLabel<Context, JSFunction, RawPtrT, SharedFunctionInfo, BInt, BInt, RawPtrT> block2(&ca_, compiler::CodeAssemblerLabel::kNonDeferred);
      80         336 :   compiler::CodeAssemblerParameterizedLabel<Context, JSFunction, RawPtrT, BInt, BInt> block1(&ca_, compiler::CodeAssemblerLabel::kNonDeferred);
      81         336 :   compiler::CodeAssemblerParameterizedLabel<Context, JSFunction, RawPtrT, BInt, BInt> block6(&ca_, compiler::CodeAssemblerLabel::kNonDeferred);
      82         168 :     ca_.Goto(&block0, p_context, p_f);
      83             : 
      84         168 :   if (block0.is_used()) {
      85         168 :     compiler::TNode<Context> tmp0;
      86         168 :     compiler::TNode<JSFunction> tmp1;
      87         168 :     ca_.Bind(&block0, &tmp0, &tmp1);
      88         168 :     ca_.SetSourcePosition("../../src/builtins/arguments.tq", 26);
      89         168 :     compiler::TNode<RawPtrT> tmp2;
      90         168 :     USE(tmp2);
      91         168 :     tmp2 = ca_.UncheckedCast<RawPtrT>(CodeStubAssembler(state_).LoadParentFramePointer());
      92         168 :     ca_.SetSourcePosition("../../src/builtins/arguments.tq", 29);
      93         168 :     compiler::TNode<SharedFunctionInfo> tmp3;
      94         168 :     USE(tmp3);
      95         168 :     tmp3 = ca_.UncheckedCast<SharedFunctionInfo>(BaseBuiltinsFromDSLAssembler(state_).LoadJSFunctionSharedFunctionInfo(compiler::TNode<JSFunction>{tmp1}));
      96         168 :     ca_.SetSourcePosition("../../src/builtins/arguments.tq", 31);
      97         168 :     compiler::TNode<Uint32T> tmp4;
      98         168 :     USE(tmp4);
      99         168 :     tmp4 = ca_.UncheckedCast<Uint32T>(BaseBuiltinsFromDSLAssembler(state_).LoadSharedFunctionInfoFormalParameterCount(compiler::TNode<SharedFunctionInfo>{tmp3}));
     100         168 :     compiler::TNode<Int32T> tmp5;
     101         168 :     USE(tmp5);
     102         168 :     tmp5 = ca_.UncheckedCast<Int32T>(BaseBuiltinsFromDSLAssembler(state_).Convert7ATint328ATuint16(compiler::TNode<Uint32T>{tmp4}));
     103         168 :     compiler::TNode<BInt> tmp6;
     104         168 :     USE(tmp6);
     105         168 :     tmp6 = ca_.UncheckedCast<BInt>(BaseBuiltinsFromDSLAssembler(state_).Convert6ATbint7ATint32(compiler::TNode<Int32T>{tmp5}));
     106         168 :     ca_.SetSourcePosition("../../src/builtins/arguments.tq", 30);
     107         168 :     ca_.SetSourcePosition("../../src/builtins/arguments.tq", 32);
     108         168 :     ca_.SetSourcePosition("../../src/builtins/arguments.tq", 35);
     109         168 :     compiler::TNode<RawPtrT> tmp7;
     110         168 :     USE(tmp7);
     111         168 :     tmp7 = ca_.UncheckedCast<RawPtrT>(BaseBuiltinsFromDSLAssembler(state_).LoadCallerFromFrame(compiler::TNode<RawPtrT>{tmp2}));
     112         168 :     compiler::TNode<RawPtrT> tmp8;
     113         168 :     USE(tmp8);
     114         336 :     compiler::CodeAssemblerLabel label0(&ca_);
     115         168 :     tmp8 = BaseBuiltinsFromDSLAssembler(state_).Cast23ATArgumentsAdaptorFrame(compiler::TNode<Context>{tmp0}, compiler::TNode<RawPtrT>{tmp7}, &label0);
     116         168 :     ca_.Goto(&block4, tmp0, tmp1, tmp2, tmp3, tmp6, tmp6, tmp7, tmp8);
     117         168 :     if (label0.is_used()) {
     118         168 :       ca_.Bind(&label0);
     119         168 :       ca_.Goto(&block5, tmp0, tmp1, tmp2, tmp3, tmp6, tmp6, tmp7);
     120             :     }
     121             :   }
     122             : 
     123         168 :   if (block5.is_used()) {
     124         168 :     compiler::TNode<Context> tmp9;
     125         168 :     compiler::TNode<JSFunction> tmp10;
     126         168 :     compiler::TNode<RawPtrT> tmp11;
     127         168 :     compiler::TNode<SharedFunctionInfo> tmp12;
     128         168 :     compiler::TNode<BInt> tmp13;
     129         168 :     compiler::TNode<BInt> tmp14;
     130         168 :     compiler::TNode<RawPtrT> tmp15;
     131         168 :     ca_.Bind(&block5, &tmp9, &tmp10, &tmp11, &tmp12, &tmp13, &tmp14, &tmp15);
     132         168 :     ca_.Goto(&block3, tmp9, tmp10, tmp11, tmp12, tmp13, tmp14);
     133             :   }
     134             : 
     135         168 :   if (block4.is_used()) {
     136         168 :     compiler::TNode<Context> tmp16;
     137         168 :     compiler::TNode<JSFunction> tmp17;
     138         168 :     compiler::TNode<RawPtrT> tmp18;
     139         168 :     compiler::TNode<SharedFunctionInfo> tmp19;
     140         168 :     compiler::TNode<BInt> tmp20;
     141         168 :     compiler::TNode<BInt> tmp21;
     142         168 :     compiler::TNode<RawPtrT> tmp22;
     143         168 :     compiler::TNode<RawPtrT> tmp23;
     144         168 :     ca_.Bind(&block4, &tmp16, &tmp17, &tmp18, &tmp19, &tmp20, &tmp21, &tmp22, &tmp23);
     145         168 :     ca_.Goto(&block2, tmp16, tmp17, tmp18, tmp19, tmp20, tmp21, tmp23);
     146             :   }
     147             : 
     148         168 :   if (block3.is_used()) {
     149         168 :     compiler::TNode<Context> tmp24;
     150         168 :     compiler::TNode<JSFunction> tmp25;
     151         168 :     compiler::TNode<RawPtrT> tmp26;
     152         168 :     compiler::TNode<SharedFunctionInfo> tmp27;
     153         168 :     compiler::TNode<BInt> tmp28;
     154         168 :     compiler::TNode<BInt> tmp29;
     155         168 :     ca_.Bind(&block3, &tmp24, &tmp25, &tmp26, &tmp27, &tmp28, &tmp29);
     156         168 :     ca_.SetSourcePosition("../../src/builtins/arguments.tq", 36);
     157         168 :     ca_.Goto(&block1, tmp24, tmp25, tmp26, tmp29, tmp28);
     158             :   }
     159             : 
     160         168 :   if (block2.is_used()) {
     161         168 :     compiler::TNode<Context> tmp30;
     162         168 :     compiler::TNode<JSFunction> tmp31;
     163         168 :     compiler::TNode<RawPtrT> tmp32;
     164         168 :     compiler::TNode<SharedFunctionInfo> tmp33;
     165         168 :     compiler::TNode<BInt> tmp34;
     166         168 :     compiler::TNode<BInt> tmp35;
     167         168 :     compiler::TNode<RawPtrT> tmp36;
     168         168 :     ca_.Bind(&block2, &tmp30, &tmp31, &tmp32, &tmp33, &tmp34, &tmp35, &tmp36);
     169         168 :     ca_.SetSourcePosition("../../src/builtins/arguments.tq", 34);
     170         168 :     ca_.SetSourcePosition("../../src/builtins/arguments.tq", 39);
     171         168 :     ca_.SetSourcePosition("../../src/builtins/arguments.tq", 40);
     172         168 :     compiler::TNode<Smi> tmp37;
     173         168 :     USE(tmp37);
     174         168 :     tmp37 = ca_.UncheckedCast<Smi>(BaseBuiltinsFromDSLAssembler(state_).LoadLengthFromAdapterFrame(compiler::TNode<Context>{tmp30}, compiler::TNode<RawPtrT>{tmp36}));
     175         168 :     compiler::TNode<BInt> tmp38;
     176         168 :     USE(tmp38);
     177         168 :     tmp38 = ca_.UncheckedCast<BInt>(BaseBuiltinsFromDSLAssembler(state_).Convert6ATbint5ATSmi(compiler::TNode<Smi>{tmp37}));
     178         168 :     ca_.SetSourcePosition("../../src/builtins/arguments.tq", 41);
     179         168 :     ca_.SetSourcePosition("../../src/builtins/arguments.tq", 38);
     180         168 :     ca_.Goto(&block1, tmp30, tmp31, tmp36, tmp38, tmp34);
     181             :   }
     182             : 
     183         168 :   if (block1.is_used()) {
     184         168 :     compiler::TNode<Context> tmp39;
     185         168 :     compiler::TNode<JSFunction> tmp40;
     186         168 :     compiler::TNode<RawPtrT> tmp41;
     187         168 :     compiler::TNode<BInt> tmp42;
     188         168 :     compiler::TNode<BInt> tmp43;
     189         168 :     ca_.Bind(&block1, &tmp39, &tmp40, &tmp41, &tmp42, &tmp43);
     190         168 :     ca_.SetSourcePosition("../../src/builtins/arguments.tq", 24);
     191         168 :     ca_.Goto(&block6, tmp39, tmp40, tmp41, tmp42, tmp43);
     192             :   }
     193             : 
     194         168 :     compiler::TNode<Context> tmp44;
     195         168 :     compiler::TNode<JSFunction> tmp45;
     196         168 :     compiler::TNode<RawPtrT> tmp46;
     197         168 :     compiler::TNode<BInt> tmp47;
     198         168 :     compiler::TNode<BInt> tmp48;
     199         168 :     ca_.Bind(&block6, &tmp44, &tmp45, &tmp46, &tmp47, &tmp48);
     200         336 :   return ArgumentsBuiltinsFromDSLAssembler::ArgumentsInfo{compiler::TNode<RawPtrT>{tmp46}, compiler::TNode<BInt>{tmp47}, compiler::TNode<BInt>{tmp48}};
     201             : }
     202             : 
     203             : }  // namespace internal
     204       87414 : }  // namespace v8
     205             : 

Generated by: LCOV version 1.10