Lines Matching refs:Smi
129 builder.LoadLiteral(Smi::FromInt(i)).Return();
135 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(i));
143 builder.LoadLiteral(Smi::FromInt(0x12345678)).Return();
149 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(0x12345678));
276 builder.LoadLiteral(Smi::FromInt(lhs))
278 .LoadLiteral(Smi::FromInt(rhs))
309 builder.LoadLiteral(Smi::FromInt(lhs))
311 .LoadLiteral(Smi::FromInt(rhs))
430 return_val = callable(Handle<Smi>(Smi::FromInt(3), handles.main_isolate()))
432 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(3));
456 Handle<Smi> arg1 = Handle<Smi>(Smi::FromInt(1), handles.main_isolate());
457 Handle<Smi> arg2 = Handle<Smi>(Smi::FromInt(2), handles.main_isolate());
458 Handle<Smi> arg3 = Handle<Smi>(Smi::FromInt(3), handles.main_isolate());
459 Handle<Smi> arg4 = Handle<Smi>(Smi::FromInt(4), handles.main_isolate());
460 Handle<Smi> arg5 = Handle<Smi>(Smi::FromInt(5), handles.main_isolate());
461 Handle<Smi> arg6 = Handle<Smi>(Smi::FromInt(6), handles.main_isolate());
462 Handle<Smi> arg7 = Handle<Smi>(Smi::FromInt(7), handles.main_isolate());
463 Handle<Smi> arg8 = Handle<Smi>(Smi::FromInt(8), handles.main_isolate());
468 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(36));
477 builder.LoadLiteral(Smi::FromInt(5))
487 callable(Handle<Smi>(Smi::FromInt(3), handles.main_isolate()))
489 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(5));
506 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(321));
528 CHECK_EQ(Smi::cast(*global_obj), Smi::FromInt(999));
545 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(15));
562 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(123));
584 CHECK_EQ(Smi::cast(*global_obj), Smi::FromInt(999));
616 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(123));
620 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(123));
626 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(456));
638 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(789));
671 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(123));
675 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(123));
681 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(789));
703 builder.LoadLiteral(Smi::FromInt(999))
716 CHECK_EQ(Smi::cast(*result), Smi::FromInt(999));
721 CHECK_EQ(Smi::cast(*result), Smi::FromInt(999));
728 CHECK_EQ(Smi::cast(*result), Smi::FromInt(999));
741 CHECK_EQ(Smi::cast(*result), Smi::FromInt(999));
765 .LoadLiteral(Smi::FromInt(999))
778 CHECK_EQ(Smi::cast(*result), Smi::FromInt(999));
783 CHECK_EQ(Smi::cast(*result), Smi::FromInt(999));
790 CHECK_EQ(Smi::cast(*result), Smi::FromInt(999));
826 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(0x265));
849 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(1234));
861 .LoadLiteral(Smi::FromInt(51))
863 .LoadLiteral(Smi::FromInt(11))
877 CHECK(return_val->SameValue(Smi::FromInt(40)));
938 .LoadLiteral(Smi::FromInt(value))
948 .LoadLiteral(Smi::FromInt(value))
963 builder.LoadLiteral(Smi::FromInt(0))
979 CHECK_EQ(Smi::cast(*return_value)->value(), 7);
992 builder.LoadLiteral(Smi::FromInt(0))
1013 CHECK_EQ(Smi::cast(*return_value)->value(), 7);
1026 builder.LoadLiteral(Smi::FromInt(0))
1047 CHECK_EQ(Smi::cast(*return_value)->value(), 7);
1058 builder.LoadLiteral(Smi::FromInt(0));
1071 builder.LoadLiteral(Smi::FromInt(0)); // 1-byte
1097 CHECK_EQ(Smi::cast(*return_value)->value(), 256.0 / 2 * (1 + 256));
1107 builder.LoadLiteral(Smi::FromInt(0));
1114 builder.LoadLiteral(Smi::FromInt(0));
1135 CHECK_EQ(Smi::cast(*return_value)->value(), 65536.0);
1195 builder.LoadLiteral(Smi::FromInt(inputs[i]))
1197 .LoadLiteral(Smi::FromInt(inputs[j]))
1511 builder->LoadLiteral(*Handle<Smi>::cast(obj));
1587 builder.LoadLiteral(Smi::FromInt(15))
1589 .LoadLiteral(Smi::FromInt(40))
1599 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(55));
1608 builder.LoadLiteral(Smi::FromInt(15))
1634 Handle<Smi>(Smi::FromInt(3), handles.main_isolate())).ToHandleChecked();
1635 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(5));
1677 handle(Smi::FromInt(3), isolate)),
1681 handle(Smi::FromInt(102), isolate)),
1710 handle(Smi::FromInt(15), isolate)),
1712 handle(Smi::FromInt(6), isolate)),
1718 handle(Smi::FromInt(22), isolate)),
1725 handle(Smi::FromInt(123), isolate)),
1729 handle(Smi::FromInt(1), isolate)),
1738 handle(Smi::FromInt(987), isolate)),
1767 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(0));
1786 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(3));
1807 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(15));
1821 handle(Smi::FromInt(1), isolate)),
1823 handle(Smi::FromInt(10), isolate)),
1826 handle(Smi::FromInt(50), isolate)),
1829 handle(Smi::FromInt(3), isolate)),
1833 handle(Smi::FromInt(30), isolate)),
1836 handle(Smi::FromInt(100), isolate)),
1857 handle(Smi::FromInt(1), isolate)),
1859 handle(Smi::FromInt(4), isolate)),
1861 handle(Smi::FromInt(1), isolate)),
1871 Handle<Object> a1 = handle(Smi::FromInt(1), isolate);
1872 Handle<Object> a2 = handle(Smi::FromInt(2), isolate);
1873 Handle<Object> a3 = handle(Smi::FromInt(3), isolate);
1886 handle(Smi::FromInt(200), isolate)),
1888 handle(Smi::FromInt(20), isolate)),
1921 handle(Smi::FromInt(3), isolate)),
1926 handle(Smi::FromInt(11), isolate)),
1928 handle(Smi::FromInt(21), isolate))};
1949 handle(Smi::FromInt(10), isolate)),
1978 handle(Smi::FromInt(0), isolate)),
1980 handle(Smi::FromInt(10), isolate)),
1981 std::make_pair("return 0.0 && 3.2;\n", handle(Smi::FromInt(0), isolate)),
1987 handle(Smi::FromInt(1), isolate)),
2008 handle(Smi::FromInt(2), isolate)),
2010 handle(Smi::FromInt(2), isolate)),
2012 handle(Smi::FromInt(3), isolate)),
2015 handle(Smi::FromInt(6), isolate)),
2095 handle(Smi::FromInt(1), isolate)),
2126 handle(Smi::FromInt(2), isolate)),
2128 handle(Smi::FromInt(1), isolate)),
2130 handle(Smi::FromInt(4), isolate)),
2132 handle(Smi::FromInt(5), isolate)),
2140 handle(Smi::FromInt(2), isolate)),
2142 handle(Smi::FromInt(0), isolate)),
2144 handle(Smi::FromInt(12), isolate)),
2146 handle(Smi::FromInt(11), isolate)),
2148 handle(Smi::FromInt(12), isolate)),
2150 handle(Smi::FromInt(21), isolate)),
2152 handle(Smi::FromInt(22), isolate)),
2154 handle(Smi::FromInt(3), isolate)),
2156 handle(Smi::FromInt(2), isolate)),
2158 handle(Smi::FromInt(-1), isolate)),
2160 handle(Smi::FromInt(1), isolate)),
2162 handle(Smi::FromInt(1), isolate)),
2164 handle(Smi::FromInt(1), isolate)),
2169 handle(Smi::FromInt(1), isolate)),
2189 handle(Smi::FromInt(101), isolate)),
2191 handle(Smi::FromInt(99), isolate)),
2193 handle(Smi::FromInt(100), isolate)),
2195 handle(Smi::FromInt(201), isolate)),
2197 handle(Smi::FromInt(199), isolate)),
2199 handle(Smi::FromInt(200), isolate)),
2219 Handle<Object>(Smi::FromInt(3), isolate)),
2221 Handle<Object>(Smi::FromInt(5), isolate)),
2225 Handle<Object>(Smi::FromInt(4), isolate)),
2228 Handle<Object>(Smi::FromInt(26), isolate)),
2250 Handle<Object>(Smi::FromInt(120), isolate)),
2253 Handle<Object>(Smi::FromInt(80), isolate)),
2316 callable(handle(Smi::FromInt(40), isolate)).ToHandleChecked();
2318 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(40));
2327 handle(Smi::FromInt(40), isolate),
2328 handle(Smi::FromInt(60), isolate),
2329 handle(Smi::FromInt(80), isolate),
2348 handle(Smi::FromInt(2), isolate)),
2350 handle(Smi::FromInt(3), isolate)),
2352 handle(Smi::FromInt(20), isolate)),
2354 handle(Smi::FromInt(20), isolate)),
2356 handle(Smi::FromInt(20), isolate)),
2358 handle(Smi::FromInt(30), isolate)),
2360 handle(Smi::FromInt(3), isolate)),
2362 handle(Smi::FromInt(5), isolate)),
2447 Handle<Object>(Smi::FromInt(10), isolate)),
2490 Handle<Object>(Smi::FromInt(10), isolate)),
2498 Handle<Object>(Smi::FromInt(10), isolate)),
2557 handle(Smi::FromInt(2), isolate)),
2577 handle(Smi::FromInt(2), isolate)),
2590 Handle<Object>(Smi::FromInt(1), isolate)),
2615 Handle<Object>(Smi::FromInt(2), isolate)),
2621 Handle<Object>(Smi::FromInt(30), isolate))};
2817 CHECK_EQ(Handle<Smi>::cast(return_val)->value(),
2835 handle(Smi::FromInt(22), isolate)},
2849 handle(Smi::FromInt(6), isolate)},
2945 handle(Smi::FromInt(2), isolate)),
2952 handle(Smi::FromInt(3), isolate)),
2959 handle(Smi::FromInt(3), isolate)),
2974 handle(Smi::FromInt(300), isolate)),
2981 handle(Smi::FromInt(2), isolate)),
2989 handle(Smi::FromInt(3), isolate)),
3000 handle(Smi::FromInt(5), isolate)),
3022 handle(Smi::FromInt(100), isolate)),
3026 handle(Smi::FromInt(110), isolate)),
3030 handle(Smi::FromInt(110), isolate)),
3214 callable(handle(Smi::FromInt(arg_value), handles.main_isolate()))
3216 CHECK_EQ(Handle<Smi>::cast(return_val)->value(), samples[i].second);
3314 {"return x;", handle(Smi::FromInt(1), isolate)},
3317 {"x = 10; return x;", handle(Smi::FromInt(10), isolate)},
3318 {"'use strict'; x = 20; return x;", handle(Smi::FromInt(20), isolate)},
3341 handle(Smi::FromInt(2), isolate)},
3344 handle(Smi::FromInt(3), isolate)},
3348 handle(Smi::FromInt(30), isolate)},
3384 {init_function_body + "return x;", handle(Smi::FromInt(1), isolate)},
3388 handle(Smi::FromInt(10), isolate)},
3390 handle(Smi::FromInt(20), isolate)},
3478 CHECK_EQ(Handle<Smi>::cast(return_val)->value(), results[a]);
3490 {"return eval('1;');", handle(Smi::FromInt(1), isolate)},
3491 {"return eval('100 * 20;');", handle(Smi::FromInt(2000), isolate)},
3493 handle(Smi::FromInt(30), isolate)},
3495 handle(Smi::FromInt(33), isolate)},
3498 handle(Smi::FromInt(53), isolate)},
3500 handle(Smi::FromInt(86), isolate)},
3502 handle(Smi::FromInt(11), isolate)},
3504 handle(Smi::FromInt(20), isolate)},
3506 handle(Smi::FromInt(1), isolate)},
3508 handle(Smi::FromInt(1), isolate)},
3539 handle(Smi::FromInt(30), isolate)},
3541 handle(Smi::FromInt(10), isolate)},
3545 handle(Smi::FromInt(30), isolate)},
3555 callable(handle(Smi::FromInt(20), isolate)).ToHandleChecked();
3569 handle(Smi::FromInt(33), isolate)},
3596 handle(Smi::FromInt(11), isolate)},
3598 handle(Smi::FromInt(11), isolate)},
3603 handle(Smi::FromInt(20), isolate)},
3608 handle(Smi::FromInt(30), isolate)},
3625 handle(Smi::FromInt(23), isolate)},
3650 handle(Smi::FromInt(40), isolate)},
3698 Handle<Object> arg = handle(Smi::FromInt(static_cast<int>(i)), isolate);
3758 Handle<Object> arg = handle(Smi::FromInt(0xaa55), isolate);
3760 Handle<Smi> actual = Handle<Smi>::cast(return_value);
3798 Handle<Object> arg = handle(Smi::FromInt(i), isolate);
3801 Handle<Smi> actual = Handle<Smi>::cast(return_value);
3819 handle(Smi::FromInt(100), isolate)},
3822 handle(Smi::FromInt(3), isolate)},
3842 {"with({x:42}) return x;", handle(Smi::FromInt(42), isolate)},
3843 {"with({}) { var y = 10; return y;}", handle(Smi::FromInt(10), isolate)},
3850 handle(Smi::FromInt(42), isolate)},
3857 handle(Smi::FromInt(42), isolate)},
3879 handle(Smi::FromInt(99), isolate)},
3885 handle(Smi::FromInt(101), isolate)},
3890 handle(Smi::FromInt(102), isolate)},
3895 handle(Smi::FromInt(103), isolate)},
3904 handle(Smi::FromInt(104), isolate)},
3912 handle(Smi::FromInt(105), isolate)},
3918 handle(Smi::FromInt(106), isolate)},
3944 handle(Smi::FromInt(999), isolate)},
3953 handle(Smi::FromInt(7), isolate)},
3965 handle(Smi::FromInt(1), isolate)},
3974 handle(Smi::FromInt(1), isolate)},
3978 handle(Smi::FromInt(10), isolate)},
3996 {"const x = 3; return x;", handle(Smi::FromInt(3), isolate)},
3997 {"let x = 10; x = x + 20; return x;", handle(Smi::FromInt(30), isolate)},
3998 {"let x = 10; x = 20; return x;", handle(Smi::FromInt(20), isolate)},
3999 {"let x; x = 20; return x;", handle(Smi::FromInt(20), isolate)},
4002 handle(Smi::FromInt(10), isolate)},
4004 handle(Smi::FromInt(10), isolate)},
4006 handle(Smi::FromInt(10), isolate)},
4008 handle(Smi::FromInt(10), isolate)},
4010 handle(Smi::FromInt(10), isolate)},
4012 handle(Smi::FromInt(20), isolate)},
4019 handle(Smi::FromInt(55), isolate)},
4052 handle(Smi::FromInt(3), isolate)},
4054 handle(Smi::FromInt(30), isolate)},
4056 handle(Smi::FromInt(20), isolate)},
4107 {"return outerConst;", handle(Smi::FromInt(10), isolate)},
4108 {"return outerLet;", handle(Smi::FromInt(20), isolate)},
4109 {"outerLet = 30; return outerLet;", handle(Smi::FromInt(30), isolate)},
4111 handle(Smi::FromInt(40), isolate)},
4113 handle(Smi::FromInt(50), isolate)},
4115 handle(Smi::FromInt(-1), isolate)}};