| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // List of stubs created per isolate, these stubs could potentially contain | 49 // List of stubs created per isolate, these stubs could potentially contain |
| 50 // embedded objects and hence cannot be shared across isolates. | 50 // embedded objects and hence cannot be shared across isolates. |
| 51 #define STUB_CODE_LIST(V) \ | 51 #define STUB_CODE_LIST(V) \ |
| 52 V(InvokeDartCode) \ | 52 V(InvokeDartCode) \ |
| 53 V(AllocateContext) \ | 53 V(AllocateContext) \ |
| 54 V(UpdateStoreBuffer) \ | 54 V(UpdateStoreBuffer) \ |
| 55 V(OneArgCheckInlineCache) \ | 55 V(OneArgCheckInlineCache) \ |
| 56 V(TwoArgsCheckInlineCache) \ | 56 V(TwoArgsCheckInlineCache) \ |
| 57 V(ThreeArgsCheckInlineCache) \ | 57 V(ThreeArgsCheckInlineCache) \ |
| 58 V(MegamorphicCall) \ | 58 V(MegamorphicCall) \ |
| 59 V(OptimizeFunction) \ |
| 59 V(BreakpointDynamic) \ | 60 V(BreakpointDynamic) \ |
| 60 V(EqualityWithNullArg) \ | 61 V(EqualityWithNullArg) \ |
| 61 | 62 |
| 62 // class StubEntry is used to describe stub methods generated in dart to | 63 // class StubEntry is used to describe stub methods generated in dart to |
| 63 // abstract out common code executed from generated dart code. | 64 // abstract out common code executed from generated dart code. |
| 64 class StubEntry { | 65 class StubEntry { |
| 65 public: | 66 public: |
| 66 StubEntry(const char* name, const Code& code); | 67 StubEntry(const char* name, const Code& code); |
| 67 ~StubEntry() {} | 68 ~StubEntry() {} |
| 68 | 69 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler, | 186 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler, |
| 186 intptr_t num_args); | 187 intptr_t num_args); |
| 187 static void GenerateUsageCounterIncrement(Assembler* assembler, | 188 static void GenerateUsageCounterIncrement(Assembler* assembler, |
| 188 Register ic_reg, | 189 Register ic_reg, |
| 189 Register temp_reg); | 190 Register temp_reg); |
| 190 }; | 191 }; |
| 191 | 192 |
| 192 } // namespace dart | 193 } // namespace dart |
| 193 | 194 |
| 194 #endif // VM_STUB_CODE_H_ | 195 #endif // VM_STUB_CODE_H_ |
| OLD | NEW |