Lines Matching defs:string
171 Handle<i::String> string = factory->NewStringFromAsciiChecked("String");
172 builder.LoadLiteral(string).Return();
178 CHECK(i::String::cast(*return_val)->Equals(*string));
497 std::string source(
516 std::string source(
525 Handle<i::String> name = factory->InternalizeUtf8String("global");
536 std::string source(
553 std::string source(
572 std::string source(
581 Handle<i::String> name = factory->InternalizeUtf8String("unallocated");
600 Handle<i::String> name = factory->NewStringFromAsciiChecked("val");
654 Handle<i::String> key = factory->NewStringFromAsciiChecked("key");
697 Handle<i::String> name = factory->NewStringFromAsciiChecked("val");
757 Handle<i::String> name = factory->NewStringFromAsciiChecked("val");
806 Handle<i::String> name = factory->NewStringFromAsciiChecked("func");
924 Handle<i::String> expected =
926 CHECK(i::String::cast(*return_val)->Equals(*expected));
1252 std::string inputs[] = {"A", "abc", "z", "", "Foo!", "Foo"};
1286 // This test compares a HeapNumber with a String. The latter is
1312 // Comparison with HeapNumber on the lhs and String on the rhs
1319 // Comparison with HeapNumber on the rhs and String on the lhs
1371 // Test passing string types.
1414 Handle<i::String> name = factory->NewStringFromAsciiChecked("cons");
1564 std::make_pair("return typeof 'hello';", "string"),
1569 std::string source(InterpreterTester::SourceForBody(typeof_vals[i].first));
1573 Handle<v8::internal::String> return_value =
1574 Handle<v8::internal::String>::cast(callable().ToHandleChecked());
1626 std::string source(
1658 std::string source(InterpreterTester::SourceForBody(literals[i].first));
1689 std::string source(InterpreterTester::SourceForBody(literals[i].first));
1707 std::make_pair("return { name: 'string', val: 9.2 }.name;",
1708 factory->NewStringFromStaticChars("string")),
1709 std::make_pair("var a = 15; return { name: 'string', val: a }.val;",
1742 std::string source(InterpreterTester::SourceForBody(literals[i].first));
1755 std::string source(
1774 std::string source(
1793 std::string source(
1819 std::pair<std::string, Handle<Object>> context_vars[] = {
1840 std::string source(
1865 std::string source = "function " + InterpreterTester::function_name() +
1891 std::string header(
1896 std::string footer(
1903 std::string source = header + context_vars[i].first + footer;
1931 std::string source(InterpreterTester::SourceForBody(literals[i].first));
1959 std::string source(InterpreterTester::SourceForBody(literals[i].first));
1992 std::string source(InterpreterTester::SourceForBody(literals[i].first));
2019 std::string source(InterpreterTester::SourceForBody(catches[i].first));
2077 std::string source(InterpreterTester::SourceForBody(finallies[i].first));
2110 std::string source(InterpreterTester::SourceForBody(throws[i].first));
2135 std::make_pair("var a = 'string'; return ++a;",
2137 std::make_pair("var a = 'string'; return a--;",
2173 std::string source(InterpreterTester::SourceForBody(count_ops[i].first));
2232 std::string source(
2355 std::make_pair("var a = 'string'; return a ? 20 : 30;",
2366 std::string source(InterpreterTester::SourceForBody(conditional[i].first));
2410 std::string source(InterpreterTester::SourceForBody(test_delete[i].first));
2420 std::string strict_test =
2421 "'use strict'; " + std::string(test_delete[i].first);
2422 std::string source(InterpreterTester::SourceForBody(strict_test.c_str()));
2461 std::string source(InterpreterTester::SourceForBody(test_delete[i].first));
2624 std::string source(InterpreterTester::SourceForBody(loops[i].first));
2812 std::string body(body_os.str());
2813 std::string function = InterpreterTester::SourceForBody(body.c_str());
2977 string': return 1;\n"
3004 std::string source(InterpreterTester::SourceForBody(switch_ops[i].first));
3253 std::string source(
3322 std::string script = std::string(function_prologue) +
3323 std::string(lookup_slot[i].first) +
3324 std::string(function_epilogue);
3352 std::string source(InterpreterTester::SourceForBody(call_lookup[i].first));
3381 std::string init_function_body = str.str();
3383 std::pair<std::string, Handle<Object>> lookup_slot[] = {
3394 std::string script = std::string(function_prologue) + lookup_slot[i].first +
3395 std::string(function_epilogue);
3434 std::string script = std::string(function_prologue) +
3435 std::string(delete_lookup_slot[i].first) +
3436 std::string(function_epilogue);
3454 // Generate a string that consumes constant pool entries and
3459 std::string filler(filler_os.str());
3471 std::string script(script_os.str());
3524 std::string source(InterpreterTester::SourceForBody(eval[i].first));
3549 std::string source = "function " + InterpreterTester::function_name() +
3694 std::string source = os.str();
3714 os << "return String.fromCharCode(";
3720 std::string source = InterpreterTester::SourceForBody(os.str().c_str());
3725 Handle<String> return_string = Handle<String>::cast(return_val);
3755 std::string source = os.str();
3794 std::string source = os.str();
3826 std::string source(InterpreterTester::SourceForBody(do_expr[i].first));
3861 std::string source(InterpreterTester::SourceForBody(with_stmt[i].first));
3922 std::string source(InterpreterTester::SourceForBody(examples[i].first));
3982 std::string source(InterpreterTester::SourceForBody(examples[i].first));
4024 std::string source(InterpreterTester::SourceForBody(const_decl[i].first));
4034 std::string strict_body =
4035 "'use strict'; " + std::string(const_decl[i].first);
4036 std::string source(InterpreterTester::SourceForBody(strict_body.c_str()));
4063 std::string source(InterpreterTester::SourceForBody(const_decl[i].first));
4073 std::string strict_body =
4074 "'use strict'; " + std::string(const_decl[i].first);
4075 std::string source(InterpreterTester::SourceForBody(strict_body.c_str()));
4118 std::string script = std::string(prologue) +
4119 std::string(const_decl[i].first) +
4120 std::string(epilogue);
4149 std::string source(InterpreterTester::SourceForBody(const_decl[i].first));
4151 v8::Local<v8::String> message = tester.CheckThrowsReturnMessage()->Get();
4152 v8::Local<v8::String> expected_string = v8_str(const_decl[i].second);
4160 std::string strict_body =
4161 "'use strict'; " + std::string(const_decl[i].first);
4162 std::string source(InterpreterTester::SourceForBody(strict_body.c_str()));
4164 v8::Local<v8::String> message = tester.CheckThrowsReturnMessage()->Get();
4165 v8::Local<v8::String> expected_string = v8_str(const_decl[i].second);
4190 std::string source(InterpreterTester::SourceForBody(tests[i].first));