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

Unified Diff: runtime/vm/object.cc

Issue 678763004: Make CTX allocatable by the register allocator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: incorporated latest comments Created 6 years, 2 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 41393)
+++ runtime/vm/object.cc (working copy)
@@ -10789,7 +10789,7 @@
return "SavedEntryCtx";
break;
case RawLocalVarDescriptors::kSavedCurrentContext:
- return "SavedCurrentCtx";
+ return "CurrentCtx";
break;
default:
UNREACHABLE();
@@ -13493,15 +13493,12 @@
}
-bool Instance::IsCallable(Function* function, Context* context) const {
+bool Instance::IsCallable(Function* function) const {
Class& cls = Class::Handle(clazz());
if (cls.IsSignatureClass()) {
if (function != NULL) {
*function = Closure::function(*this);
}
- if (context != NULL) {
- *context = Closure::context(*this);
- }
return true;
}
// Try to resolve a "call" method.
@@ -13512,9 +13509,6 @@
if (function != NULL) {
*function = call_function.raw();
}
- if (context != NULL) {
- *context = Isolate::Current()->object_store()->empty_context();
- }
return true;
}
cls = cls.SuperClass();

Powered by Google App Engine
This is Rietveld 408576698