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

Unified Diff: runtime/vm/raw_object.h

Issue 11642003: Create and cache method extraction stub in the ICData. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: ready for review. Created 8 years 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/raw_object.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index d4c9a6002d4ee374c703a40c164c5d25fb18ef58..cac0862e46856cd76c4f725140c316921ad8f458 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -539,6 +539,7 @@ class RawFunction : public RawObject {
kImplicitGetter, // represents an implicit getter for fields.
kImplicitSetter, // represents an implicit setter for fields.
kConstImplicitGetter, // represents an implicit const getter for fields.
+ kMethodExtractor, // converts method into implicit closure on the receiver.
};
private:
@@ -583,8 +584,9 @@ class RawClosureData : public RawObject {
RawInstance* closure_; // Closure object for static implicit closures.
RawCode* closure_allocation_stub_; // Stub code for allocation of closures.
};
+ RawFunction* method_extractor_; // Stub code for method extraction.
RawObject** to() {
- return reinterpret_cast<RawObject**>(&ptr()->closure_allocation_stub_);
+ return reinterpret_cast<RawObject**>(&ptr()->method_extractor_);
}
};

Powered by Google App Engine
This is Rietveld 408576698