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