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

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 iposva@ 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 fc80adc4fc3752389b16996199169dc1ab7fd263..d1352c021516951b20f1c9ee5e8af40e37f2142b 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_; }
turnidge 2012/02/16 17:54:56 This is better, thanks.
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