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

Unified Diff: runtime/vm/code_generator.cc

Issue 882323004: VM: Share closure-call dispatchers. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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/parser.cc » ('j') | runtime/vm/parser_test.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator.cc
===================================================================
--- runtime/vm/code_generator.cc (revision 43291)
+++ runtime/vm/code_generator.cc (working copy)
@@ -739,9 +739,15 @@
if (getter.IsNull() || getter.IsMethodExtractor()) {
return false;
}
-
+ const Class& cache_class = Class::Handle(receiver_class.IsSignatureClass()
+ ? receiver_class.SuperClass()
+ : receiver_class.raw());
+ ASSERT(
+ !receiver_class.IsSignatureClass() ||
+ (receiver_class.SuperClass() == Type::Handle(
+ Isolate::Current()->object_store()->function_impl_type()).type_class()));
const Function& target_function =
- Function::Handle(receiver_class.GetInvocationDispatcher(
+ Function::Handle(cache_class.GetInvocationDispatcher(
target_name,
arguments_descriptor,
RawFunction::kInvokeFieldDispatcher));
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | runtime/vm/parser_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698