Index: runtime/vm/assembler.cc |
diff --git a/runtime/vm/assembler.cc b/runtime/vm/assembler.cc |
index cefafb8b3c58d6bf9b7399954699a6bcdc0da980..f2064f824bf02d5b5304c3142ba05b45975da747 100644 |
--- a/runtime/vm/assembler.cc |
+++ b/runtime/vm/assembler.cc |
@@ -24,7 +24,7 @@ DECLARE_FLAG(bool, disassemble); |
DECLARE_FLAG(bool, disassemble_optimized); |
static uword NewContents(intptr_t capacity) { |
- Zone* zone = Isolate::Current()->current_zone(); |
+ Zone* zone = Thread::Current()->zone(); |
uword result = zone->AllocUnsafe(capacity); |
#if defined(DEBUG) |
// Initialize the buffer with kBreakPointInstruction to force a break |