| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |