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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 V(BinaryRangeCollectingInlineCache) \ | 56 V(BinaryRangeCollectingInlineCache) \ |
57 V(OneArgOptimizedCheckInlineCache) \ | 57 V(OneArgOptimizedCheckInlineCache) \ |
58 V(TwoArgsOptimizedCheckInlineCache) \ | 58 V(TwoArgsOptimizedCheckInlineCache) \ |
59 V(ZeroArgsUnoptimizedStaticCall) \ | 59 V(ZeroArgsUnoptimizedStaticCall) \ |
60 V(OneArgUnoptimizedStaticCall) \ | 60 V(OneArgUnoptimizedStaticCall) \ |
61 V(TwoArgsUnoptimizedStaticCall) \ | 61 V(TwoArgsUnoptimizedStaticCall) \ |
62 V(Subtype1TestCache) \ | 62 V(Subtype1TestCache) \ |
63 V(Subtype2TestCache) \ | 63 V(Subtype2TestCache) \ |
64 V(Subtype3TestCache) \ | 64 V(Subtype3TestCache) \ |
65 V(CallClosureNoSuchMethod) \ | 65 V(CallClosureNoSuchMethod) \ |
| 66 V(FrameAwaitingMaterialization) \ |
66 | 67 |
67 // Is it permitted for the stubs above to refer to Object::null(), which is | 68 // Is it permitted for the stubs above to refer to Object::null(), which is |
68 // allocated in the VM isolate and shared across all isolates. | 69 // allocated in the VM isolate and shared across all isolates. |
69 // However, in cases where a simple GC-safe placeholder is needed on the stack, | 70 // However, in cases where a simple GC-safe placeholder is needed on the stack, |
70 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi | 71 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi |
71 // does not require relocation. | 72 // does not require relocation. |
72 | 73 |
73 // class StubEntry is used to describe stub methods generated in dart to | 74 // class StubEntry is used to describe stub methods generated in dart to |
74 // abstract out common code executed from generated dart code. | 75 // abstract out common code executed from generated dart code. |
75 class StubEntry { | 76 class StubEntry { |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 186 |
186 | 187 |
187 enum DeoptStubKind { | 188 enum DeoptStubKind { |
188 kLazyDeopt, | 189 kLazyDeopt, |
189 kEagerDeopt | 190 kEagerDeopt |
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 |