MCPcopy Index your code
hub / github.com/nodejs/node / directlyOnPrototype

Function directlyOnPrototype

deps/v8/test/mjsunit/string-charcodeat.js:234–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232String.prototype.x = String.prototype.charCodeAt;
233
234function directlyOnPrototype() {
235 assertEquals(97, "a".x(0));
236 assertEquals(98, "b".x(0));
237 assertEquals(99, "c".x(0));
238 assertEquals(97, "a".x(0));
239 assertEquals(98, "b".x(0));
240 assertEquals(99, "c".x(0));
241};
242%PrepareFunctionForOptimization(directlyOnPrototype);
243for (var i = 0; i < 5; i++) {
244 directlyOnPrototype();

Callers 1

Calls 2

assertEqualsFunction · 0.50
xMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…