12 using namespace ::v8::internal;
17 VirtualMemory* vm =
new VirtualMemory(1 *
MB);
18 CHECK(vm->IsReserved());
19 void* block_addr = vm->address();
20 size_t block_size = 4 *
KB;
21 CHECK(vm->Commit(block_addr, block_size,
false));
23 int* addr =
static_cast<int*
>(block_addr);
25 CHECK(vm->Uncommit(block_addr, block_size));
30 TEST(GetCurrentProcessId) {
32 CHECK_EQ(static_cast<int>(::GetCurrentProcessId()),
33 OS::GetCurrentProcessId());
#define CHECK_EQ(expected, value)