| Index: runtime/lib/mirrors.cc
|
| ===================================================================
|
| --- runtime/lib/mirrors.cc (revision 44266)
|
| +++ runtime/lib/mirrors.cc (working copy)
|
| @@ -73,10 +73,11 @@
|
| // Only generative constructors can have initializing formals.
|
| if (!func.IsGenerativeConstructor()) return;
|
|
|
| - Isolate* isolate = Isolate::Current();
|
| - const Class& cls = Class::Handle(isolate, func.Owner());
|
| + Thread* thread = Thread::Current();
|
| + Zone* zone = thread->zone();
|
| + const Class& cls = Class::Handle(zone, func.Owner());
|
| const Error& error = Error::Handle(
|
| - isolate, cls.EnsureIsFinalized(Isolate::Current()));
|
| + zone, cls.EnsureIsFinalized(thread->isolate()));
|
| if (!error.IsNull()) {
|
| Exceptions::PropagateError(error);
|
| UNREACHABLE();
|
| @@ -83,7 +84,7 @@
|
| }
|
| if (!func.HasCode()) {
|
| const Error& error = Error::Handle(
|
| - isolate, Compiler::CompileFunction(isolate, func));
|
| + zone, Compiler::CompileFunction(thread, func));
|
| if (!error.IsNull()) {
|
| Exceptions::PropagateError(error);
|
| UNREACHABLE();
|
|
|