Home | History | Annotate | Download | only in compiler

Lines Matching refs:Factory

33                          isolate->factory()->undefined_value(), 0, nullptr);
43 isolate->factory()->undefined_value(), sizeof...(args),
189 Factory* factory = isolate->factory();
192 {"return;", {factory->undefined_value()}},
193 {"return null;", {factory->null_value()}},
194 {"return true;", {factory->true_value()}},
195 {"return false;", {factory->false_value()}},
196 {"return 0;", {factory->NewNumberFromInt(0)}},
197 {"return +1;", {factory->NewNumberFromInt(1)}},
198 {"return -1;", {factory->NewNumberFromInt(-1)}},
199 {"return +127;", {factory->NewNumberFromInt(127)}},
200 {"return -128;", {factory->NewNumberFromInt(-128)}},
201 {"return 0.001;", {factory->NewNumber(0.001)}},
202 {"return 3.7e-60;", {factory->NewNumber(3.7e-60)}},
203 {"return -3.7e60;", {factory->NewNumber(-3.7e60)}},
204 {"return '';", {factory->NewStringFromStaticChars("")}},
205 {"return 'catfood';", {factory->NewStringFromStaticChars("catfood")}},
206 {"return NaN;", {factory->nan_value()}}};
226 Factory* factory = isolate->factory();
229 {"return 1 + 1;", {factory->NewNumberFromInt(2)}},
230 {"return 20 - 30;", {factory->NewNumberFromInt(-10)}},
231 {"return 4 * 100;", {factory->NewNumberFromInt(400)}},
232 {"return 100 / 5;", {factory->NewNumberFromInt(20)}},
233 {"return 25 % 7;", {factory->NewNumberFromInt(4)}},
254 Factory* factory = isolate->factory();
259 {factory->NewNumberFromInt(-70), factory->NewNumberFromInt(3),
260 factory->NewNumberFromInt(-73)}},
262 {factory->NewNumberFromInt(1139044), factory->NewNumberFromInt(300),
263 factory->NewNumberFromInt(1138741)}},
265 {factory->NewNumberFromInt(1100), factory->NewNumberFromInt(1000),
266 factory->NewNumberFromInt(-100)}},
268 {factory->NewNumberFromInt(-100000), factory->NewNumberFromInt(1000),
269 factory->NewNumberFromInt(-100)}},
271 {factory->NewNumberFromInt(-10), factory->NewNumberFromInt(1000),
272 factory->NewNumberFromInt(-100)}},
274 {factory->NewNumberFromInt(5), factory->NewNumberFromInt(373),
275 factory->NewNumberFromInt(16)}},
278 {factory->NewHeapNumber(9.999), factory->NewHeapNumber(3.333),
279 factory->NewHeapNumber(6.666)}},
281 {factory->NewHeapNumber(-3.333), factory->NewHeapNumber(3.333),
282 factory->NewHeapNumber(6.666)}},
284 {factory->NewHeapNumber(3.333 * 6.666), factory->NewHeapNumber(3.333),
285 factory->NewHeapNumber(6.666)}},
287 {factory->NewHeapNumber(2.25), factory->NewHeapNumber(9),
288 factory->NewHeapNumber(4)}},
291 {factory->NewStringFromStaticChars("abcdef"),
292 factory->NewStringFromStaticChars("abc"),
293 factory->NewStringFromStaticChars("def")}}};
315 Factory* factory = isolate->factory();
319 {factory->NewNumberFromInt(10),
322 {factory->NewStringFromStaticChars("abc"),
325 {factory->NewNumberFromInt(10),
328 {factory->NewNumberFromInt(10),
331 {factory->NewStringFromStaticChars("abc"),
336 {factory->NewStringFromStaticChars("abc"),
359 Factory* factory = isolate->factory();
363 {factory->NewNumberFromInt(10),
365 factory->NewStringFromStaticChars("val")}},
367 {factory->NewStringFromStaticChars("abc"),
369 factory->NewNumberFromInt(0)}},
371 {factory->NewStringFromStaticChars("abc"),
373 factory->NewNumberFromInt(0)}},
375 {factory->NewNumberFromInt(10),
377 factory->NewStringFromStaticChars("val")}},
379 {factory->NewNumberFromInt(10),
381 factory->NewNumberFromInt(0)}},
383 {factory->NewStringFromStaticChars("abc"),
385 factory->NewNumberFromInt(100)}},
387 {factory->NewStringFromStaticChars("abc"),
389 factory->NewNumberFromInt(100)}},
392 {factory->NewStringFromStaticChars("abc"),
394 factory->NewNumberFromInt(100)}},
417 Factory* factory = isolate->factory();
421 {factory->NewNumberFromInt(20),
424 {factory->NewStringFromStaticChars("int"),
427 {factory->NewStringFromStaticChars("def"),
430 {factory->NewNumberFromInt(20),
433 {factory->NewStringFromStaticChars("int"),
436 {factory->NewNumberFromInt(20),
440 {factory->NewStringFromStaticChars("def"),
444 {factory->NewStringFromStaticChars("def"),
467 Factory* factory = isolate->factory();
471 {factory->NewNumberFromInt(20),
473 factory->NewStringFromStaticChars("val")}},
475 {factory->NewStringFromStaticChars("def"),
477 factory->NewNumberFromInt(0)}},
479 {factory->NewStringFromStaticChars("def"),
481 factory->NewNumberFromInt(0)}},
483 {factory->NewNumberFromInt(20),
485 factory->NewStringFromStaticChars("val")}},
487 {factory->NewNumberFromInt(20),
489 factory->NewNumberFromInt(0)}},
491 {factory->NewStringFromStaticChars("def"),
493 factory->NewNumberFromInt(100)}},
496 {factory->NewStringFromStaticChars("def"),
498 factory->NewNumberFromInt(100)}},
501 {factory->NewStringFromStaticChars("def"),
503 factory->NewNumberFromInt(100)}},
525 Factory* factory = isolate->factory();
529 {factory->NewNumberFromInt(25),
532 {factory->NewStringFromStaticChars("abc"),
535 {factory->NewNumberFromInt(36),
560 Factory* factory = isolate->factory();
568 {factory->NewNumberFromInt(20)}},
574 {factory->NewNumberFromInt(23)}},
582 {factory->NewNumberFromInt(25)}},
599 Factory* factory = isolate->factory();
607 {factory->NewNumberFromInt(20)}},
613 {factory->NewNumberFromInt(23)}},
621 {factory->NewNumberFromInt(25)}},
638 Factory* factory = isolate->factory();
642 {factory->NewNumberFromInt(Smi::kMaxValue), factory->undefined_value()}},
644 {factory->true_value(), BytecodeGraphTester::NewObject("[1, 2, 3]")}},
646 {factory->NewNumberFromInt(5), factory->NewNumberFromInt(3)}},
648 {factory->NewNumberFromInt(3),
667 Factory* factory = isolate->factory();
671 {factory->NewNumberFromInt(321)}},
674 {factory->NewNumberFromInt(123)}},
677 {factory->NewStringFromStaticChars("abc")}},
680 {factory->NewNumberFromInt(456)}},
683 {factory->NewNumberFromInt(789)}},
686 {factory->NewStringFromStaticChars("xyz")}},
690 {factory->NewStringFromStaticChars("abc")}},
695 {factory->NewStringFromStaticChars("xyz")}},
697 {factory->NewStringFromStaticChars("undefined")}},
700 {factory->NewStringFromStaticChars("number")}},
722 Factory* factory = isolate->factory();
726 {factory->NewNumberFromInt(10)}},
728 {factory->NewNumberFromInt(10)}},
730 {factory->NewNumberFromInt(10)}},
732 {factory->NewNumberFromInt(10)}},
734 {factory->NewNumberFromInt(10)}},
738 {factory->NewNumberFromInt(10)}},
742 {factory->undefined_value()}},
746 {factory->NewNumberFromInt(10)}},
767 Factory* factory = isolate->factory();
771 {factory->false_value(),
773 {"return !p1;", {factory->true_value(), factory->NewNumberFromInt(0)}},
774 {"return !p1;", {factory->true_value(), factory->undefined_value()}},
775 {"return !p1;", {factory->false_value(), factory->NewNumberFromInt(10)}},
776 {"return !p1;", {factory->false_value(), factory->true_value()}},
778 {factory->false_value(), factory->NewStringFromStaticChars("abc")}},
800 Factory* factory = isolate->factory();
804 {factory->NewStringFromStaticChars("object"),
807 {factory->NewStringFromStaticChars("undefined"),
808 factory->undefined_value()}},
810 {factory->NewStringFromStaticChars("number"),
811 factory->NewNumberFromInt(10)}},
813 {factory->NewStringFromStaticChars("boolean"), factory->true_value()}},
815 {factory->NewStringFromStaticChars("string"),
816 factory->NewStringFromStaticChars("abc")}},
838 Factory* factory = isolate->factory();
842 {factory->NewNumberFromInt(11), factory->NewNumberFromInt(10)}},
844 {factory->NewNumberFromInt(10), factory->NewNumberFromInt(10)}},
846 {factory->NewHeapNumber(15.23), factory->NewHeapNumber(5.23)}},
848 {factory->NewHeapNumber(27.23), factory->NewHeapNumber(6.23)}},
850 {factory->NewHeapNumber(9.8), factory->NewHeapNumber(10.8)}},
852 {factoryfactory->NewHeapNumber(10.8)}},
854 {factory->NewNumberFromInt(20), factory->NewNumberFromInt(10)}},
856 {factory->NewNumberFromInt(29), factory->NewNumberFromInt(10)}},
858 {factory->NewNumberFromInt(10),
861 {factory->NewNumberFromInt(11),
864 {factory->NewNumberFromInt(11),
867 {factory->NewNumberFromInt(9), factory->NewNumberFromInt(10)}},
869 {factory->NewNumberFromInt(10), factory->NewNumberFromInt(10)}},
871 {factory->nan_value(), factory->NewStringFromStaticChars("String")}},
893 Factory* factory = isolate->factory();
897 {factory->true_value(), BytecodeGraphTester::NewObject("({val : 10})")}},
899 {factory->undefined_value(),
902 {factory->NewNumberFromInt(10),
905 {factory->true_value(), BytecodeGraphTester::NewObject("({val : 10})")}},
907 {factory->undefined_value(),
910 {factory->NewNumberFromInt(10),
933 Factory* factory = isolate->factory();
938 {factory->false_value()}},
939 {"function f() {return delete this;};", {factory->true_value()}},
942 {factory->true_value()}},
945 {factory->true_value()}},
948 {factory->undefined_value()}},
951 {factory->undefined_value()}},
954 {factory->true_value()}},
957 {factory->true_value()}},
960 {factory->NewNumberFromInt(20)}},
966 {factory->true_value()}},
986 Factory* factory = isolate->factory();
1002 {"return delete y;", {factory->true_value()}},
1003 {"return delete z;", {factory->false_value()}},
1024 Factory* factory = isolate->factory();
1039 {"return x;", {factory->NewNumber(12)}},
1040 {"return obj.val;", {factory->NewNumber(3.1414)}},
1041 {"return typeof x;", {factory->NewStringFromStaticChars("number")}},
1043 {factory->NewStringFromStaticChars("undefined")}},
1044 {"x = 23; return x;", {factory->NewNumber(23)}},
1046 {factory->NewNumber(23.456)}}};
1066 Factory* factory = isolate->factory();
1084 {factory->NewNumber(12)}},
1086 {factory->NewStringFromStaticChars("number")}},
1088 {factory->NewNumber(23)}},
1090 {factory->NewNumber(23.456)}}};
1140 Factory* factory = isolate->factory();
1163 {factory->NewStringFromStaticChars("number")}},
1165 {factory->NewStringFromStaticChars("undefined")}},
1167 {factory->NewStringFromStaticChars("undefined")}},
1169 {factory->NewStringFromStaticChars("number")}},
1171 {factory->NewStringFromStaticChars("number")}},
1173 {factory->NewStringFromStaticChars("object")}},
1223 Factory* factory = isolate->factory();
1234 {factory->NewStringFromStaticChars("undefined")}},
1302 Factory* factory = isolate->factory();
1304 factory->NewNumberFromInt(10), factory->NewHeapNumber(3.45),
1305 factory->NewStringFromStaticChars("abc"),
1306 factory->NewNumberFromInt(SMI_MAX), factory->NewNumberFromInt(SMI_MIN)};
1307 Handle<Object> rhs_values[] = {factory->NewNumberFromInt(10),
1308 factory->NewStringFromStaticChars("10"),
1309 factory->NewNumberFromInt(20),
1310 factory->NewStringFromStaticChars("abc"),
1311 factory->NewHeapNumber(3.45),
1312 factory->NewNumberFromInt(SMI_MAX),
1313 factory->NewNumberFromInt(SMI_MIN)};
1328 CHECK(return_value->SameValue(*factory->ToBoolean(result)));
1339 Factory* factory = isolate->factory();
1343 {factory->true_value(), BytecodeGraphTester::NewObject("({val : 10})"),
1344 factory->NewStringFromStaticChars("val")}},
1346 {factory->true_value(), BytecodeGraphTester::NewObject("[]"),
1347 factory->NewStringFromStaticChars("length")}},
1349 {factory->true_value(), BytecodeGraphTester::NewObject("[]"),
1350 factory->NewStringFromStaticChars("toString")}},
1352 {factory->true_value(), BytecodeGraphTester::NewObject("({val : 10})"),
1353 factory->NewStringFromStaticChars("toString")}},
1355 {factory->false_value(), BytecodeGraphTester::NewObject("({val : 10})"),
1356 factory->NewStringFromStaticChars("abc")}},
1358 {factory->false_value(), BytecodeGraphTester::NewObject("({val : 10})"),
1359 factory->NewNumberFromInt(10)}},
1361 {factory->true_value(), BytecodeGraphTester::NewObject("({10 : 'val'})"),
1362 factory->NewNumberFromInt(10)}},
1364 {factory->false_value(),
1366 factory->NewNumberFromInt(1)}},
1389 Factory* factory = isolate->factory();
1393 {factory->true_value(), BytecodeGraphTester::NewObject("({val : 10})")}},
1395 {factory->false_value(), factory->NewStringFromStaticChars("string")}},
1399 {factory->true_value(), factory->undefined_value()}},
1452 Factory* factory = isolate->factory();
1465 {factory->NewStringFromStaticChars("outer")}},
1476 {factory->NewStringFromStaticChars("inner outer")}},
1492 {factory->NewStringFromStaticChars("innermost inner_changed outer")}},
1512 Factory* factory = isolate->factory();
1528 {factory->NewNumberFromInt(6), factory->undefined_value()}},
1542 {factory->NewNumberFromInt(10), factory->undefined_value()}},
1550 {factory->NewNumberFromInt(14), factory->NewNumberFromInt(4)}},
1559 {factory->NewNumberFromInt(24), factory->NewNumberFromInt(4)}}};
1579 Factory* factory = isolate->factory();
1582 {"function f() {return arguments[0];}", {factory->undefined_value()}},
1583 {"function f(a) {return arguments[0];}", {factory->undefined_value()}},
1585 {factory->undefined_value()}},
1587 {factory->undefined_value()}},
1607 Factory* factory = isolate->factory();
1611 {factory->NewNumberFromInt(1), factory->NewNumberFromInt(1),
1612 factory->NewNumberFromInt(2), factory->NewNumberFromInt(3)}},
1614 {factory->undefined_value(), factory->NewNumberFromInt(1),
1615 factory->NewNumberFromInt(2), factory->NewNumberFromInt(3)}},
1617 {factory->NewNumberFromInt(3), factory->NewNumberFromInt(1),
1618 factory->NewNumberFromInt(2), factory->NewNumberFromInt(3)}},
1620 {factory->NewNumberFromInt(1), factory->NewNumberFromInt(1),
1621 factory->NewNumberFromInt(2), factory->NewNumberFromInt(3)}},
1623 {factory->undefined_value(), factory->NewNumberFromInt(1),
1624 factory->NewNumberFromInt(2), factory->NewNumberFromInt(3)}},
1626 {factory->NewNumberFromInt(2), factory->NewNumberFromInt(1),
1627 factory->NewNumberFromInt(2), factory->NewNumberFromInt(3)}},
1630 {factory->NewNumberFromInt(3), factory->NewNumberFromInt(1),
1631 factory->NewNumberFromInt(2), factory->NewNumberFromInt(30)}},
1655 Factory* factory = isolate->factory();
1658 {"return /abd/.exec('cccabbdd');", {factory->null_value()}},
1660 {factory->NewStringFromStaticChars("abbd")}},
1664 {factory->NewStringFromStaticChars("abbd")}},
1665 {"return /ab+d/.exec('cccabbdd')[1];", {factory->undefined_value()}},
1667 {factory->NewStringFromStaticChars("aBC")}},
1669 {factory->NewStringFromStaticChars("aBC")}},
1671 {factory->NewStringFromStaticChars("AbC")}},
1692 Factory* factory = isolate->factory();
1695 {"return [][0];", {factory->undefined_value()}},
1696 {"return [1, 3, 2][1];", {factory->NewNumberFromInt(3)}},
1698 {factory->NewNumberFromInt(3)}},
1699 {"return ['a', 'b', 'c'][2];", {factory->NewStringFromStaticChars("c")}},
1701 {factory->NewNumberFromInt(103)}},
1703 {factory->NewNumberFromInt(101)}},
1707 {factory->NewHeapNumber(12.34)}},
1709 {factory->NewStringFromStaticChars("a")}},
1711 {factory->NewStringFromStaticChars("test")}},
1713 {factory->NewStringFromStaticChars("1t")}}};
1733 Factory* factory = isolate->factory();
1736 {"return { }.name;", {factory->undefined_value()}},
1738 {factory->NewStringFromStaticChars("string")}},
1742 {factory->NewStringFromStaticChars("string")}},
1744 {factory->NewStringFromStaticChars("string")}},
1746 {factory->NewNumberFromInt(15)}},
1750 {factory->NewHeapNumber(1.23)}},
1752 {factory->NewNumberFromInt(15)}},
1754 {factory->NewNumberFromInt(6)}},
1756 {factory->NewStringFromStaticChars("test")}},
1758 {factory->NewStringFromStaticChars("test")}},
1759 {"return { get a() { return 22; } }.a;", {factory->NewNumberFromInt(22)}},
1764 {factory->NewStringFromStaticChars("test")}},
1765 {"var a = 123; return { 1: a }[1];", {factory->NewNumberFromInt(123)}},
1767 {factory->null_value()}},
1769 {factory->NewNumberFromInt(1)}},
1771 {factory->NewStringFromStaticChars("testing")}},
1775 {factory->NewStringFromStaticChars("proto_str")}},
1778 {factory->NewNumberFromInt(987)}},
1798 Factory* factory = isolate->factory();
1803 {factory->NewNumberFromInt(1), factory->NewNumberFromInt(2)}},
1806 {factory->NewNumberFromInt(-1), factory->NewNumberFromInt(1)}},
1808 {factory->NewNumberFromInt(1), factory->NewNumberFromInt(2)}},
1810 {factory->NewNumberFromInt(-1), factory->NewNumberFromInt(1)}},
1818 {factory->NewNumberFromInt(1), factory->NewNumberFromInt(51)}},
1826 {factory->NewNumberFromInt(10), factory->NewNumberFromInt(9)}},
1834 {factory->NewNumberFromInt(100), factory->NewNumberFromInt(10)}},
1840 {factory->NewNumberFromInt(2), factory->NewNumberFromInt(100)}},
1846 {factory->NewNumberFromInt(1), factory->NewNumberFromInt(10)}},
1852 {factory->NewNumberFromInt(-2), factory->NewNumberFromInt(-11)}},
1858 {factory->NewNumberFromInt(-1), factory->NewNumberFromInt(-10)}},
1880 Factory* factory = isolate->factory();
1884 {factory->NewNumberFromInt(1), factory->NewNumberFromInt(2)}},
1886 {factory->NewNumberFromInt(-1), factory->NewNumberFromInt(0)}},
1888 {factory->NewNumberFromInt(10), factory->NewNumberFromInt(2)}},
1890 {factory->NewNumberFromInt(-10), factory->NewNumberFromInt(20)}},
1912 Factory* factory = isolate->factory();
1927 {factory->NewNumberFromInt(0), factory->NewNumberFromInt(1)}},
1929 {factory->NewNumberFromInt(1), factory->NewNumberFromInt(2)}},
1931 {factory->NewNumberFromInt(2), factory->NewNumberFromInt(3)}},
1933 {factory->NewNumberFromInt(2), factory->NewNumberFromInt(4)}},
1935 {factory->NewNumberFromInt(9), factory->NewNumberFromInt(9)}},
1937 {factory->NewNumberFromInt(3), factory->NewNumberFromInt(5)}},
1939 {factory->NewNumberFromInt(3), factory->NewNumberFromInt(6)}},
1960 Factory* factory = isolate->factory();
1977 {factory->NewNumberFromInt(0), factory->NewNumberFromInt(0),
1978 factory->NewNumberFromInt(0)}},
1980 {factory->NewNumberFromInt(1), factory->NewNumberFromInt(0),
1981 factory->NewNumberFromInt(1)}},
1983 {factory->NewNumberFromInt(-1), factory->NewNumberFromInt(0),
1984 factory->NewNumberFromInt(2)}},
1986 {factory->NewNumberFromInt(-1), factory->NewNumberFromInt(0),
1987 factory->NewNumberFromInt(3)}},
1989 {factory->NewNumberFromInt(2), factory->NewNumberFromInt(1),
1990 factory->NewNumberFromInt(0)}},
1992 {factory->NewNumberFromInt(3), factory->NewNumberFromInt(1),
1993 factory->NewNumberFromInt(1)}},
1995 {factory->NewNumberFromInt(-2), factory->NewNumberFromInt(1),
1996 factory->NewNumberFromInt(2)}},
1998 {factory->NewNumberFromInt(-2), factory->NewNumberFromInt(2),
1999 factory->NewNumberFromInt(0)}},
2021 Factory* factory = isolate->factory();
2031 {factory->NewNumberFromInt(1)}},
2042 {factory->NewNumber(30)}},
2062 Factory* factory = isolate->factory();
2066 {factory->NewNumberFromInt(1)}},
2068 {factory->NewNumberFromInt(91)}},
2070 {factory->NewNumberFromInt(10)}},
2072 {factory->NewNumberFromInt(1)}},
2082 {factory->NewNumberFromInt(27)}},
2092 {factory->NewNumberFromInt(16)}}};
2111 Factory* factory = isolate->factory();
2115 {factory->NewNumberFromInt(100)}},
2117 {factory->NewNumberFromInt(26)}},
2119 {factory->NewNumberFromInt(2)}},
2129 {factory->NewNumberFromInt(16)}}};
2148 Factory* factory = isolate->factory();
2152 {factory->NewNumberFromInt(15)}},
2154 {factory->NewNumberFromInt(127)}},
2157 {factory->NewNumberFromInt(0)}},
2159 {factory->NewNumberFromInt(255)}},
2161 {factory->NewNumberFromInt(255)}},
2169 {factory->NewNumberFromInt(12)}},
2179 {factory->NewNumberFromInt(15)}},
2190 {factory->NewNumberFromInt(6)}},
2201 {factory->NewNumberFromInt(18)}},
2209 {factory->NewNumberFromInt(385)}},
2229 Factory* factory = isolate->factory();
2235 {factory->NewNumberFromInt(0)}},
2240 {factory->NewNumberFromInt(100)}},
2243 {factory->NewNumberFromInt(2)}},
2249 {factory->NewNumberFromInt(2)}},
2256 {factory->NewNumberFromInt(1)}},
2263 {factory->NewNumberFromInt(0)}},
2271 {factory->NewNumberFromInt(21)}},
2281 {factory->NewNumberFromInt(6)}},
2324 auto factory = isolate->factory();
2330 callable(factory->NewNumberFromInt(a)).ToHandleChecked();