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

Side by Side Diff: runtime/vm/stub_code.h

Issue 2132803002: Megamorphic code cleanup. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_STUB_CODE_H_ 5 #ifndef VM_STUB_CODE_H_
6 #define VM_STUB_CODE_H_ 6 #define VM_STUB_CODE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 } 148 }
149 VM_STUB_CODE_LIST(STUB_CODE_ACCESSOR); 149 VM_STUB_CODE_LIST(STUB_CODE_ACCESSOR);
150 #undef STUB_CODE_ACCESSOR 150 #undef STUB_CODE_ACCESSOR
151 151
152 static RawCode* GetAllocationStubForClass(const Class& cls); 152 static RawCode* GetAllocationStubForClass(const Class& cls);
153 153
154 static const StubEntry* UnoptimizedStaticCallEntry(intptr_t num_args_tested); 154 static const StubEntry* UnoptimizedStaticCallEntry(intptr_t num_args_tested);
155 155
156 static const intptr_t kNoInstantiator = 0; 156 static const intptr_t kNoInstantiator = 0;
157 157
158 static void EmitMegamorphicLookup(Assembler* assembler);
159
160 private: 158 private:
161 friend class MegamorphicCacheTable; 159 friend class MegamorphicCacheTable;
162 160
163 static const intptr_t kStubCodeSize = 4 * KB; 161 static const intptr_t kStubCodeSize = 4 * KB;
164 162
165 #define STUB_CODE_GENERATE(name) \ 163 #define STUB_CODE_GENERATE(name) \
166 static void Generate##name##Stub(Assembler* assembler); 164 static void Generate##name##Stub(Assembler* assembler);
167 VM_STUB_CODE_LIST(STUB_CODE_GENERATE); 165 VM_STUB_CODE_LIST(STUB_CODE_GENERATE);
168 #undef STUB_CODE_GENERATE 166 #undef STUB_CODE_GENERATE
169 167
(...skipping 29 matching lines...) Expand all
199 197
200 198
201 enum DeoptStubKind { 199 enum DeoptStubKind {
202 kLazyDeopt, 200 kLazyDeopt,
203 kEagerDeopt 201 kEagerDeopt
204 }; 202 };
205 203
206 } // namespace dart 204 } // namespace dart
207 205
208 #endif // VM_STUB_CODE_H_ 206 #endif // VM_STUB_CODE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698