Debian Codegraph @

js/src/jit-test/tests/ion/new-3.js

raw
1 // Uncompiled, polymorphic callsite for |new|.
2
3 function Foo(prop) {
4 this.name = "Foo";
5 this.prop = prop;
6 }
7
8 function f() {
9 // Enter OSR here.
10 for (var i = 0; i < 100; i++)
11 { }
12
13 // No type information below this point.
14 var x = new Foo("cats");
15 return x;
16 }
17
18 assertEq(f().prop, "cats");