Lines Matching defs:string
45 #include "mirror/string-inl.h"
68 std::string msg;
114 static void UnstartedRuntimeFindClass(Thread* self, Handle<mirror::String> className,
116 const std::string& method_name, bool initialize_class,
120 std::string descriptor(DotToDescriptor(className->ToModifiedUtf8().c_str()));
151 std::string type(PrettyTypeOf(self->GetException()));
159 static mirror::String* GetClassName(Thread* self, ShadowFrame* shadow_frame, size_t arg_offset)
171 mirror::String* class_name = GetClassName(self, shadow_frame, arg_offset);
176 Handle<mirror::String> h_class_name(hs.NewHandle(class_name));
189 mirror::String* class_name = GetClassName(self, shadow_frame, arg_offset);
197 Handle<mirror::String> h_class_name(hs.NewHandle(class_name));
206 mirror::String* class_name = GetClassName(self, shadow_frame, arg_offset);
214 Handle<mirror::String> h_class_name(hs.NewHandle(class_name));
281 mirror::String* name2 = shadow_frame->GetVRegReference(arg_offset + 1)->AsString();
319 mirror::String* name = shadow_frame->GetVRegReference(arg_offset + 1)->AsString();
365 static std::unique_ptr<MemMap> FindAndExtractEntry(const std::string& jar_file,
368 std::string* error_msg) {
400 mirror::String* resource_name = resource_obj->AsString();
402 std::string resource_name_str = resource_name->ToModifiedUtf8();
416 std::vector<std::string> split;
427 std::string last_error_msg; // Only store the last message (we could concatenate).
429 for (const std::string& jar_file : split) {
523 mirror::String* class_name = shadow_frame->GetVRegReference(arg_offset + 1)->AsString();
527 Handle<mirror::String> h_class_name(hs.NewHandle(class_name));
534 std::string type(PrettyTypeOf(self->GetException()));
701 Handle<mirror::String> h_key(
702 hs.NewHandle(reinterpret_cast<mirror::String*>(shadow_frame->GetVRegReference(arg_offset))));
730 "[[Ljava/lang/String;");
737 Handle<mirror::ObjectArray<mirror::ObjectArray<mirror::String>>> h_2string_array(
738 hs.NewHandle(reinterpret_cast<mirror::ObjectArray<mirror::ObjectArray<mirror::String>>*>(
748 MutableHandle<mirror::ObjectArray<mirror::String>> h_string_array(
749 hs.NewHandle<mirror::ObjectArray<mirror::String>>(nullptr));
789 std::string caller(PrettyMethod(shadow_frame->GetLink()->GetMethod()));
792 caller == "java.lang.String java.lang.FloatingDecimal.toJavaFormatString()") {
989 std::string error_msg(StringPrintf("Array out of bounds in peekArray: %d/%d vs %d",
1029 // This allows reading the new style of String objects during compilation.
1035 mirror::String* string = shadow_frame->GetVRegReference(arg_offset)->AsString();
1036 if (string == nullptr) {
1037 AbortTransactionOrFail(self, "String.getCharsNoCheck with null object");
1041 DCHECK_GE(end, string->GetLength());
1047 string->GetChars(start, end, h_char_array, index);
1050 // This allows reading chars from the new style of String objects during compilation.
1054 mirror::String* string = shadow_frame->GetVRegReference(arg_offset)->AsString();
1055 if (string == nullptr) {
1056 AbortTransactionOrFail(self, "String.charAt with null object");
1059 result->SetC(string->CharAt(index));
1062 // This allows setting chars from the new style of String objects during compilation.
1067 mirror::String* string = shadow_frame->GetVRegReference(arg_offset)->AsString();
1068 if (string == nullptr) {
1069 AbortTransactionOrFail(self, "String.setCharAt with null object");
1072 string->SetCharAt(index, c);
1075 // This allows creating the new style of String objects during compilation.
1086 result->SetL(mirror::String::AllocFromCharArray<true>(self, char_count, h_char_array, offset, allocator));
1089 // This allows creating the new style of String objects during compilation.
1092 mirror::String* to_copy = shadow_frame->GetVRegReference(arg_offset)->AsString();
1098 Handle<mirror::String> h_string(hs.NewHandle(to_copy));
1101 result->SetL(mirror::String::AllocFromString<true>(self, h_string->GetLength(), h_string, 0,
1112 Handle<mirror::String> h_string(
1118 result->SetL(mirror::String::AllocFromString<true>(self, length, h_string, start, allocator));
1121 // This allows getting the char array for new style of String objects during compilation.
1125 mirror::String* string = shadow_frame->GetVRegReference(arg_offset)->AsString();
1126 if (string == nullptr) {
1127 AbortTransactionOrFail(self, "String.charAt with null object");
1130 result->SetL(string->ToCharArray(self));
1154 std::string caller(PrettyMethod(shadow_frame->GetLink()->GetMethod()));
1299 // A cutout for Integer.parseInt(String). Note: this code is conservative and will bail instead
1306 AbortTransactionOrFail(self, "Cannot parse null string, retry at runtime.");
1310 std::string string_value = obj->AsString()->ToModifiedUtf8();
1312 AbortTransactionOrFail(self, "Cannot parse empty string, retry at runtime.");
1324 AbortTransactionOrFail(self, "Cannot parse string %s, retry at runtime.", c_str);
1328 // Check whether the string wasn't exactly zero.
1330 AbortTransactionOrFail(self, "Cannot parse string %s, retry at runtime.", c_str);
1334 AbortTransactionOrFail(self, "Cannot parse string %s, retry at runtime.", c_str);
1350 AbortTransactionOrFail(self, "Cannot parse null string, retry at runtime.");
1354 std::string string_value = obj->AsString()->ToModifiedUtf8();
1356 AbortTransactionOrFail(self, "Cannot parse empty string, retry at runtime.");
1369 AbortTransactionOrFail(self, "Cannot parse string %s, retry at runtime.", c_str);
1373 // Check whether the string wasn't exactly zero.
1375 AbortTransactionOrFail(self, "Cannot parse string %s, retry at runtime.", c_str);
1379 AbortTransactionOrFail(self, "Cannot parse string %s, retry at runtime.", c_str);
1515 mirror::String* rhs = reinterpret_cast<mirror::Object*>(args[0])->AsString();
1517 AbortTransactionOrFail(self, "String.compareTo with null object");
1656 static std::unordered_map<std::string, InvokeHandler> invoke_handlers_;
1657 static std::unordered_map<std::string, JNIHandler> jni_handlers_;
1694 std::string name(PrettyMethod(shadow_frame->GetMethod()));
1715 std::string name(PrettyMethod(method));