| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 V(AllocateContext) \ | 54 V(AllocateContext) \ |
| 55 V(UpdateStoreBuffer) \ | 55 V(UpdateStoreBuffer) \ |
| 56 V(OneArgCheckInlineCache) \ | 56 V(OneArgCheckInlineCache) \ |
| 57 V(TwoArgsCheckInlineCache) \ | 57 V(TwoArgsCheckInlineCache) \ |
| 58 V(ThreeArgsCheckInlineCache) \ | 58 V(ThreeArgsCheckInlineCache) \ |
| 59 V(OneArgOptimizedCheckInlineCache) \ | 59 V(OneArgOptimizedCheckInlineCache) \ |
| 60 V(TwoArgsOptimizedCheckInlineCache) \ | 60 V(TwoArgsOptimizedCheckInlineCache) \ |
| 61 V(ThreeArgsOptimizedCheckInlineCache) \ | 61 V(ThreeArgsOptimizedCheckInlineCache) \ |
| 62 V(ClosureCallInlineCache) \ | 62 V(ClosureCallInlineCache) \ |
| 63 V(MegamorphicCall) \ | 63 V(MegamorphicCall) \ |
| 64 V(UnoptimizedStaticCall) \ |
| 64 V(OptimizeFunction) \ | 65 V(OptimizeFunction) \ |
| 65 V(BreakpointDynamic) \ | 66 V(BreakpointDynamic) \ |
| 66 V(EqualityWithNullArg) \ | 67 V(EqualityWithNullArg) \ |
| 67 | 68 |
| 68 // 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 |
| 69 // abstract out common code executed from generated dart code. | 70 // abstract out common code executed from generated dart code. |
| 70 class StubEntry { | 71 class StubEntry { |
| 71 public: | 72 public: |
| 72 StubEntry(const char* name, const Code& code); | 73 StubEntry(const char* name, const Code& code); |
| 73 ~StubEntry() {} | 74 ~StubEntry() {} |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler, | 195 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler, |
| 195 intptr_t num_args); | 196 intptr_t num_args); |
| 196 static void GenerateUsageCounterIncrement(Assembler* assembler, | 197 static void GenerateUsageCounterIncrement(Assembler* assembler, |
| 197 Register temp_reg); | 198 Register temp_reg); |
| 198 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler); | 199 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler); |
| 199 }; | 200 }; |
| 200 | 201 |
| 201 } // namespace dart | 202 } // namespace dart |
| 202 | 203 |
| 203 #endif // VM_STUB_CODE_H_ | 204 #endif // VM_STUB_CODE_H_ |
| OLD | NEW |