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

Unified Diff: runtime/lib/mirrors.cc

Issue 982873004: Thread/Isolate refactoring: new(Isolate) -> new(Zone) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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/lib/isolate.cc ('k') | runtime/lib/regexp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/lib/regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698