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

Unified Diff: runtime/vm/object.cc

Issue 265443002: VM: Explicitly load function and context before calling a closure. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 35546)
+++ runtime/vm/object.cc (working copy)
@@ -13848,6 +13848,10 @@
if (cls.raw() == Object::dynamic_class() && (isolate != Dart::vm_isolate())) {
return Object::dynamic_type();
}
+ if (cls.raw() == Object::function_class() &&
srdjan 2014/04/30 15:41:58 cls.IsFunctionClass()
Florian Schneider 2014/04/30 16:02:19 This seems equivalent and consistent with the code
+ (isolate != Dart::vm_isolate())) {
+ return Object::dynamic_type();
srdjan 2014/04/30 15:41:58 I would like to have Regis look into this change.
Florian Schneider 2014/04/30 16:02:19 Now that I look at it again, actually, this should
Florian Schneider 2014/04/30 16:05:24 No, not function_type, but the type corresponding
regis 2014/04/30 16:46:39 I fail to see what problem you are trying to solve
+ }
// Fast canonical lookup/registry for simple types.
if ((cls.NumTypeArguments() == 0) && !cls.IsSignatureClass()) {
type = cls.CanonicalType();
« runtime/vm/flow_graph_compiler.h ('K') | « runtime/vm/intermediate_language_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698