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

Unified Diff: runtime/lib/mirrors.cc

Issue 294943008: - Landing https://codereview.chromium.org/293963008/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « no previous file | runtime/vm/code_generator.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 36443)
+++ runtime/lib/mirrors.cc (working copy)
@@ -101,14 +101,17 @@
// Only generative constructors can have initializing formals.
if (!func.IsConstructor()) return;
- const Class& cls = Class::Handle(func.Owner());
- const Error& error = Error::Handle(cls.EnsureIsFinalized(Isolate::Current()));
+ Isolate* isolate = Isolate::Current();
+ const Class& cls = Class::Handle(isolate, func.Owner());
+ const Error& error = Error::Handle(
+ isolate, cls.EnsureIsFinalized(Isolate::Current()));
if (!error.IsNull()) {
ThrowInvokeError(error);
UNREACHABLE();
}
if (!func.HasCode()) {
- const Error& error = Error::Handle(Compiler::CompileFunction(func));
+ const Error& error = Error::Handle(
+ isolate, Compiler::CompileFunction(isolate, func));
if (!error.IsNull()) {
ThrowInvokeError(error);
UNREACHABLE();
« no previous file with comments | « no previous file | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698