38 using namespace ::v8::internal;
42 VirtualMemory* vm =
new VirtualMemory(1 *
MB);
43 CHECK(vm->IsReserved());
44 void* block_addr = vm->address();
45 size_t block_size = 4 *
KB;
46 CHECK(vm->Commit(block_addr, block_size,
false));
48 int* addr =
static_cast<int*
>(block_addr);
50 CHECK(vm->Uncommit(block_addr, block_size));
55 TEST(GetCurrentProcessId) {
56 CHECK_EQ(static_cast<int>(::GetCurrentProcessId()),
57 OS::GetCurrentProcessId());
#define CHECK_EQ(expected, value)