Lines Matching full:slice
150 // Must truncate something for a slice string. Loop until
162 // Don't slice 0 length strings.
1030 v8::Handle<v8::String> slice =
1031 CompileRun("var slice = underlying.slice(1);"
1032 "slice")->ToString();
1033 CHECK(v8::Utils::OpenHandle(*slice)->IsSlicedString());
1042 CHECK(v8::Utils::OpenHandle(*slice)->IsSlicedString());
1046 *v8::String::Utf8Value(CompileRun("JSON.stringify(slice)")));
1108 Handle<String> slice = factory->NewSubString(parent, 1, 25);
1111 CHECK(slice->IsSlicedString());
1112 CHECK_EQ(SlicedString::cast(*slice)->parent(),
1116 CHECK(SlicedString::cast(*slice)->parent()->IsSeqString());
1117 CHECK(slice->IsFlat());
1142 Handle<String> slice = factory->NewSubString(string, 1, 25);
1143 CHECK(slice->IsSlicedString());
1145 CHECK_EQ(SlicedString::cast(*slice)->parent(), *string);
1146 CHECK(SlicedString::cast(*slice)->parent()->IsExternalString());
1147 CHECK(slice->IsFlat());
1152 // This tests whether a slice that contains the entire parent string
1161 const char* check = "str.slice(0,26)";
1162 const char* crosscheck = "str.slice(1,25)";
1182 // This tests whether a slice that contains the entire parent string
1190 const char* slice = "var slice = str.slice(1,-1); slice";
1191 const char* slice_from_slice = "slice.slice(1,-1);";
1194 result = CompileRun(slice);
1288 // Test that out-of-bounds substring of a slice fails when the indices
1290 CompileRun("var slice = long.slice(1, 15);");
1291 CheckException("%_SubString(slice, 0, 17);");