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

Unified Diff: runtime/vm/dart_api_state.h

Issue 9347040: Add API function Dart_ZoneAllocate (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from turnidge@ 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/dart_api_state.h
diff --git a/runtime/vm/dart_api_state.h b/runtime/vm/dart_api_state.h
index a1f276ca8c79bf734b0dba9a215355096f785c2c..5b21db786f0566186697eb644003787aa5b78897 100644
--- a/runtime/vm/dart_api_state.h
+++ b/runtime/vm/dart_api_state.h
@@ -362,7 +362,7 @@ class ApiLocalScope {
uword stack_marker() const { return stack_marker_; }
void set_previous(ApiLocalScope* value) { previous_ = value; }
LocalHandles* local_handles() { return &local_handles_; }
- ApiZone& zone() { return zone_; }
+ ApiZone* zone() { return &zone_; }
private:
ApiLocalScope* previous_;
@@ -469,7 +469,7 @@ class ApiState {
int total = 0;
ApiLocalScope* scope = top_scope_;
while (scope != NULL) {
- total += scope->zone().SizeInBytes();
+ total += scope->zone()->SizeInBytes();
scope = scope->previous();
}
return total;

Powered by Google App Engine
This is Rietveld 408576698