Searched refs:newStr (Results 1 – 6 of 6) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
D | string_hashmap.cpp | 29 auto *newStr = const_cast<NativeAreaAllocator *>( in FindOrInsertString() local 31 hashmap_.emplace(key, newStr); in FindOrInsertString() 34 return newStr; in FindOrInsertString()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mempool/src/ |
D | maple_string.cpp | 182 MapleString newStr(memPool); in substr() local 183 newStr.data = static_cast<char *>(newStr.memPool->Malloc((1 + len) * sizeof(char))); in substr() 185 newStr[i] = this->data[i + pos]; in substr() 187 newStr.dataLength = len; in substr() 188 newStr.data[newStr.dataLength] = '\0'; in substr() 189 return newStr; in substr()
|
/arkcompiler/ets_runtime/test/moduletest/string/ |
D | string.js | 179 let newStr = new String("adcdcdccda") 180 newStr.split("d") 181 split = newStr.split("d") 184 print(newStr.split("d"))
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
D | global_tables.h | 656 T *newStr = new T(str); in GetOrCreateStrIdxFromName() local 657 stringTable.push_back(newStr); in GetOrCreateStrIdxFromName() 658 stringTableMap[newStr] = strIdx; in GetOrCreateStrIdxFromName() 662 T *newStr = new T(str); in GetOrCreateStrIdxFromName() local 663 stringTable.push_back(newStr); in GetOrCreateStrIdxFromName() 664 stringTableMap[newStr] = strIdx; in GetOrCreateStrIdxFromName()
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/ |
D | array_native_test_2.cpp | 503 ets_string newStr = env_->NewStringUTF(newExample.c_str()); in TEST_F() local 504 ASSERT_NE(newStr, nullptr); in TEST_F() 510 env_->SetObjectArrayElement(strArray, -1, newStr); in TEST_F() 518 env_->SetObjectArrayElement(strArray, 5_I, newStr); in TEST_F()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_string.cpp | 2118 JSHandle<EcmaString> newStr = factory->NewFromUtf16Literal(&c, 1); in StringToList() local 2119 ElementAccessor::Set(thread, newArrayHandle, index, newStr.GetTaggedValue(), true); in StringToList()
|