Index: vm/handles_impl.h |
=================================================================== |
--- vm/handles_impl.h (revision 3046) |
+++ vm/handles_impl.h (working copy) |
@@ -57,10 +57,7 @@ |
template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr> |
uword Handles<kHandleSizeInWords, |
kHandlesPerChunk, |
- kOffsetOfRawPtr>::AllocateHandle() { |
- // TODO(5411412): Accessing the current isolate is a performance problem, |
- // consider passing it down as a parameter. |
- Isolate* isolate = Isolate::Current(); |
+ kOffsetOfRawPtr>::AllocateHandle(Isolate* isolate) { |
ASSERT(isolate != NULL); |
ASSERT(isolate->current_zone() != NULL); |
ASSERT(isolate->top_handle_scope() != NULL); |
@@ -78,10 +75,7 @@ |
template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr> |
uword Handles<kHandleSizeInWords, |
kHandlesPerChunk, |
- kOffsetOfRawPtr>::AllocateZoneHandle() { |
- // TODO(5411412): Accessing the current isolate is a performance problem, |
- // consider passing it down as a parameter. |
- Isolate* isolate = Isolate::Current(); |
+ kOffsetOfRawPtr>::AllocateZoneHandle(Isolate* isolate) { |
ASSERT(isolate != NULL); |
ASSERT(isolate->current_zone() != NULL); |
ASSERT(isolate->no_handle_scope_depth() == 0); |