| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 static const StubEntry* UnoptimizedStaticCallEntry(intptr_t num_args_tested); | 130 static const StubEntry* UnoptimizedStaticCallEntry(intptr_t num_args_tested); |
| 131 | 131 |
| 132 static const intptr_t kNoInstantiator = 0; | 132 static const intptr_t kNoInstantiator = 0; |
| 133 | 133 |
| 134 static void EmitMegamorphicLookup( | 134 static void EmitMegamorphicLookup( |
| 135 Assembler*, Register recv, Register cache, Register target); | 135 Assembler*, Register recv, Register cache, Register target); |
| 136 | 136 |
| 137 private: | 137 private: |
| 138 friend class MegamorphicCacheTable; | 138 friend class MegamorphicCacheTable; |
| 139 friend class VmIsolateSnapshotReader; |
| 139 | 140 |
| 140 static const intptr_t kStubCodeSize = 4 * KB; | 141 static const intptr_t kStubCodeSize = 4 * KB; |
| 141 | 142 |
| 142 #define STUB_CODE_GENERATE(name) \ | 143 #define STUB_CODE_GENERATE(name) \ |
| 143 static void Generate##name##Stub(Assembler* assembler); | 144 static void Generate##name##Stub(Assembler* assembler); |
| 144 VM_STUB_CODE_LIST(STUB_CODE_GENERATE); | 145 VM_STUB_CODE_LIST(STUB_CODE_GENERATE); |
| 145 #undef STUB_CODE_GENERATE | 146 #undef STUB_CODE_GENERATE |
| 146 | 147 |
| 147 #define STUB_CODE_ENTRY(name) \ | 148 #define STUB_CODE_ENTRY(name) \ |
| 148 static StubEntry* name##_entry_; | 149 static StubEntry* name##_entry_; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 171 RangeCollectionMode range_collection_mode, | 172 RangeCollectionMode range_collection_mode, |
| 172 bool optimized = false); | 173 bool optimized = false); |
| 173 static void GenerateUsageCounterIncrement(Assembler* assembler, | 174 static void GenerateUsageCounterIncrement(Assembler* assembler, |
| 174 Register temp_reg); | 175 Register temp_reg); |
| 175 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler); | 176 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler); |
| 176 }; | 177 }; |
| 177 | 178 |
| 178 } // namespace dart | 179 } // namespace dart |
| 179 | 180 |
| 180 #endif // VM_STUB_CODE_H_ | 181 #endif // VM_STUB_CODE_H_ |
| OLD | NEW |