Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Unified Diff: runtime/vm/virtual_memory_fuchsia.cc

Issue 2154443002: [fuchsia] Update to new spelling of magenta syscalls (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/sdk/@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/os_thread_fuchsia.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/virtual_memory_fuchsia.cc
diff --git a/runtime/vm/virtual_memory_fuchsia.cc b/runtime/vm/virtual_memory_fuchsia.cc
index e694dca0e0e9710f064b2b499b0010bcea8b22a7..933f494ad0eacfde1013350ba3eac5ea49a9d93a 100644
--- a/runtime/vm/virtual_memory_fuchsia.cc
+++ b/runtime/vm/virtual_memory_fuchsia.cc
@@ -25,7 +25,7 @@ void VirtualMemory::InitOnce() {
VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) {
- mx_handle_t vmo = _magenta_vm_object_create(size);
+ mx_handle_t vmo = mx_vm_object_create(size);
if (vmo <= 0) {
return NULL;
}
@@ -37,9 +37,9 @@ VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) {
MX_VM_FLAG_PERM_WRITE |
MX_VM_FLAG_PERM_EXECUTE;
uintptr_t addr;
- mx_status_t status = _magenta_process_vm_map(0, vmo, 0, size, &addr, prot);
+ mx_status_t status = mx_process_vm_map(0, vmo, 0, size, &addr, prot);
if (status != NO_ERROR) {
- _magenta_handle_close(vmo);
+ mx_handle_close(vmo);
FATAL("VirtualMemory::ReserveInternal FAILED");
return NULL;
}
@@ -53,13 +53,13 @@ VirtualMemory::~VirtualMemory() {
if (!embedder_allocated()) {
// TODO(zra): Use reserved_size_.
// Issue MG-162.
- mx_status_t status = _magenta_process_vm_unmap(
+ mx_status_t status = mx_process_vm_unmap(
0, reinterpret_cast<uintptr_t>(address()), 0 /*reserved_size_*/);
if (status != NO_ERROR) {
FATAL("VirtualMemory::~VirtualMemory: unamp FAILED");
}
- status = _magenta_handle_close(handle());
+ status = mx_handle_close(handle());
if (status != NO_ERROR) {
FATAL("VirtualMemory::~VirtualMemory: handle_close FAILED");
}
« no previous file with comments | « runtime/vm/os_thread_fuchsia.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698