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, |