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

Unified Diff: runtime/vm/native_message_handler.cc

Issue 9347040: Add API function Dart_ZoneAllocate (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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
Index: runtime/vm/native_message_handler.cc
diff --git a/runtime/vm/native_message_handler.cc b/runtime/vm/native_message_handler.cc
index 8f47e7ff748afed58d107113ae100744aac54e29..366f313273bff2242b503b9e690b81869d81a656 100644
--- a/runtime/vm/native_message_handler.cc
+++ b/runtime/vm/native_message_handler.cc
@@ -35,9 +35,9 @@ void NativeMessageHandler::CheckAccess() {
static uint8_t* zone_allocator(
uint8_t* ptr, intptr_t old_size, intptr_t new_size) {
- ApiZone* zone = ApiNativeScope::Current()->zone();
+ ApiZone& zone = ApiNativeScope::Current()->zone();
return reinterpret_cast<uint8_t*>(
- zone->Reallocate(reinterpret_cast<uword>(ptr), old_size, new_size));
+ zone.Reallocate(reinterpret_cast<uword>(ptr), old_size, new_size));
}

Powered by Google App Engine
This is Rietveld 408576698