/third_party/node/test/cctest/ |
D | test_util.cc | 7 using node::Malloc; 107 TEST(UtilTest, Malloc) { in TEST() argument 108 TEST_AND_FREE(Malloc<char>(0)); in TEST() 109 TEST_AND_FREE(Malloc<char>(1)); in TEST() 110 TEST_AND_FREE(Malloc(0)); in TEST() 111 TEST_AND_FREE(Malloc(1)); in TEST()
|
/third_party/node/src/ |
D | cares_wrap.h | 84 dest->h_name = node::Malloc<char>(name_size); in cares_wrap_hostent_cpy() 94 dest->h_aliases = node::Malloc<char*>(alias_count + 1); in cares_wrap_hostent_cpy() 97 dest->h_aliases[i] = node::Malloc(cur_alias_size); in cares_wrap_hostent_cpy() 109 dest->h_addr_list = node::Malloc<char*>(list_count + 1); in cares_wrap_hostent_cpy() 111 dest->h_addr_list[i] = node::Malloc(src->h_length); in cares_wrap_hostent_cpy() 314 buf_copy = node::Malloc<unsigned char>(answer_len); in Callback() 337 host_copy = node::Malloc<hostent>(1); in Callback()
|
D | util-inl.h | 375 inline T* Malloc(size_t n) { in Malloc() function 389 inline char* Malloc(size_t n) { return Malloc<char>(n); } in Malloc() function
|
D | util.h | 87 inline T* Malloc(size_t n); 91 inline char* Malloc(size_t n); 574 explicit MallocedBuffer(size_t size) : data(Malloc<T>(size)), size(size) {} in MallocedBuffer()
|
D | node_http_parser.cc | 645 return uv_buf_init(Malloc(suggested_size), suggested_size); in OnStreamAlloc()
|
D | node.cc | 975 *exec_argv = Malloc<const char*>(*exec_argc); in Init()
|
/third_party/skia/modules/canvaskit/tests/ |
D | path.spec.js | 122 const mVerbs = CanvasKit.Malloc(Uint8Array, 6); 123 const mPoints = CanvasKit.Malloc(Float32Array, 18); 124 const mWeights = CanvasKit.Malloc(Float32Array, 1); 194 const mVerbs = CanvasKit.Malloc(Uint8Array, 6); 195 const mPoints = CanvasKit.Malloc(Float32Array, 18); 196 const mWeights = CanvasKit.Malloc(Float32Array, 1); 439 const pointsObj = CanvasKit.Malloc(Float32Array, 6 * 2);
|
D | font.spec.js | 162 const mXforms = CanvasKit.Malloc(Float32Array, ids.length * 4); 367 const a = CanvasKit.Malloc(Uint16Array, 1); 374 const a = CanvasKit.Malloc(Uint16Array, 1); 384 const a = CanvasKit.Malloc(Float32Array, 2); 392 const a = CanvasKit.Malloc(Float32Array, 2);
|
D | core.spec.js | 68 const ambientColor = CanvasKit.Malloc(Float32Array, 4); 70 const spotColor = CanvasKit.Malloc(Float32Array, 4); 155 const rdsData = CanvasKit.Malloc(Uint8Array, 512 * 5*512 * 4); 264 const srcs = CanvasKit.Malloc(Float32Array, 16); 273 const dsts = CanvasKit.Malloc(Float32Array, 16); 282 const colors = new CanvasKit.Malloc(Uint32Array, 4); 551 const colors = CanvasKit.Malloc(Float32Array, 12); 1017 const mZPlane = CanvasKit.Malloc(Float32Array, 3); 1019 const mLight = CanvasKit.Malloc(Float32Array, 3); 1095 const mObj = CanvasKit.Malloc(Uint8Array, CANVAS_WIDTH * CANVAS_HEIGHT * 4); [all …]
|
D | canvas.spec.js | 206 const rrect = CanvasKit.Malloc(Float32Array, 12); 368 const colorObj = new CanvasKit.Malloc(Float32Array, 20); 578 const mPointsObj = CanvasKit.Malloc(Float32Array, 3*2);
|
D | paragraph.spec.js | 434 const mallocedColor = CanvasKit.Malloc(Float32Array, 4);
|
/third_party/skia/modules/canvaskit/ |
D | interface.js | 11 _scratchColor = CanvasKit.Malloc(Float32Array, 4); // 4 color scalars. 14 _scratch4x4Matrix = CanvasKit.Malloc(Float32Array, 16); // 16 matrix scalars. 17 _scratch3x3Matrix = CanvasKit.Malloc(Float32Array, 9); // 9 matrix scalars. 20 _scratchRRect = CanvasKit.Malloc(Float32Array, 12); // 4 scalars for rrect, 8 for radii. 23 _scratchRRect2 = CanvasKit.Malloc(Float32Array, 12); // 4 scalars for rrect, 8 for radii. 26 _scratchFourFloatsA = CanvasKit.Malloc(Float32Array, 4); 29 _scratchFourFloatsB = CanvasKit.Malloc(Float32Array, 4); 32 _scratchThreeFloatsA = CanvasKit.Malloc(Float32Array, 3); // 3 floats to represent SkVector3 35 _scratchThreeFloatsB = CanvasKit.Malloc(Float32Array, 3); // 3 floats to represent SkVector3 38 _scratchIRect = CanvasKit.Malloc(Int32Array, 4);
|
D | CHANGELOG.md | 94 - `CanvasKit.*Builder` have all been removed. Clients should use Malloc instead. 200 - `Canvas.drawShadow()` now accepts zPlaneParams and lightPos as Malloc'ed and regular 335 Float32Array or a piece of memory returned by CanvasKit.Malloc. These floats are the 339 returned by CanvasKit.Malloc. These ints are the left, top, right, bottom numbers of 343 Float32Array or a piece of memory returned by CanvasKit.Malloc. The first 4 floats 368 - `SkTextBlob.MakeFromRSXform` also accepts a (possibly Malloc'd) Float32Array of RSXforms ( 409 `CanvasKit.Malloc` is the better tool and will replace these soon. 459 `Malloc.toTypedArray`). 471 - Color arrays may also be objects created with CanvasKit.Malloc 477 - `TextStyle.color` can correctly be a Malloc'd Float32Array. [all …]
|
D | memory.js | 26 CanvasKit.Malloc = function(typedArray, len) { class in CanvasKit
|
D | font.js | 313 return CanvasKit.Malloc(Uint16Array, numGlyphIDs);
|
D | externs.js | 59 Malloc: function() {}, method
|
/third_party/skia/modules/canvaskit/npm_build/types/ |
D | canvaskit-wasm-tests.ts | 88 const someMatrix = CK.Malloc(Float32Array, 16); // Make sure matrixes can be malloc'd. 145 const mallocedVector3 = CK.Malloc(Float32Array, 3); 163 const m = CK.Malloc(Uint8Array, 10); 287 const m = CK.Malloc(Uint8Array, 10); 380 const mallocedVector3 = CK.Malloc(Float32Array, 3); 426 const verbs = CK.Malloc(Uint8Array, 10); 427 const points = CK.Malloc(Float32Array, 10); 606 const mFoo = CK.Malloc(Float32Array, 5); 841 const m = CK.Malloc(Uint8Array, 5 * 5 * 4); 905 const mXforms = CK.Malloc(Float32Array, ids.length * 4);
|
/third_party/mindspore/patches/ |
D | 0014-train-0002.patch | 183 - void *Malloc(TypeId type_id, size_t size, MallocType type) { 184 + void *Malloc(TypeId type_id, size_t size, MallocType type, const std::string &tensor_name = "") { 600 + auto temp_data = allocator_->Malloc(kNumberTypeFloat16, output_tensor_->Size(), kWorkspace); 1124 + bias_ptr_ = allocator_->Malloc(kNumberTypeUInt8, kOnlineSize, kOnlinePackWeight, 1128 + allocator_->Malloc(kNumberTypeUInt8, kOnlineSize, kOnlinePackWeight, node_->name_ + "_bias_o… 1141 + a_pack_ptr_ = allocator_->Malloc(kNumberTypeFloat16, kOnlineSize, kOnlinePackWeight, 1148 + a_pack_ptr_ = allocator_->Malloc(kNumberTypeFloat16, a_pack_ptr_size_, kWorkspace); 2437 - reinterpret_cast<float *>(allocator_->Malloc(kNumberTypeFloat32, weight_h->Size(), kOfflineP… 2443 …state_bias_ = reinterpret_cast<float *>(allocator_->Malloc(kNumberTypeFloat32, kOnlineSize, kOnlin… 2470 - bias_ptr_ = reinterpret_cast<float *>(allocator_->Malloc(kNumberTypeFloat32, kOnlineSize, kOnl… [all …]
|
D | 0015-train-0003.patch | 1316 + run_buffer_ = ms_context_->allocator->Malloc(run_buffer_size); 3820 - bias_ptr_ = allocator_->Malloc(kNumberTypeUInt8, kOnlineSize, kOnlinePackWeight, 3824 - allocator_->Malloc(kNumberTypeUInt8, kOnlineSize, kOnlinePackWeight, node_->name_ + "_bias_o… 3825 + allocator_->Malloc(data_type_, kOnlineSize, kOnlinePackWeight, bias_tensor_->tensor_name() +… 3827 + bias_ptr_ = allocator_->Malloc(data_type_, kOnlineSize, kOnlinePackWeight, node_->name_ + "_bi… 3841 - a_pack_ptr_ = allocator_->Malloc(kNumberTypeFloat16, kOnlineSize, kOnlinePackWeight, 3842 + a_pack_ptr_ = allocator_->Malloc(data_type_, kOnlineSize, kOnlinePackWeight, 3849 - a_pack_ptr_ = allocator_->Malloc(kNumberTypeFloat16, a_pack_ptr_size_, kWorkspace); 3850 + a_pack_ptr_ = allocator_->Malloc(data_type_, a_pack_ptr_size_, kWorkspace); 3952 - reinterpret_cast<float *>(allocator_->Malloc(kNumberTypeFloat32, packed_weight_data_size, kOff… [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 1199 auto *Malloc = dyn_cast<CallInst>(Memset->getArgOperand(0)); in foldMallocMemset() local 1200 if (!Malloc || !Malloc->hasOneUse()) in foldMallocMemset() 1204 Function *InnerCallee = Malloc->getCalledFunction(); in foldMallocMemset() 1214 if (Memset->getArgOperand(2) != Malloc->getArgOperand(0)) in foldMallocMemset() 1219 B.SetInsertPoint(Malloc->getParent(), ++Malloc->getIterator()); in foldMallocMemset() 1220 const DataLayout &DL = Malloc->getModule()->getDataLayout(); in foldMallocMemset() 1223 Malloc->getArgOperand(0), in foldMallocMemset() 1224 Malloc->getAttributes(), B, *TLI)) { in foldMallocMemset() 1225 substituteInParent(Malloc, Calloc); in foldMallocMemset()
|
D | BuildLibCalls.cpp | 1280 FunctionCallee Malloc = M->getOrInsertFunction(MallocName, B.getInt8PtrTy(), in emitMalloc() local 1283 CallInst *CI = B.CreateCall(Malloc, Num, MallocName); in emitMalloc() 1286 dyn_cast<Function>(Malloc.getCallee()->stripPointerCasts())) in emitMalloc()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 1558 Instruction *Malloc = in tryToOptimizeStoreOfMallocToGlobal() local 1561 Instruction *Cast = new BitCastInst(Malloc, CI->getType(), "tmp", CI); in tryToOptimizeStoreOfMallocToGlobal() 1564 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Malloc)) in tryToOptimizeStoreOfMallocToGlobal() 1567 CI = cast<CallInst>(Malloc); in tryToOptimizeStoreOfMallocToGlobal()
|
/third_party/skia/tools/perf-canvaskit-puppeteer/ |
D | canvas_perf.js | 128 ctx.rect = CanvasKit.Malloc(Float32Array, 4);
|
/third_party/node/doc/guides/ |
D | cpp-style-guide.md | 198 * `Malloc()`, `Calloc()`, etc. from `util.h` abort in Out-of-Memory situations
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Core.cpp | 3425 Instruction* Malloc = CallInst::CreateMalloc(unwrap(B)->GetInsertBlock(), in LLVMBuildMalloc() local 3428 return wrap(unwrap(B)->Insert(Malloc, Twine(Name))); in LLVMBuildMalloc() 3436 Instruction* Malloc = CallInst::CreateMalloc(unwrap(B)->GetInsertBlock(), in LLVMBuildArrayMalloc() local 3439 return wrap(unwrap(B)->Insert(Malloc, Twine(Name))); in LLVMBuildArrayMalloc()
|