Home | History | Annotate | Download | only in cctest

Lines Matching defs:string

69 using ::v8::String;
79 String::AsciiValue ascii(result);
157 Local<String> source = String::New(c_source);
275 Local<String> undef_str = undef->ToString();
289 Local<String> bar_str = v8_str("bar");
304 Local<String> bar_str = v8_str("bar");
321 Local<String> source = String::New(c_source);
335 class TestResource: public String::ExternalStringResource {
361 class TestAsciiResource: public String::ExternalAsciiStringResource {
393 Local<String> source = String::NewExternal(resource);
416 Local<String> source =
417 String::NewExternal(new TestAsciiResource(i::StrDup(c_source),
438 Local<String> source = String::New(two_byte_source);
439 // Trigger GCs so that the newly allocated string moves to old gen.
464 Local<String> source = v8_str(c_source);
465 // Trigger GCs so that the newly allocated string moves to old gen.
493 Local<String> small_string = String::New(two_byte_string);
496 // We should refuse to externalize newly created small string.
498 // Trigger GCs so that the newly allocated string moves to old gen.
504 two_byte_string = AsciiToTwoByteString("small string 2");
505 small_string = String::New(two_byte_string);
508 // We should refuse externalizing newly created small string.
511 String::Value value(small_string);
522 Local<String> large_string = String::New(two_byte_string);
538 Local<String> small_string = String::New("s1");
539 // We should refuse to externalize newly created small string.
541 // Trigger GCs so that the newly allocated string moves to old gen.
547 small_string = String::New("small string 2");
548 // We should refuse externalizing newly created small string.
551 String::Value value(small_string);
560 Local<String> large_string = String::New(buf);
570 uint16_t* two_byte_string = AsciiToTwoByteString("test string");
571 Local<String> string =
572 String::NewExternal(new TestResource(two_byte_string));
573 i::Handle<i::String> istring = v8::Utils::OpenHandle(*string);
574 // Trigger GCs so that the newly allocated string moves to old gen.
577 i::Handle<i::String> isymbol = FACTORY->SymbolFromString(istring);
588 const char* one_byte_string = "test string";
589 Local<String> string = String::NewExternal(
591 i::Handle<i::String> istring = v8::Utils::OpenHandle(*string);
592 // Trigger GCs so that the newly allocated string moves to old gen.
595 i::Handle<i::String> isymbol = FACTORY->SymbolFromString(istring);
608 uint16_t* two_byte_string = AsciiToTwoByteString("test string");
609 Local<String> string =
610 String::NewExternal(new TestResource(two_byte_string,
612 i::Handle<i::String> istring = v8::Utils::OpenHandle(*string);
628 const char* one_byte_string = "test string";
629 Local<String> string = String::NewExternal(
631 i::Handle<i::String> istring = v8::Utils::OpenHandle(*string);
668 // Use a stack allocated external string resource allocated object.
675 Local<String> source = String::NewExternal(&res_stack);
688 // Use a heap allocated external string resource allocated object.
696 Local<String> source = String::NewExternal(res_heap);
722 Local<String> left = v8_str(one_byte_string_1);
725 Local<String> right = String::New(two_byte_source);
728 Local<String> source = String::Concat(left, right);
729 right = String::NewExternal(
731 source = String::Concat(source, right);
732 right = String::NewExternal(
734 source = String::Concat(source, right);
736 source = String::Concat(source, right);
739 right = String::New(two_byte_source);
742 source = String::Concat(source, right);
743 right = String::NewExternal(
745 source = String::Concat(source, right);
780 static v8::Handle<Value> Return239(Local<String> name, const AccessorInfo&) {
1045 v8::Handle<Value> boxed_string = CompileRun("new String(\"test\")");
1055 Local<v8::String> the_string = as_boxed->StringValue();
1125 Local<String> str = v8_str("3.1415926");
1156 v8::Handle<String> str1 = v8_str("");
1158 v8::Handle<String> str2 = v8_str("x");
1174 static v8::Handle<Value> GetM(Local<String> name, const AccessorInfo&) {
1228 static v8::Handle<Value> GetKnurd(Local<String> property, const AccessorInfo&) {
1293 static v8::Handle<Value> EchoNamedProperty(Local<String> name,
1303 Handle<Value> SimpleAccessorGetter(Local<String> name,
1306 return self->Get(String::Concat(v8_str("accessor_"), name));
1309 void SimpleAccessorSetter(Local<String> name, Local<Value> value,
1312 self->Set(String::Concat(v8_str("accessor_"), name), value);
1315 Handle<Value> EmptyInterceptorGetter(Local<String> name,
1320 Handle<Value> EmptyInterceptorSetter(Local<String> name,
1326 Handle<Value> InterceptorGetter(Local<String> name,
1329 String::AsciiValue ascii(name);
1340 Handle<Value> InterceptorSetter(Local<String> name,
1353 Handle<String> name,
1590 String::AsciiValue value(str);
1636 Local<String> name,
1653 v8::Handle<Value> CheckThisNamedPropertySetter(Local<String> property,
1670 v8::Handle<v8::Integer> CheckThisNamedPropertyQuery(Local<String> property,
1688 Local<String> property,
1761 static v8::Handle<Value> PrePropertyHandlerGet(Local<String> key,
1767 return v8::Handle<String>();
1771 static v8::Handle<v8::Integer> PrePropertyHandlerQuery(Local<String> key,
1856 ThrowingPropertyHandlerGet(Local<String> key, const AccessorInfo&) {
1862 static v8::Handle<Value> ThrowingPropertyHandlerSet(Local<String> key,
2045 v8::Local<v8::String> key = v8_str("api-test::hidden-key");
2046 v8::Local<v8::String> empty = v8_str("");
2047 v8::Local<v8::String> prop_name = v8_str("prop_name");
2096 v8::Local<v8::String> key = v8_str("hidden");
2118 Local<String> name, const AccessorInfo& info) {
2130 v8::Local<v8::String> key = v8_str("api-test::hidden-key");
2177 v8::Persistent<String> global;
2180 Local<String> str = v8_str("str");
2181 global = v8::Persistent<String>::New(str);
2383 String::AsciiValue exception_value(try_catch.Exception());
2449 Local<String> prop = v8_str("none");
2483 String::AsciiValue exception_value(try_catch.Exception());
2638 Script::Compile(String::New(js_code_causing_out_of_memory));
2653 Script::Compile(String::New(js_code_causing_out_of_memory));
2709 // Build huge string. This should fail with out of memory exception.
2774 String::AsciiValue str_value(try_catch->Exception());
3020 // string conversions.
3036 CompileRun("String.prototype.toString = function f() { return 'Yikes'; }");
3048 v8::Handle<Value> string = CompileRun("try { asdf; } catch(e) { e + ''; }");
3049 CHECK(string->Equals(v8_str("Whoops")));
3126 String::AsciiValue exception_value(try_catch.Exception());
3379 // Assume String is not symbol.
3407 static v8::Handle<Value> GetXValue(Local<String> name,
3472 String::AsciiValue exception_value(try_catch.Exception());
3517 String::AsciiValue exception_value(try_catch.Exception());
3635 String::AsciiValue exception_value(try_catch.Exception());
3643 String::AsciiValue exception_value(try_catch.Exception());
3649 static v8::Handle<Value> Get239Value(Local<String> name,
3685 static void SetXValue(Local<String> name,
3713 static v8::Handle<Value> XPropertyGetter(Local<String> property,
3808 static v8::Handle<Value> SetXOnPrototypeGetter(Local<String> property,
3974 // merging property name lists for non-string arguments arrays.
4279 Local<String> password = v8_str("Password");
4346 Local<String> source = v8_str("Object.prototype.obj = 1234;"
4459 Local<String> source = v8_str("undetectable.x = 42;"
4485 Local<String> obj = String::NewUndetectable("foo");
4492 ExpectBoolean("typeof undetectable == 'string'", false);
4526 Local<String> obj = String::NewUndetectable("foo");
4559 Local<String> str = v8_str("foo");
4560 v8::Persistent<String> p_str = v8::Persistent<String>::New(str);
4792 v8::Handle<v8::String> name) {
4851 CHECK_EQ(String::New(expected), context->Global()->Get(v8_str("loaded")));
4909 v8::Handle<String> name);
4915 v8::Handle<String> name) {
5002 // Execute a script that causes out of memory when flattening a string.
5007 Script::Compile(String::New(js_code_causing_huge_string_flattening));
5069 v8::Handle<Value> WhammyPropertyGetter(Local<String> name,
5213 v8::Local<String> y_str = v8_str("y");
5224 v8::Local<String> y_str = v8_str("y");
5258 static v8::Handle<Value> NoBlockGetterX(Local<String> name,
5270 static v8::Handle<v8::Boolean> PDeleter(Local<String> name,
5315 static v8::Handle<Value> GetK(Local<String> name, const AccessorInfo&) {
5413 static v8::Handle<Value> PGetter(Local<String> name, const AccessorInfo& info) {
5447 static v8::Handle<Value> PGetter2(Local<String> name,
5529 int GetUtf8Length(Handle<String> str) {
5532 i::Handle<i::String> istr(v8::Utils::OpenHandle(*str));
5543 v8::Handle<String> str = v8_str("abcde");
5545 v8::Handle<String> str2 = v8_str("abc\303\260\342\230\203");
5550 " left = left + String.fromCharCode(i);"
5555 " right = String.fromCharCode(i) + right;"
5558 Handle<String> left_tree = global->Get(v8_str("left")).As<String>();
5559 Handle<String> right_tree = global->Get(v8_str("right")).As<String>();
5725 len = str->Write(wbuf, 0, 6, String::NO_NULL_TERMINATION);
5737 len = str->WriteAscii(buf, 0, 6, String::NO_NULL_TERMINATION);
5748 String::NO_NULL_TERMINATION);
5769 Local<v8::String> string =
5770 Local<v8::String>::Cast(a->Get(i));
5773 CHECK_EQ(expected_len->Value() != string->Length(),
5774 string->MayContainNonAscii());
5775 int length = GetUtf8Length(string);
5781 static uint16_t StringGet(Handle<String> str, int index) {
5782 i::Handle<i::String> istring =
5783 v8::Utils::OpenHandle(String::Cast(*str));
5800 Local<v8::String> string =
5801 Local<v8::String>::Cast(b->Get(i));
5810 string->WriteUtf8(buffer, j, &nchars, String::NO_OPTIONS);
5812 string->WriteUtf8(buffer2, j, &nchars, String::NO_NULL_TERMINATION);
5828 Handle<String> roundtrip = v8_str(buffer);
5829 CHECK(roundtrip->Equals(string));
5835 uint16_t trail = StringGet(string, nchars - 1);
5836 uint16_t lead = StringGet(string, nchars - 2);
5869 "p.push(String.fromCharCode(0xd800));"
5870 "p.push(String.fromCharCode(0xdc00));"
5876 " p[1] = String.fromCharCode(lead++);"
5878 " p[2] = String.fromCharCode(trail++);"
5911 static bool SameSymbol(Handle<String> s1, Handle<String> s2) {
5912 i::Handle<i::String> is1(v8::Utils::OpenHandle(*s1));
5913 i::Handle<i::String> is2(v8::Utils::OpenHandle(*s2));
5919 Handle<String> symbol1 = v8::String::NewSymbol(a);
5920 Handle<String> symbol2 = v8::String::NewSymbol(b);
5929 Handle<String> symbol1 = v8::String::NewSymbol("abc");
5930 Handle<String> symbol2 = v8::String::NewSymbol("abc");
5956 Handle<String> sym0 = v8::String::NewSymbol("benedictus");
5957 Handle<String> sym0b = v8::String::NewSymbol("S\303\270ren");
5958 Handle<String> sym1 = v8::String::NewSymbol("\355\240\201\355\260\207");
5959 Handle<String> sym2 = v8::String::NewSymbol("\360\220\220\210");
5960 Handle<String> sym3 = v8::String::NewSymbol("x\355\240\201\355\260\207");
5961 Handle<String> sym4 = v8::String::NewSymbol("x\360\220\220\210");
5969 CHECK(SameSymbol(sym0, Handle<String>(String::Cast(*s0))));
5970 CHECK(SameSymbol(sym0b, Handle<String>(String::Cast(*s0b))));
5971 CHECK(SameSymbol(sym1, Handle<String>(String::Cast(*s1))));
5972 CHECK(SameSymbol(sym2, Handle<String>(String::Cast(*s2))));
5973 CHECK(SameSymbol(sym3, Handle<String>(String::Cast(*s3))));
5974 CHECK(SameSymbol(sym4, Handle<String>(String::Cast(*s4))));
5982 v8::Handle<String> str = v8_str("42");
6013 v8::Handle<String> foo = v8_str("foo");
6014 v8::Handle<String> message = v8_str("message");
6033 static v8::Handle<Value> YGetter(Local<String> name, const AccessorInfo& info) {
6039 static void YSetter(Local<String> name,
6172 v8::String::AsciiValue name(message->GetScriptResourceName());
6175 v8::String::AsciiValue source_line(message->GetSourceLine());
6191 "};"), v8::String::New(script_resource_name))->Run();
6454 Local<String> test = v8_str("propertyIsEnumerable.call(env1, 'prop')");
6669 static v8::Handle<Value> EchoGetter(Local<String> name,
6675 static void EchoSetter(Local<String> name,
6683 static v8::Handle<Value> UnreachableGetter(Local<String> name,
6690 static void UnreachableSetter(Local<String>, Local<Value>,
7094 static v8::Handle<Value> ConstTenGetter(Local<String> name,
7298 len = name.As<String>()->WriteAscii(buf);
7304 len = name.As<String>()->Write(buf2);
7321 // using the Write operation on a string could cause a garbage
7322 // collection due to flattening of the string. This is no longer the
7364 Local<String>, const AccessorInfo&) {
7370 Local<String>, Local<Value> value, const AccessorInfo&) {
7489 GlobalObjectInstancePropertiesGet(Local<String> key, const AccessorInfo&) {
7602 static void ShadowYSetter(Local<String>, Local<Value>, const AccessorInfo&) {
7608 static v8::Handle<Value> ShadowYGetter(Local<String> name,
7622 static v8::Handle<Value> ShadowNamedGet(Local<String> key,
7971 // Call the Object's constructor with a String.
7976 String::AsciiValue string_value1(value->ToString());
7986 String::AsciiValue string_value2(value->ToString());
8033 String::AsciiValue exception_value1(try_catch.Exception());
8040 String::AsciiValue exception_value2(try_catch.Exception());
8056 String::AsciiValue exception_value1(try_catch.Exception());
8063 String::AsciiValue exception_value2(try_catch.Exception());
8123 " var str = String(e);"
8177 Local<String> token = v8_str("<security token>");
8295 Local<String> token = v8_str("<security token>");
8395 String::AsciiValue exception_value1(try_catch.Exception());
8406 String::AsciiValue exception_value2(try_catch.Exception());
8423 String::AsciiValue exception_value1(try_catch.Exception());
8430 String::AsciiValue exception_value2(try_catch.Exception());
8523 Local<String> name,
8554 Local<String> name,
8585 "o.__proto__ = new String(x);"
8591 typedef v8::Handle<Value> (*NamedPropertyGetter)(Local<String> property,
8608 static v8::Handle<Value> InterceptorLoadICGetter(Local<String> name,
8632 static v8::Handle<Value> InterceptorLoadXICGetter(Local<String> name,
8745 static v8::Handle<Value> InterceptorLoadNotHandled(Local<String> name,
8797 static void SetOnThis(Local<String> name,
8982 static v8::Handle<Value> InterceptorLoadICGetter0(Local<String> name,
8998 Local<String> key, Local<Value> value, const AccessorInfo&) {
9042 static v8::Handle<Value> InterceptorCallICGetter(Local<String> name,
9087 static v8::Handle<Value> InterceptorCallICGetter4(Local<String> name,
9164 static v8::Handle<Value> InterceptorCallICGetter5(Local<String> name,
9198 static v8::Handle<Value> InterceptorCallICGetter6(Local<String> name,
9323 static v8::Handle<Value> InterceptorCallICFastApi(Local<String> name,
9419 v8::Handle<v8::Value> DirectGetterCallback(Local<String> name,
9446 Local<String> name, const v8::AccessorInfo& info) {
9796 Local<String> name, const AccessorInfo& info) {
9952 static v8::Handle<Value> InterceptorICRefErrorGetter(Local<String> name,
9996 Local<String> name,
10043 Local<String> key, Local<Value> value, const AccessorInfo&) {
10114 static Handle<Value> ThrowingGetter(Local<String> name,
10207 Handle<String> errorMessageString = message->Get();
10242 static v8::Handle<Value> ParentGetter(Local<String> name,
10249 static v8::Handle<Value> ChildGetter(Local<String> name,
10343 Local<String> customized_tostring = v8_str("customized toString");
10352 Local<String> value = instance->ToString();
10861 v8::Handle<String> str(value->ToString());
10914 v8::Handle<v8::Script> script = v8::Script::Compile(v8::String::New(
10940 v8::String::AsciiValue line(message->GetSourceLine());
10942 v8::String::AsciiValue name(message->GetScriptResourceName());
10950 v8::Handle<v8::String> source = v8::String::New(
10968 script = v8::Script::Compile(source, v8::String::New(resource_name));
10972 v8::ScriptOrigin origin1(v8::String::New(resource_name));
10977 v8::ScriptOrigin origin2(v8::String::New(resource_name), v8::Integer::New(7));
10986 v8::Handle<v8::String> source0 = v8::String::New("1234");
10987 v8::Handle<v8::String> source1 = v8::String::New("1234");
10989 v8::Script::Compile(source0, v8::String::New("test.js"));
10991 v8::Script::Compile(source1, v8::String::New("test.js"));
11014 v8::String::AsciiValue name(value);
11033 v8::String::Utf8Value elm(props->Get(v8::Integer::New(i)));
11046 v8::String::Utf8Value elm(props->Get(v8::Integer::New(i)));
11055 v8::Handle<v8::Value> obj = v8::Script::Compile(v8::String::New(
11089 v8::Handle<v8::Value> obj = v8::Script::Compile(v8::String::New(
11288 i::Handle<i::String> name_handle =
11289 v8::Utils::OpenHandle(String::Cast(*name));
11480 Local<String> source = String::New(script);
11483 String::AsciiValue exception_value(try_catch.Message()->Get());
11503 // Verifies that the Handle<String> and const char* versions of the API produce
11516 v8::String::NewExternal(resource));
11519 v8::String::New(cstring));
11570 Local<String> token = v8_str("<security token>");
11658 Local<String> source = String::New(c_source);
11671 Local<String> source = String::New(c_source);
11783 Local<String> source = String::New(c_source);
11861 class AsciiVectorResource : public v8::String::ExternalAsciiStringResource {
11873 class UC16VectorResource : public v8::String::ExternalStringResource {
11885 static void MorphAString(i::String* string,
11888 CHECK(i::StringShape(string).IsExternal());
11889 if (string->IsAsciiRepresentation()) {
11891 CHECK(string->map() == HEAP->external_ascii_string_map());
11892 // Morph external string to be TwoByte string.
11893 string->set_map(HEAP->external_string_map());
11895 i::ExternalTwoByteString::cast(string);
11899 CHECK(string->map() == HEAP->external_string_map());
11900 // Morph external string to be ASCII string.
11901 string->set_map(HEAP->external_ascii_string_map());
11903 i::ExternalAsciiString::cast(string);
11909 // Test that we can still flatten a string if the components it is built up
11925 Local<String> lhs(v8::Utils::ToLocal(
11927 Local<String> rhs(v8::Utils::ToLocal(
11945 Handle<String> cons = v8_compile("cons")->Run().As<String>();
11968 CHECK_EQ(String::New(expected_cons),
11970 CHECK_EQ(String::New(expected_slice),
11972 CHECK_EQ(String::New(expected_slice_on_cons),
11998 v8::Local<v8::String> source = v8::String::NewExternal(&uc16_resource);
12025 // Create the input string for the regexp - the one we are going to change
12030 i::Handle<i::String> input_name =
12052 // Number of string modifications required.
12073 // Swap string between ascii and two-byte representation.
12074 i::String* string = *input_;
12075 MorphAString(string, &ascii_resource_, &uc16_resource_);
12094 Local<String> source = String::New(c_source);
12111 i::Handle<i::String> input_;
12118 // the string changed without failing.
12166 static v8::Handle<v8::Value> ForceSetGetter(v8::Local<v8::String> name,
12176 static void ForceSetSetter(v8::Local<v8::String> name,
12183 v8::Local<v8::String> name,
12197 v8::Handle<v8::String> access_property = v8::String::New("a");
12203 v8::Handle<v8::String> simple_property = v8::String::New("p");
12242 v8::Handle<v8::String> some_property = v8::String::New("a");
12272 CHECK_EQ(3, global->Get(v8::String::New("b"))->Int32Value());
12285 v8::Handle<v8::String> simple_property = v8::String::New("p");
12302 v8::Local<v8::String> name,
12323 v8::Handle<v8::String> some_property = v8::String::New("a");
12393 Local<String> token = v8_str("<security token>");
12459 v8::Handle<v8::String> foo_string = v8::String::New("foo");
12462 obj_clone->Set(foo_string, v8::String::New("Hello"));
13576 v8::Handle<v8::Script> dep = v8::Script::Compile(v8::String::New(source));
13577 v8::Handle<v8::Script> indep = v8::Script::New(v8::String::New(source));
13578 c1->Global()->Set(v8::String::New("foo"), v8::Integer::New(100));
13582 c2->Global()->Set(v8::String::New("foo"), v8::Integer::New(101));
13593 v8::Handle<v8::String> src = v8::String::New(source);
13594 v8::Handle<v8::String> origin = v8::String::New("stack-trace-test");
13597 v8::String::Utf8Value stack(try_catch.StackTrace());
13608 v8::String::Utf8Value func_name(frame->GetFunctionName());
13609 v8::String::Utf8Value script_name(frame->GetScriptName());
13641 // This is the source string inside the eval which has the call to foo.
13663 // This is the source string inside the eval which has the call to baz.
13681 v8::Handle<v8::String> origin = v8::String::New("capture-stack-trace-test");
13698 v8::Handle<v8::String> overview_src = v8::String::New(overview_source);
13713 v8::Handle<v8::String> detailed_src = v8::String::New(detailed_source);
13916 v8::Handle<v8::String> url = v8_str("eval_url");
13918 v8::Handle<v8::String> name =
14114 virtual void VisitExternalString(v8::Handle<v8::String> string) {
14115 if (!string->IsExternal()) {
14116 CHECK(string->IsExternalAscii());
14119 v8::String::ExternalStringResource* resource =
14120 string->GetExternalStringResource();
14137 v8::String::ExternalStringResource* resource1_;
14138 v8::String::ExternalStringResource* resource2_;
14146 const char* string = "Some string";
14147 uint16_t* two_byte_string = AsciiToTwoByteString(string);
14149 v8::Local<v8::String> string1 = v8::String::NewExternal(resource1);
14151 v8::Local<v8::String> string2 = v8::String::NewExternal(resource2);
14279 v8::Handle<v8::String> str(args[0]->ToString());
14293 v8::String::New("s"),
14310 v8::String::Utf8Value value(try_catch.Exception());
14335 Local<v8::String> obj = v8::String::New("");
14407 v8::ScriptOrigin origin = v8::ScriptOrigin(v8::String::New("test"));
14408 v8::Handle<v8::String> script = v8::String::New(
14412 env->Global()->Get(v8::String::New("f")));
14414 env->Global()->Get(v8::String::New("g")));
14417 CHECK_EQ("test", *v8::String::AsciiValue(script_origin_f.ResourceName()));
14421 CHECK_EQ("test", *v8::String::AsciiValue(script_origin_g.ResourceName()));
14428 v8::ScriptOrigin origin = v8::ScriptOrigin(v8::String::New("test"));
14429 v8::Handle<v8::String> script = v8::String::New(
14433 env->Global()->Get(v8::String::New("f")));
14434 CHECK_EQ("foo.bar.baz", *v8::String::AsciiValue(f->GetInferredName()));
14440 v8::ScriptOrigin origin = v8::ScriptOrigin(v8::String::New("test"));
14441 v8::Handle<v8::String> script = v8::String::New(
14445 env->Global()->Get(v8::String::New("f")));
14447 env->Global()->Get(v8::String::New("g")));
14456 v8::ScriptOrigin origin = v8::ScriptOrigin(v8::String::New("test"),
14458 v8::Handle<v8::String> script = v8::String::New(
14462 env->Global()->Get(v8::String::New("foo")));
14464 env->Global()->Get(v8::String::New("bar")));
14473 v8::ScriptOrigin origin = v8::ScriptOrigin(v8::String::New("test"),
14475 v8::Handle<v8::String> scriptSource = v8::String::New(
14480 env->Global()->Get(v8::String::New("foo")));
14482 env->Global()->Get(v8::String::New("bar")));
14488 static v8::Handle<Value> GetterWhichReturns42(Local<String> name,
14494 static void SetterWhichSetsYOnThisTo23(Local<String> name,
14537 Local<String> name, const AccessorInfo& info) {
14543 Local<String> name, Local<Value> value, const AccessorInfo& info) {
14817 i::Handle<i::String> string = v8::Utils::OpenHandle(String::Cast(*result));
14818 int length = string->length();
14819 CHECK(string->IsAsciiRepresentation());
14821 FlattenString(string);
14822 i::Handle<i::String> flat_string = FlattenGetString(string);
14824 CHECK(string->IsAsciiRepresentation());
14830 i::String::WriteToFlat(*flat_string, uc16_buffer, 0, length);
14839 // At this point, we should have a Cons string which is flat and ASCII,
14840 // with a first half that is a two-byte string (although it only contains
14844 CHECK(string->IsAsciiRepresentation());
14845 i::ConsString* cons = i::ConsString::cast(*string);
14849 // Check that some string operations work.
15379 // Change the String.prototype in the second context and check
15383 CompileRun("String.prototype.charAt = function() { return \"not a\"; }");
15620 static v8::Handle<v8::Value> Getter(v8::Local<v8::String> property,
15788 Handle<Value> HasOwnPropertyNamedPropertyGetter(Local<String> property,
15803 Local<String> property, const AccessorInfo& info) {
15810 Local<String> property, const AccessorInfo& info) {
15816 Handle<Value> HasOwnPropertyAccessorGetter(Local<String> property,
16197 Local<String> password = v8_str("Password");
16203 Local<String> i = v8_str("i");
16204 Local<String> o = v8_str("o");
16205 Local<String> id = v8_str("id");
16313 v8::Script::Compile(v8::String::New("recursion(0)"));