Home | History | Annotate | Download | only in compiler

Lines Matching refs:constructor

30 // Test inlining of constructor calls.
32 function TestInlinedConstructor(constructor, closure) {
38 result = closure(constructor, 11, noDeopt, counter);
42 result = closure(constructor, 23, noDeopt, counter);
47 result = closure(constructor, 42, noDeopt, counter);
51 result = closure(constructor, 127, forceDeopt, counter);
57 %ClearFunctionTypeFeedback(constructor);
60 function value_context(constructor, val, deopt, counter) {
61 var obj = new constructor(val, deopt, counter);
65 function test_context(constructor, val, deopt, counter) {
66 if (!new constructor(val, deopt, counter)) {
72 function effect_context(constructor, val, deopt, counter) {
73 new constructor(val, deopt, counter);
77 function TestInAllContexts(constructor) {
78 TestInlinedConstructor(constructor, value_context);
79 TestInlinedConstructor(constructor, test_context);
80 TestInlinedConstructor(constructor, effect_context);
84 // Test constructor returning nothing in all contexts.
93 // Test constructor returning an object in all contexts.
104 // Test constructor returning a primitive value in all contexts.
114 // Test constructor called with too many arguments.
129 // Test constructor called with too few arguments.
145 // Test constructor that cannot be inlined.