Lines Matching refs:function
30 // Test that we can inline a function that returns a constant.
31 function TestInlineConstant(o) {
45 o1.f = function() { return 42; };
52 // Test that we can inline a function that returns 'this'.
53 function TestInlineThis(o) {
67 o2.g = function() { return this; };
74 // Test that we can inline a function that returns 'this.x'.
75 function TestInlineThisX(o) {
89 o3.h = function() { return this.x; };
96 // Test that we can inline a function that returns 'this.x.length'.
97 function TestInlineThisXLength(o) {
111 o4.h = function() { return this.x.length; };
118 // Test that we can inline a function that returns 'this.x.y'.
119 function TestInlineThisXY(o) {
134 o5.h = function() { return this.e.y; };
141 // Test that we can inline a function that returns 'this.x.length'.
142 function TestInlineThisX0(o) {
156 o7.foo = function() { return this.x[0]; };