MCPcopy Create free account
hub / github.com/nodejs/node / sum2

Function sum2

deps/v8/test/mjsunit/arguments-deopt.js:124–132  ·  view source on GitHub ↗
(a,b,c)

Source from the content-addressed store, hash-verified

122
123(function ArgumentsAccessSloppy () {
124 function sum2(a,b,c) {
125 var sum = 0;
126 for (var i = 0; i < arguments.length; ++i) {
127 var j = i;
128 if (arguments.length % 15 == 0 && i == 10) j += 10000;
129 sum += arguments[j] || i+1;
130 }
131 return sum;
132 };
133
134 %PrepareFunctionForOptimization(sum2);
135 var args = []

Callers 1

arguments-deopt.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected