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

Unified Diff: runtime/lib/mirrors.cc

Issue 2857853003: Fix building of parameter descriptors from Kernel (Closed)
Patch Set: Created 3 years, 8 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/kernel_to_il.h » ('j') | no next file with comments »
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 89d4f7b2fdab88d282c649838118d1d56190cab7..740679677e73b7c07fcff69e05cce55435fdc6df 100644
--- a/runtime/lib/mirrors.cc
+++ b/runtime/lib/mirrors.cc
@@ -145,11 +145,8 @@ static RawInstance* CreateParameterMirrorList(const Function& func,
// * Whether a parameters has been declared as final.
// * Any metadata associated with the parameter.
Object& result = Object::Handle();
-
- kernel::TreeNode* kernel_node =
- reinterpret_cast<kernel::TreeNode*>(func.kernel_function());
- if (kernel_node != NULL) {
- result = kernel::BuildParameterDescriptor(kernel_node);
+ if (func.kernel_function() != NULL) {
+ result = kernel::BuildParameterDescriptor(func);
} else {
result = Parser::ParseFunctionParameters(func);
}
« no previous file with comments | « no previous file | runtime/vm/kernel_to_il.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698