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

Unified Diff: runtime/lib/mirrors.cc

Issue 2781483005: Improve internal compiler API so that OSR code is never installed on function. (Closed)
Patch Set: Created 3 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 | « no previous file | runtime/vm/code_generator.cc » ('j') | runtime/vm/compiler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/mirrors.cc
diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc
index 1dade418b20d37dcac6e91577b4a9dfe5a4c9293..6668c4dc54c0062cd8c35fbcc4f6e60de6eabd1a 100644
--- a/runtime/lib/mirrors.cc
+++ b/runtime/lib/mirrors.cc
@@ -96,10 +96,10 @@ static void EnsureConstructorsAreCompiled(const Function& func) {
UNREACHABLE();
}
if (!func.HasCode()) {
- const Error& error =
- Error::Handle(zone, Compiler::CompileFunction(thread, func));
- if (!error.IsNull()) {
- Exceptions::PropagateError(error);
+ const Object& result =
Vyacheslav Egorov (Google) 2017/03/30 09:58:52 There are a lot of places that do this. Maybe you
erikcorry 2017/03/30 12:26:33 Done.
+ Object::Handle(zone, Compiler::CompileFunction(thread, func));
+ if (result.IsError()) {
+ Exceptions::PropagateError(Error::Cast(result));
UNREACHABLE();
}
}
« no previous file with comments | « no previous file | runtime/vm/code_generator.cc » ('j') | runtime/vm/compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698