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

Unified Diff: runtime/vm/stub_code.h

Issue 11299298: Cache lookups at megamorphic call sites in optimized code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/stub_code.h
diff --git a/runtime/vm/stub_code.h b/runtime/vm/stub_code.h
index 48ed808b9b97f1028c0bcd29c1c4f03805ef0ba8..da0fe25b95bad8c67b125021f09e3fa74ada66ac 100644
--- a/runtime/vm/stub_code.h
+++ b/runtime/vm/stub_code.h
@@ -159,6 +159,8 @@ class StubCode {
static const intptr_t kNoInstantiator = 0;
private:
+ friend class MegamorphicCacheTable;
+
static const intptr_t kStubCodeSize = 4 * KB;
#define STUB_CODE_GENERATE(name) \
@@ -184,6 +186,7 @@ class StubCode {
static RawCode* Generate(const char* name,
void (*GenerateStub)(Assembler* assembler));
+ static void GenerateMegamorphicMissStub(Assembler* assembler);
static void GenerateAllocationStubForClass(Assembler* assembler,
const Class& cls);
static void GenerateAllocationStubForClosure(Assembler* assembler,

Powered by Google App Engine
This is Rietveld 408576698