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

Unified Diff: runtime/vm/handles_impl.h

Issue 15950010: Inline handle allocation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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/handles.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/handles_impl.h
===================================================================
--- runtime/vm/handles_impl.h (revision 23312)
+++ runtime/vm/handles_impl.h (working copy)
@@ -88,7 +88,7 @@
// current Isolate, current zone and current handle scope exist. It
// asserts for this appropriately.
template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr>
-uword Handles<kHandleSizeInWords,
+inline uword Handles<kHandleSizeInWords,
kHandlesPerChunk,
kOffsetOfRawPtr>::AllocateHandle(Isolate* isolate) {
ASSERT(isolate != NULL);
@@ -387,6 +387,13 @@
return (next_handle_slot_ / kHandleSizeInWords);
}
+
+inline uword VMHandles::AllocateHandle(Isolate* isolate) {
+ return Handles<kVMHandleSizeInWords,
+ kVMHandlesPerChunk,
+ kOffsetOfRawPtr>::AllocateHandle(isolate);
+}
+
} // namespace dart
#endif // VM_HANDLES_IMPL_H_
« no previous file with comments | « runtime/vm/handles.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698