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

Function sum1

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

Source from the content-addressed store, hash-verified

100(function ArgumentsAccessStrict () {
101 "use strict"
102 function sum1(a,b,c) {
103 var sum = 0;
104 var rest = arguments;
105 for (var i = 0; i < rest.length; ++i) {
106 var j = i;
107 if (rest.length % 15 == 0 && i == 10) j += 10000;
108 sum += rest[j] || i+1;
109 }
110 return sum;
111 };
112
113 %PrepareFunctionForOptimization(sum1);
114 var args = []

Callers 1

arguments-deopt.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected