Chromium Code Reviews| 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; |