Lines Matching refs:Factory
22 isolate->factory()->undefined_value(), 0, nullptr);
32 isolate->factory()->undefined_value(), sizeof...(args),
106 Handle<String> result = isolate->factory()->NewStringFromAsciiChecked(name);
107 return isolate->factory()->string_table()->LookupString(isolate, result);
166 handles.main_isolate()->factory()->undefined_value();
185 handles.main_isolate()->factory()->undefined_value();
203 Handle<Object> null_value = handles.main_isolate()->factory()->null_value();
222 handles.main_isolate()->factory()->the_hole_value();
240 Handle<Object> true_value = handles.main_isolate()->factory()->true_value();
258 Handle<Object> false_value = handles.main_isolate()->factory()->false_value();
276 i::Factory* factory = handles.main_isolate()->factory();
314 builder.LoadLiteral(factory->NewHeapNumber(-2.1e19)).Return();
329 Handle<i::String> string = factory->NewStringFromAsciiChecked("String");
343 Handle<Object> true_value = handles.main_isolate()->factory()->true_value();
394 handles.main_isolate()->factory()->ToBoolean(expected);
430 handles.main_isolate()->factory()->ToBoolean(expected);
468 handles.main_isolate()->factory()->NewNumberFromInt(100 *
540 i::Factory* factory = handles.main_isolate()->factory();
560 factory->NewNumber(BinaryOpC(kShiftOperators[o], lhs, rhs));
575 i::Factory* factory = handles.main_isolate()->factory();
595 factory->NewNumber(BinaryOpC(kArithmeticOperators[o], lhs, rhs));
611 i::Factory* factory = handles.main_isolate()->factory();
620 builder.LoadLiteral(factory->NewNumber(lhs))
622 .LoadLiteral(factory->NewNumber(rhs))
631 factory->NewNumber(BinaryOpC(kArithmeticOperators[o], lhs, rhs));
641 i::Factory* factory = handles.main_isolate()->factory();
648 {factory->NewStringFromStaticChars("a"),
649 factory->NewStringFromStaticChars("b"),
650 factory->NewStringFromStaticChars("ab")},
651 {factory->NewStringFromStaticChars("aaaaaa"),
652 factory->NewStringFromStaticChars("b"),
653 factory->NewStringFromStaticChars("aaaaaab")},
654 {factory->NewStringFromStaticChars("aaa"),
655 factory->NewStringFromStaticChars("bbbbb"),
656 factory->NewStringFromStaticChars("aaabbbbb")},
657 {factory->NewStringFromStaticChars(""),
658 factory->NewStringFromStaticChars("b"),
659 factory->NewStringFromStaticChars("b")},
660 {factory->NewStringFromStaticChars("a"),
661 factory->NewStringFromStaticChars(""),
662 factory->NewStringFromStaticChars("a")},
663 {factory->NewStringFromStaticChars("1.11"), factory->NewHeapNumber(2.5),
664 factory->NewStringFromStaticChars("1.112.5")},
665 {factory->NewStringFromStaticChars("-1.11"), factory->NewHeapNumber(2.56),
666 factory->NewStringFromStaticChars("-1.112.56")},
667 {factory->NewStringFromStaticChars(""), factory->NewHeapNumber(2.5),
668 factory->NewStringFromStaticChars("2.5")},
705 Handle<Object> true_value = handles.main_isolate()->factory()->true_value();
795 i::Factory* factory = isolate->factory();
807 Handle<i::String> name = factory->InternalizeUtf8String("global");
851 i::Factory* factory = isolate->factory();
863 Handle<i::String> name = factory->InternalizeUtf8String("unallocated");
873 i::Factory* factory = isolate->factory();
882 Handle<i::String> name = factory->NewStringFromAsciiChecked("val");
883 name = factory->string_table()->LookupString(isolate, name);
929 i::Factory* factory = isolate->factory();
938 Handle<i::String> key = factory->NewStringFromAsciiChecked("key");
939 key = factory->string_table()->LookupString(isolate, key);
974 i::Factory* factory = isolate->factory();
983 Handle<i::String> name = factory->NewStringFromAsciiChecked("val");
984 name = factory->string_table()->LookupString(isolate, name);
1035 i::Factory* factory = isolate->factory();
1044 Handle<i::String> name = factory->NewStringFromAsciiChecked("val");
1045 name = factory->string_table()->LookupString(isolate, name);
1085 i::Factory* factory = isolate->factory();
1095 Handle<i::String> name = factory->NewStringFromAsciiChecked("func");
1096 name = factory->string_table()->LookupString(isolate, name);
1182 .LoadLiteral(factory->NewStringFromAsciiChecked("a"))
1184 .LoadLiteral(factory->NewStringFromAsciiChecked("b"))
1186 .LoadLiteral(factory->NewStringFromAsciiChecked("c"))
1188 .LoadLiteral(factory->NewStringFromAsciiChecked("d"))
1190 .LoadLiteral(factory->NewStringFromAsciiChecked("e"))
1192 .LoadLiteral(factory->NewStringFromAsciiChecked("f"))
1194 .LoadLiteral(factory->NewStringFromAsciiChecked("g"))
1196 .LoadLiteral(factory->NewStringFromAsciiChecked("h"))
1198 .LoadLiteral(factory->NewStringFromAsciiChecked("i"))
1200 .LoadLiteral(factory->NewStringFromAsciiChecked("j"))
1218 factory->NewStringFromAsciiChecked("prefix_abcdefghij");
1437 i::Factory* factory = handles.main_isolate()->factory();
1444 builder.LoadLiteral(factory->NewHeapNumber(inputs[i]))
1446 .LoadLiteral(factory->NewHeapNumber(inputs[j]))
1473 i::Factory* factory = handles.main_isolate()->factory();
1480 builder.LoadLiteral(factory->NewStringFromAsciiChecked(lhs))
1482 .LoadLiteral(factory->NewStringFromAsciiChecked(rhs))
1520 i::Factory* factory = handles.main_isolate()->factory();
1529 builder.LoadLiteral(factory->NewNumber(lhs))
1531 .LoadLiteral(factory->NewStringFromAsciiChecked(rhs_cstr))
1536 builder.LoadLiteral(factory->NewStringFromAsciiChecked(lhs_cstr))
1538 .LoadLiteral(factory->NewNumber(rhs))
1559 i::Factory* factory = handles.main_isolate()->factory();
1560 Handle<i::String> name = factory->NewStringFromAsciiChecked("cons");
1561 Handle<i::JSFunction> func = factory->NewFunction(name);
1562 Handle<i::JSObject> instance = factory->NewJSObject(func);
1563 Handle<i::Object> other = factory->NewNumber(3.3333);
1590 i::Factory* factory = handles.main_isolate()->factory();
1593 factory->NewJSArray(i::ElementsKind::FAST_SMI_ELEMENTS);
1603 builder.LoadLiteral(factory->NewStringFromAsciiChecked(properties[i]))
1644 v8::internal::Factory* factory, Handle<Object> obj) {
1646 if (obj->SameValue(*factory->true_value())) {
1648 } else if (obj->SameValue(*factory->false_value())) {
1650 } else if (obj->SameValue(*factory->the_hole_value())) {
1652 } else if (obj->SameValue(*factory->null_value())) {
1654 } else if (obj->SameValue(*factory->undefined_value())) {
1669 i::Factory* factory = handles.main_isolate()->factory();
1672 std::make_pair(factory->undefined_value(), true),
1673 std::make_pair(factory->null_value(), true),
1674 std::make_pair(factory->false_value(), true),
1675 std::make_pair(factory->true_value(), false),
1676 std::make_pair(factory->NewNumber(9.1), false),
1677 std::make_pair(factory->NewNumberFromInt(0), true),
1679 Handle<Object>::cast(factory->NewStringFromStaticChars("hello")),
1682 Handle<Object>::cast(factory->NewStringFromStaticChars("")), true),
1691 LoadAny(&builder, factory, object_type_tuples[i].first);
1774 i::Factory* factory = isolate->factory();
1778 factory->null_value()),
1780 factory->NewStringFromStaticChars("abbd")),
1782 factory->NewStringFromStaticChars("aBC")),
1784 factory->NewStringFromStaticChars("aBC")),
1786 factory->NewStringFromStaticChars("AbC")),
1803 i::Factory* factory = isolate->factory();
1807 factory->undefined_value()),
1811 factory->NewStringFromStaticChars("c")),
1815 factory->NewStringFromStaticChars("a")),
1817 factory->NewStringFromStaticChars("test"))
1834 i::Factory* factory = isolate->factory();
1838 factory->undefined_value()),
1840 factory->NewStringFromStaticChars("string")),
1846 factory->NewStringFromStaticChars("test")),
1848 factory->NewStringFromStaticChars("test")),
1855 factory->NewStringFromStaticChars("test")),
1859 factory->null_value()),
1863 factory->NewStringFromStaticChars("testing")),
1867 factory->NewStringFromStaticChars("proto_str")),
2048 i::Factory* factory = isolate->factory();
2051 std::make_pair("var a; return 0, a;\n", factory->undefined_value()),
2055 factory->NewStringFromStaticChars("c")),
2056 std::make_pair("return 3.2, 2.3, 4.5;\n", factory->NewNumber(4.5)),
2076 i::Factory* factory = isolate->factory();
2079 std::make_pair("var a, b; return a || b;\n", factory->undefined_value()),
2083 factory->NewStringFromStaticChars("0")),
2084 std::make_pair("return 0 || 3.2;\n", factory->NewNumber(3.2)),
2086 factory->NewStringFromStaticChars("a")),
2088 factory->true_value())};
2104 i::Factory* factory = isolate->factory();
2108 factory->undefined_value()),
2115 factory->NewStringFromStaticChars("b")),
2117 factory->NewStringFromStaticChars("c")),
2121 factory->true_value())};
2165 i::Factory* factory = isolate->factory();
2170 factory->undefined_value()),
2174 factory->NewStringFromStaticChars("Error")),
2176 factory->NewStringFromStaticChars("Error")),
2178 factory->undefined_value()),
2180 factory->NewStringFromStaticChars("Error1")),
2199 i::Factory* factory = isolate->factory();
2211 factory->NewHeapNumber(4.2)),
2213 factory->nan_value()),
2215 factory->nan_value()),
2292 i::Factory* factory = isolate->factory();
2300 factory->NewStringFromStaticChars("testing")),
2346 i::Factory* factory = isolate->factory();
2374 CHECK(return_val.is_identical_to(factory->undefined_value()));
2386 CHECK(return_val.is_identical_to(factory->undefined_value()));
2445 i::Factory* factory = isolate->factory();
2452 factory->undefined_value()),
2455 factory->NewStringFromStaticChars("abc")),
2458 factory->undefined_value()),
2461 factory->NewStringFromStaticChars("abc")),
2466 factory->undefined_value()),
2470 factory->ToBoolean(true)),
2471 std::make_pair("return delete this;", factory->ToBoolean(true)),
2472 std::make_pair("return delete 'test';", factory->ToBoolean(true))};
2501 i::Factory* factory = isolate->factory();
2520 factory->ToBoolean(true)),
2524 factory->ToBoolean(true))};
2540 i::Factory* factory = isolate->factory();
2549 factory->undefined_value()),
2570 factory->ToBoolean(true)),
2576 factory->ToBoolean(false)),
2582 factory->ToBoolean(true)),
2591 factory->ToBoolean(true))};
2607 i::Factory* factory = isolate->factory();
2616 factory->NewHeapNumber(1024)),
2629 factory->NewHeapNumber(1024)),
2636 factory->NewHeapNumber(1024)),
2649 factory->NewHeapNumber(1024)),
2665 factory->NewHeapNumber(1024)),
2673 factory->NewHeapNumber(1024)),
2913 i::Factory* factory = isolate->factory();
2942 factory->undefined_value()),
2993 Factory* factory = isolate->factory();
3008 factory->undefined_value()),
3011 factory->undefined_value()),
3027 i::Factory* factory = isolate->factory();
3034 CHECK(return_value->SameValue(*factory->NewStringFromStaticChars("f")));
3041 i::Factory* factory = isolate->factory();
3052 CHECK(new_target_name->SameValue(*factory->NewStringFromStaticChars("f")));
3200 i::Factory* factory = isolate->factory();
3204 factory->NewNumberFromInt(10)},
3206 factory->NewNumberFromInt(10)},
3208 factory->NewNumberFromInt(10)},
3210 factory->NewNumberFromInt(10)},
3213 factory->NewNumberFromInt(10)},
3217 factory->NewNumberFromInt(10)},
3221 factory->undefined_value()},
3225 factory->NewNumberFromInt(10)},
3243 i::Factory* factory = isolate->factory();
3253 factory->NewNumberFromInt(31)},
3261 factory->NewNumberFromInt(71)},
3277 i::Factory* factory = isolate->factory();
3291 {"return typeof x;", factory->NewStringFromStaticChars("number")},
3292 {"return typeof dummy;", factory->NewStringFromStaticChars("undefined")},
3341 i::Factory* factory = isolate->factory();
3362 factory->NewStringFromStaticChars("number")},
3385 i::Factory* factory = isolate->factory();
3402 {"return delete x;", factory->false_value()},
3403 {"return delete y;", factory->true_value()},
3404 {"return delete z;", factory->false_value()},
3405 {"return delete obj.val;", factory->true_value()},
3406 {"'use strict'; return delete obj.val;", factory->true_value()},
3426 auto factory = isolate->factory();
3452 callable(factory->NewNumberFromInt(a)).ToHandleChecked();
3463 i::Factory* factory = isolate->factory();
3486 factory->NewStringFromStaticChars("number")},
3488 factory->NewStringFromStaticChars("undefined")},
3490 factory->NewStringFromStaticChars("undefined")},
3492 factory->NewStringFromStaticChars("number")},
3494 factory->NewStringFromStaticChars("number")},
3496 factory->NewStringFromStaticChars("object")},
3541 i::Factory* factory = isolate->factory();
3552 factory->NewStringFromStaticChars("undefined")},