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

Unified Diff: runtime/vm/instructions_arm64.h

Issue 1418863003: Precompilation: Generate instance calls as IC calls that can switch to Megamoprhic calls. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | « runtime/vm/instructions_arm.cc ('k') | runtime/vm/instructions_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_arm64.h
diff --git a/runtime/vm/instructions_arm64.h b/runtime/vm/instructions_arm64.h
index 0d2c96d70ceba0d775b65f631bd78f6504fa8c63..6195d52b5942ed825a22fc1064e91dd669e4e63c 100644
--- a/runtime/vm/instructions_arm64.h
+++ b/runtime/vm/instructions_arm64.h
@@ -106,6 +106,27 @@ class NativeCallPattern : public ValueObject {
};
+// Instance call that can switch from an IC call to a megamorphic call
+// load ICData load MegamorphicCache
+// call ICLookup stub -> call MegamorphicLookup stub
+// call target call target
+class SwitchableCallPattern : public ValueObject {
+ public:
+ SwitchableCallPattern(uword pc, const Code& code);
+
+ RawObject* cache() const;
+ void SetCache(const MegamorphicCache& cache) const;
+ void SetLookupStub(const Code& stub) const;
+
+ private:
+ const ObjectPool& object_pool_;
+ intptr_t cache_pool_index_;
+ intptr_t stub_pool_index_;
+
+ DISALLOW_COPY_AND_ASSIGN(SwitchableCallPattern);
+};
+
+
class ReturnPattern : public ValueObject {
public:
explicit ReturnPattern(uword pc);
« no previous file with comments | « runtime/vm/instructions_arm.cc ('k') | runtime/vm/instructions_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698