| 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 23 matching lines...) Expand all Loading... |
| 34 V(InvokeDartCode) \ | 34 V(InvokeDartCode) \ |
| 35 V(DebugStepCheck) \ | 35 V(DebugStepCheck) \ |
| 36 V(MegamorphicLookup) \ | 36 V(MegamorphicLookup) \ |
| 37 V(FixAllocationStubTarget) \ | 37 V(FixAllocationStubTarget) \ |
| 38 V(Deoptimize) \ | 38 V(Deoptimize) \ |
| 39 V(DeoptimizeLazy) \ | 39 V(DeoptimizeLazy) \ |
| 40 V(UnoptimizedIdenticalWithNumberCheck) \ | 40 V(UnoptimizedIdenticalWithNumberCheck) \ |
| 41 V(OptimizedIdenticalWithNumberCheck) \ | 41 V(OptimizedIdenticalWithNumberCheck) \ |
| 42 V(ICCallBreakpoint) \ | 42 V(ICCallBreakpoint) \ |
| 43 V(RuntimeCallBreakpoint) \ | 43 V(RuntimeCallBreakpoint) \ |
| 44 V(AllocateArray) \ |
| 45 V(AllocateContext) \ |
| 44 V(OneArgCheckInlineCache) \ | 46 V(OneArgCheckInlineCache) \ |
| 45 V(TwoArgsCheckInlineCache) \ | 47 V(TwoArgsCheckInlineCache) \ |
| 46 V(SmiAddInlineCache) \ | 48 V(SmiAddInlineCache) \ |
| 47 V(SmiSubInlineCache) \ | 49 V(SmiSubInlineCache) \ |
| 48 V(SmiEqualInlineCache) \ | 50 V(SmiEqualInlineCache) \ |
| 49 V(UnaryRangeCollectingInlineCache) \ | 51 V(UnaryRangeCollectingInlineCache) \ |
| 50 V(BinaryRangeCollectingInlineCache) \ | 52 V(BinaryRangeCollectingInlineCache) \ |
| 51 V(OneArgOptimizedCheckInlineCache) \ | 53 V(OneArgOptimizedCheckInlineCache) \ |
| 52 V(TwoArgsOptimizedCheckInlineCache) \ | 54 V(TwoArgsOptimizedCheckInlineCache) \ |
| 53 V(ZeroArgsUnoptimizedStaticCall) \ | 55 V(ZeroArgsUnoptimizedStaticCall) \ |
| 54 V(OneArgUnoptimizedStaticCall) \ | 56 V(OneArgUnoptimizedStaticCall) \ |
| 55 V(TwoArgsUnoptimizedStaticCall) \ | 57 V(TwoArgsUnoptimizedStaticCall) \ |
| 56 V(Subtype1TestCache) \ | 58 V(Subtype1TestCache) \ |
| 57 V(Subtype2TestCache) \ | 59 V(Subtype2TestCache) \ |
| 58 V(Subtype3TestCache) \ | 60 V(Subtype3TestCache) \ |
| 59 V(AllocateContext) \ | |
| 60 V(AllocateArray) \ | |
| 61 V(CallClosureNoSuchMethod) | 61 V(CallClosureNoSuchMethod) |
| 62 | 62 |
| 63 // Is it permitted for the stubs above to refer to Object::null(), which is | 63 // Is it permitted for the stubs above to refer to Object::null(), which is |
| 64 // allocated in the VM isolate and shared across all isolates. | 64 // allocated in the VM isolate and shared across all isolates. |
| 65 // However, in cases where a simple GC-safe placeholder is needed on the stack, | 65 // However, in cases where a simple GC-safe placeholder is needed on the stack, |
| 66 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi | 66 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi |
| 67 // does not require relocation. | 67 // does not require relocation. |
| 68 | 68 |
| 69 // class StubEntry is used to describe stub methods generated in dart to | 69 // class StubEntry is used to describe stub methods generated in dart to |
| 70 // abstract out common code executed from generated dart code. | 70 // abstract out common code executed from generated dart code. |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 RangeCollectionMode range_collection_mode, | 177 RangeCollectionMode range_collection_mode, |
| 178 bool optimized = false); | 178 bool optimized = false); |
| 179 static void GenerateUsageCounterIncrement(Assembler* assembler, | 179 static void GenerateUsageCounterIncrement(Assembler* assembler, |
| 180 Register temp_reg); | 180 Register temp_reg); |
| 181 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler); | 181 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler); |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 } // namespace dart | 184 } // namespace dart |
| 185 | 185 |
| 186 #endif // VM_STUB_CODE_H_ | 186 #endif // VM_STUB_CODE_H_ |
| OLD | NEW |