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

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: remove hand written assembly stub Created 7 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
Index: runtime/vm/raw_object.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index f720e972846f6a8ad2660a189ebced087facb666..4ce9163780bb2fefb2b1667f32fe95c150409e4e 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -540,6 +540,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:
@@ -584,8 +585,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