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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 V(FrameAwaitingMaterialization) \ |
67 | 67 |
68 #else | 68 #else |
69 #define VM_STUB_CODE_LIST(V) \ | 69 #define VM_STUB_CODE_LIST(V) \ |
70 V(LazyCompile) \ | 70 V(LazyCompile) \ |
71 V(FixCallersTarget) \ | 71 V(FixCallersTarget) \ |
| 72 V(Deoptimize) \ |
| 73 V(DeoptimizeLazy) \ |
72 | 74 |
73 #endif // !defined(TARGET_ARCH_DBC) | 75 #endif // !defined(TARGET_ARCH_DBC) |
74 | 76 |
75 // Is it permitted for the stubs above to refer to Object::null(), which is | 77 // Is it permitted for the stubs above to refer to Object::null(), which is |
76 // allocated in the VM isolate and shared across all isolates. | 78 // allocated in the VM isolate and shared across all isolates. |
77 // However, in cases where a simple GC-safe placeholder is needed on the stack, | 79 // However, in cases where a simple GC-safe placeholder is needed on the stack, |
78 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi | 80 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi |
79 // does not require relocation. | 81 // does not require relocation. |
80 | 82 |
81 // class StubEntry is used to describe stub methods generated in dart to | 83 // class StubEntry is used to describe stub methods generated in dart to |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 195 |
194 | 196 |
195 enum DeoptStubKind { | 197 enum DeoptStubKind { |
196 kLazyDeopt, | 198 kLazyDeopt, |
197 kEagerDeopt | 199 kEagerDeopt |
198 }; | 200 }; |
199 | 201 |
200 } // namespace dart | 202 } // namespace dart |
201 | 203 |
202 #endif // VM_STUB_CODE_H_ | 204 #endif // VM_STUB_CODE_H_ |
OLD | NEW |