Home
last modified time | relevance | path

Searched refs:MemoryBlock (Results 1 – 13 of 13) sorted by relevance

/external/llvm/include/llvm/Support/
DMemory.h29 class MemoryBlock {
31 MemoryBlock() : Address(nullptr), Size(0) { } in MemoryBlock() function
32 MemoryBlock(void *addr, size_t size) : Address(addr), Size(size) { } in MemoryBlock() function
77 static MemoryBlock allocateMappedMemory(size_t NumBytes,
78 const MemoryBlock *const NearBlock,
91 static std::error_code releaseMappedMemory(MemoryBlock &Block);
108 static std::error_code protectMappedMemory(const MemoryBlock &Block,
121 static MemoryBlock AllocateRWX(size_t NumBytes,
122 const MemoryBlock *NearBlock,
132 static bool ReleaseRWX(MemoryBlock &block, std::string *ErrMsg = nullptr);
[all …]
/external/llvm/unittests/Support/
DMemoryTest.cpp45 bool doesOverlap(MemoryBlock M1, MemoryBlock M2) { in doesOverlap()
61 MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags,EC); in TEST_P()
72 MemoryBlock M1 = Memory::allocateMappedMemory(16, nullptr, Flags, EC); in TEST_P()
74 MemoryBlock M2 = Memory::allocateMappedMemory(64, nullptr, Flags, EC); in TEST_P()
76 MemoryBlock M3 = Memory::allocateMappedMemory(32, nullptr, Flags, EC); in TEST_P()
92 MemoryBlock M4 = Memory::allocateMappedMemory(16, nullptr, Flags, EC); in TEST_P()
107 MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags,EC); in TEST_P()
126 MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags, in TEST_P()
129 MemoryBlock M2 = Memory::allocateMappedMemory(8 * sizeof(int), nullptr, Flags, in TEST_P()
132 MemoryBlock M3 = Memory::allocateMappedMemory(4 * sizeof(int), nullptr, Flags, in TEST_P()
[all …]
/external/llvm/lib/Support/Unix/
DMemory.inc82 MemoryBlock
84 const MemoryBlock *const NearBlock,
89 return MemoryBlock();
99 return MemoryBlock();
127 return MemoryBlock();
130 MemoryBlock Result;
141 Memory::releaseMappedMemory(MemoryBlock &M) {
155 Memory::protectMappedMemory(const MemoryBlock &M, unsigned Flags) {
179 MemoryBlock
180 Memory::AllocateRWX(size_t NumBytes, const MemoryBlock* NearBlock,
[all …]
/external/llvm/lib/Support/Windows/
DMemory.inc70 MemoryBlock Memory::allocateMappedMemory(size_t NumBytes,
71 const MemoryBlock *const NearBlock,
76 return MemoryBlock();
104 return MemoryBlock();
107 MemoryBlock Result;
117 std::error_code Memory::releaseMappedMemory(MemoryBlock &M) {
130 std::error_code Memory::protectMappedMemory(const MemoryBlock &M,
156 MemoryBlock Memory::AllocateRWX(size_t NumBytes,
157 const MemoryBlock *NearBlock,
159 MemoryBlock MB;
[all …]
/external/llvm/tools/lli/
DRemoteMemoryManager.h33 Allocation(sys::MemoryBlock mb, unsigned a, bool code) in Allocation()
36 sys::MemoryBlock MB;
60 sys::MemoryBlock Near;
61 sys::MemoryBlock allocateSection(uintptr_t Size);
DRemoteTarget.cpp33 sys::MemoryBlock *Prev = Allocations.size() ? &Allocations.back() : nullptr; in allocateSpace()
34 sys::MemoryBlock Mem = sys::Memory::AllocateRWX(Size, Prev, &ErrorMsg); in allocateSpace()
53 sys::MemoryBlock Mem((void*)Address, Size); in loadCode()
DRemoteMemoryManager.cpp39 sys::MemoryBlock Block = allocateSection(Size); in allocateCodeSection()
55 sys::MemoryBlock Block = allocateSection(Size); in allocateDataSection()
63 sys::MemoryBlock RemoteMemoryManager::allocateSection(uintptr_t Size) { in allocateSection()
65 sys::MemoryBlock MB = sys::Memory::allocateMappedMemory(Size, in allocateSection()
DRemoteTarget.h30 typedef SmallVector<sys::MemoryBlock, 16> AllocMapType;
/external/llvm/include/llvm/ExecutionEngine/
DSectionMemoryManager.h87 SmallVector<sys::MemoryBlock, 16> AllocatedMem;
88 SmallVector<sys::MemoryBlock, 16> FreeMem;
89 sys::MemoryBlock Near;
/external/llvm/lib/ExecutionEngine/
DSectionMemoryManager.cpp52 sys::MemoryBlock &MB = MemGroup.FreeMem[i]; in allocateSection()
59 MemGroup.FreeMem[i] = sys::MemoryBlock((void*)(Addr + Size), in allocateSection()
75 sys::MemoryBlock MB = sys::Memory::allocateMappedMemory(RequiredSize, in allocateSection()
99 MemGroup.FreeMem.push_back(sys::MemoryBlock((void*)(Addr + Size), FreeSize)); in allocateSection()
/external/llvm/tools/llvm-rtdyld/
Dllvm-rtdyld.cpp112 SmallVector<sys::MemoryBlock, 16> FunctionMemory;
113 SmallVector<sys::MemoryBlock, 16> DataMemory;
140 sys::MemoryBlock MB = sys::Memory::AllocateRWX(Size, nullptr, nullptr); in allocateCodeSection()
150 sys::MemoryBlock MB = sys::Memory::AllocateRWX(Size, nullptr, nullptr); in allocateDataSection()
314 sys::MemoryBlock &Data = MemMgr.FunctionMemory[i]; in executeInput()
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/
Dcmscgats.c171 char* MemoryBlock; // The stream if holded in memory member
1040 if (it8->MemoryBlock) in cmsIT8Free()
1041 _cmsFree(it8 ->ContextID, it8->MemoryBlock); in cmsIT8Free()
1290 it8->MemoryBlock = NULL; in cmsIT8Alloc()
2310 it8 ->MemoryBlock = (char*) _cmsMalloc(ContextID, len + 1); in cmsIT8LoadFromMem()
2312 strncpy(it8 ->MemoryBlock, (const char*) Ptr, len); in cmsIT8LoadFromMem()
2313 it8 ->MemoryBlock[len] = 0; in cmsIT8LoadFromMem()
2316 it8-> Source = it8 -> MemoryBlock; in cmsIT8LoadFromMem()
2327 _cmsFree(ContextID, it8->MemoryBlock); in cmsIT8LoadFromMem()
2328 it8 -> MemoryBlock = NULL; in cmsIT8LoadFromMem()
/external/chromium-trace/trace-viewer/tracing/test_data/
Dddms_calculator_start.trace324 0x70fdb008 java.nio.DirectByteBuffer <init> (Ljava/nio/MemoryBlock;IIZLjava/nio/channels/FileChanne…
328 0x70fdb0c8 java.nio.MappedByteBuffer <init> (Ljava/nio/MemoryBlock;ILjava/nio/channels/FileChannel$…
337 0x70fdcaa8 java.nio.MemoryBlock$UnmanagedBlock <init> (JJ)V MemoryBlock.java
338 0x70fdcad8 java.nio.MemoryBlock$UnmanagedBlock <init> (JJLjava/nio/MemoryBlock$1;)V MemoryBlock.java
339 0x70fdcb08 java.nio.MemoryBlock <init> (JJ)V MemoryBlock.java
340 0x70fdcb38 java.nio.MemoryBlock <init> (JJLjava/nio/MemoryBlock$1;)V MemoryBlock.java
341 0x70fdcbc8 java.nio.MemoryBlock wrapFromJni (JJ)Ljava/nio/MemoryBlock; MemoryBlock.java
342 0x70fdcc58 java.nio.MemoryBlock getSize ()J MemoryBlock.java
343 0x70fdcc88 java.nio.MemoryBlock isAccessible ()Z MemoryBlock.java
344 0x70fdccb8 java.nio.MemoryBlock isFreed ()Z MemoryBlock.java
[all …]