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

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: 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
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/native_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..601f4b458efb0ccc98dea976da1245e81bfd4a89 100644
--- a/runtime/vm/dart_api_state.h
+++ b/runtime/vm/dart_api_state.h
@@ -537,7 +537,7 @@ class ApiNativeScope {
Thread::GetThreadLocal(Api::api_native_key_));
}
- ApiZone* zone() { return &zone_; }
+ ApiZone& zone() { return zone_; }
Ivan Posva 2012/02/15 16:08:46 It should probably really stay as a ApiZone*. Mayb
Søren Gjesse 2012/02/15 16:42:03 Done.
private:
ApiZone zone_;
@@ -555,10 +555,10 @@ class ApiGrowableArray : public BaseGrowableArray<T, ValueObject> {
explicit ApiGrowableArray(int initial_capacity)
: BaseGrowableArray<T, ValueObject>(
initial_capacity,
- ApiNativeScope::Current()->zone()->GetBaseZone()) {}
+ ApiNativeScope::Current()->zone().GetBaseZone()) {}
ApiGrowableArray()
: BaseGrowableArray<T, ValueObject>(
- ApiNativeScope::Current()->zone()->GetBaseZone()) {}
+ ApiNativeScope::Current()->zone().GetBaseZone()) {}
};
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/native_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698