Global Metrics
path: .metrics.cognitive.average
old: 1.8571428571428572
new: 5.0
path: .metrics.cognitive.sum
old: 26.0
new: 5.0
path: .metrics.mi.mi_original
old: 30.082653471131195
new: 58.211125768618345
path: .metrics.mi.mi_sei
old: 1.977019383165416
new: 51.89537204907251
path: .metrics.mi.mi_visual_studio
old: 17.592195012357422
new: 34.04159401673588
path: .metrics.halstead.N1
old: 463.0
new: 112.0
path: .metrics.halstead.N2
old: 306.0
new: 87.0
path: .metrics.halstead.purity_ratio
old: 1.3185036204898914
new: 2.0908657279089287
path: .metrics.halstead.level
old: 0.025122549019607844
new: 0.0574712643678161
path: .metrics.halstead.volume
old: 5595.339667655889
new: 1247.0905215982852
path: .metrics.halstead.time
old: 12373.434061808144
new: 1205.520837545009
path: .metrics.halstead.difficulty
old: 39.80487804878049
new: 17.4
path: .metrics.halstead.bugs
old: 1.2247682351004647
new: 0.25932450828311454
path: .metrics.halstead.length
old: 769.0
new: 199.0
path: .metrics.halstead.n1
old: 32.0
new: 22.0
path: .metrics.halstead.vocabulary
old: 155.0
new: 77.0
path: .metrics.halstead.effort
old: 222721.8131125466
new: 21699.375075810163
path: .metrics.halstead.estimated_program_length
old: 1013.9292841567265
new: 416.0822798538768
path: .metrics.halstead.n2
old: 123.0
new: 55.0
path: .metrics.nargs.average
old: 0.7857142857142857
new: 3.0
path: .metrics.nargs.sum
old: 11.0
new: 3.0
path: .metrics.nom.total
old: 14.0
new: 1.0
path: .metrics.nom.functions
old: 13.0
new: 1.0
path: .metrics.nom.closures
old: 1.0
new: 0.0
path: .metrics.cyclomatic.average
old: 2.235294117647059
new: 3.5
path: .metrics.cyclomatic.sum
old: 38.0
new: 7.0
path: .metrics.loc.lloc
old: 67.0
new: 21.0
path: .metrics.loc.sloc
old: 219.0
new: 97.0
path: .metrics.loc.blank
old: 20.0
new: 0.0
path: .metrics.loc.cloc
old: 39.0
new: 43.0
path: .metrics.loc.ploc
old: 160.0
new: 55.0
path: .metrics.nexits.average
old: 0.8571428571428571
new: 0.0
path: .metrics.nexits.sum
old: 12.0
new: 0.0
Spaces Data
Minimal test - lines (12, 31)
path: .spaces[0].metrics.nom.functions
old: 13.0
new: 1.0
path: .spaces[0].metrics.nom.closures
old: 1.0
new: 0.0
path: .spaces[0].metrics.nom.total
old: 14.0
new: 1.0
path: .spaces[0].metrics.nexits.average
old: 0.8571428571428571
new: 0.0
path: .spaces[0].metrics.nexits.sum
old: 12.0
new: 0.0
path: .spaces[0].metrics.halstead.n1
old: 32.0
new: 22.0
path: .spaces[0].metrics.halstead.time
old: 12874.604970205455
new: 1165.4036985563532
path: .spaces[0].metrics.halstead.N2
old: 291.0
new: 43.0
path: .spaces[0].metrics.halstead.volume
old: 5375.479394776505
new: 798.2892142331044
path: .spaces[0].metrics.halstead.vocabulary
old: 140.0
new: 40.0
path: .spaces[0].metrics.halstead.effort
old: 231742.88946369823
new: 20977.266574014357
path: .spaces[0].metrics.halstead.n2
old: 108.0
new: 18.0
path: .spaces[0].metrics.halstead.difficulty
old: 43.111111111111114
new: 26.27777777777778
path: .spaces[0].metrics.halstead.N1
old: 463.0
new: 107.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.1797451594610804
new: 1.1544409709065475
path: .spaces[0].metrics.halstead.bugs
old: 1.2576207384284723
new: 0.25353894374930164
path: .spaces[0].metrics.halstead.estimated_program_length
old: 889.5278502336546
new: 173.16614563598216
path: .spaces[0].metrics.halstead.length
old: 754.0
new: 150.0
path: .spaces[0].metrics.halstead.level
old: 0.02319587628865979
new: 0.03805496828752643
path: .spaces[0].metrics.cognitive.sum
old: 26.0
new: 5.0
path: .spaces[0].metrics.cognitive.average
old: 1.8571428571428572
new: 5.0
path: .spaces[0].metrics.cyclomatic.sum
old: 37.0
new: 6.0
path: .spaces[0].metrics.cyclomatic.average
old: 2.3125
new: 6.0
path: .spaces[0].metrics.mi.mi_sei
old: 1.883650585321764
new: 49.472772778166984
path: .spaces[0].metrics.mi.mi_visual_studio
old: 18.899770011107556
new: 50.491396607655766
path: .spaces[0].metrics.mi.mi_original
old: 32.31860671899392
new: 86.34028819909135
path: .spaces[0].metrics.loc.blank
old: 24.0
new: 1.0
path: .spaces[0].metrics.loc.sloc
old: 196.0
new: 20.0
path: .spaces[0].metrics.loc.cloc
old: 27.0
new: 0.0
path: .spaces[0].metrics.loc.lloc
old: 67.0
new: 20.0
path: .spaces[0].metrics.loc.ploc
old: 145.0
new: 19.0
path: .spaces[0].metrics.nargs.sum
old: 11.0
new: 3.0
path: .spaces[0].metrics.nargs.average
old: 0.7857142857142857
new: 3.0
Code
static void ATTRIBUTE_USED __attribute__ ((regparm(3)))
invoke_copy_to_stack(uint32_t paramCount, nsXPTCVariant* s, uint32_t* d)
{
for(uint32_t i = paramCount; i >0; i--, d++, s++)
{
if(s->IsIndirect())
{
*((void**)d) = &s->val;
continue;
}
switch(s->type)
{
case nsXPTType::T_I64 : *((int64_t*) d) = s->val.i64; d++; break;
case nsXPTType::T_U64 : *((uint64_t*)d) = s->val.u64; d++; break;
case nsXPTType::T_DOUBLE : *((double*) d) = s->val.d; d++; break;
default : *((void**)d) = s->val.p; break;
}
}
}