Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(690)

Side by Side Diff: runtime/vm/stub_code.h

Issue 2473213002: DBC: When calling DRT_OptimizeInvokedFunction, patch the stack to have a stub instead of the to-be-… (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 RUNTIME_VM_STUB_CODE_H_ 5 #ifndef RUNTIME_VM_STUB_CODE_H_
6 #define RUNTIME_VM_STUB_CODE_H_ 6 #define RUNTIME_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 16 matching lines...) Expand all
27 V(GetStackPointer) \ 27 V(GetStackPointer) \
28 V(JumpToExceptionHandler) \ 28 V(JumpToExceptionHandler) \
29 V(UpdateStoreBuffer) \ 29 V(UpdateStoreBuffer) \
30 V(PrintStopMessage) \ 30 V(PrintStopMessage) \
31 V(CallToRuntime) \ 31 V(CallToRuntime) \
32 V(LazyCompile) \ 32 V(LazyCompile) \
33 V(CallBootstrapCFunction) \ 33 V(CallBootstrapCFunction) \
34 V(CallNativeCFunction) \ 34 V(CallNativeCFunction) \
35 V(FixCallersTarget) \ 35 V(FixCallersTarget) \
36 V(CallStaticFunction) \ 36 V(CallStaticFunction) \
37 V(OptimizeFunction) \
38 V(InvokeDartCode) \ 37 V(InvokeDartCode) \
39 V(DebugStepCheck) \ 38 V(DebugStepCheck) \
40 V(UnlinkedCall) \ 39 V(UnlinkedCall) \
41 V(MonomorphicMiss) \ 40 V(MonomorphicMiss) \
42 V(SingleTargetCall) \ 41 V(SingleTargetCall) \
43 V(ICCallThroughFunction) \ 42 V(ICCallThroughFunction) \
44 V(ICCallThroughCode) \ 43 V(ICCallThroughCode) \
45 V(MegamorphicCall) \ 44 V(MegamorphicCall) \
46 V(FixAllocationStubTarget) \ 45 V(FixAllocationStubTarget) \
47 V(Deoptimize) \ 46 V(Deoptimize) \
(...skipping 17 matching lines...) Expand all
65 V(TwoArgsUnoptimizedStaticCall) \ 64 V(TwoArgsUnoptimizedStaticCall) \
66 V(Subtype1TestCache) \ 65 V(Subtype1TestCache) \
67 V(Subtype2TestCache) \ 66 V(Subtype2TestCache) \
68 V(Subtype3TestCache) \ 67 V(Subtype3TestCache) \
69 V(CallClosureNoSuchMethod) \ 68 V(CallClosureNoSuchMethod) \
70 V(FrameAwaitingMaterialization) \ 69 V(FrameAwaitingMaterialization) \
71 70
72 #else 71 #else
73 #define VM_STUB_CODE_LIST(V) \ 72 #define VM_STUB_CODE_LIST(V) \
74 V(LazyCompile) \ 73 V(LazyCompile) \
74 V(OptimizeFunction) \
75 V(FixCallersTarget) \ 75 V(FixCallersTarget) \
76 V(Deoptimize) \ 76 V(Deoptimize) \
77 V(DeoptimizeLazyFromReturn) \ 77 V(DeoptimizeLazyFromReturn) \
78 V(DeoptimizeLazyFromThrow) \ 78 V(DeoptimizeLazyFromThrow) \
79 V(FrameAwaitingMaterialization) \ 79 V(FrameAwaitingMaterialization) \
80 80
81 #endif // !defined(TARGET_ARCH_DBC) 81 #endif // !defined(TARGET_ARCH_DBC)
82 82
83 // Is it permitted for the stubs above to refer to Object::null(), which is 83 // Is it permitted for the stubs above to refer to Object::null(), which is
84 // allocated in the VM isolate and shared across all isolates. 84 // allocated in the VM isolate and shared across all isolates.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 enum DeoptStubKind { 198 enum DeoptStubKind {
199 kLazyDeoptFromReturn, 199 kLazyDeoptFromReturn,
200 kLazyDeoptFromThrow, 200 kLazyDeoptFromThrow,
201 kEagerDeopt 201 kEagerDeopt
202 }; 202 };
203 203
204 } // namespace dart 204 } // namespace dart
205 205
206 #endif // RUNTIME_VM_STUB_CODE_H_ 206 #endif // RUNTIME_VM_STUB_CODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698