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

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

Issue 2603383004: Sane asynchronous debugging and stack traces (Closed)
Patch Set: rebase Created 3 years, 11 months 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
« no previous file with comments | « runtime/vm/stack_trace.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 V(SmiEqualInlineCache) \ 60 V(SmiEqualInlineCache) \
61 V(OneArgOptimizedCheckInlineCache) \ 61 V(OneArgOptimizedCheckInlineCache) \
62 V(TwoArgsOptimizedCheckInlineCache) \ 62 V(TwoArgsOptimizedCheckInlineCache) \
63 V(ZeroArgsUnoptimizedStaticCall) \ 63 V(ZeroArgsUnoptimizedStaticCall) \
64 V(OneArgUnoptimizedStaticCall) \ 64 V(OneArgUnoptimizedStaticCall) \
65 V(TwoArgsUnoptimizedStaticCall) \ 65 V(TwoArgsUnoptimizedStaticCall) \
66 V(Subtype1TestCache) \ 66 V(Subtype1TestCache) \
67 V(Subtype2TestCache) \ 67 V(Subtype2TestCache) \
68 V(Subtype3TestCache) \ 68 V(Subtype3TestCache) \
69 V(CallClosureNoSuchMethod) \ 69 V(CallClosureNoSuchMethod) \
70 V(FrameAwaitingMaterialization) 70 V(FrameAwaitingMaterialization) \
71 V(AsynchronousGapMarker)
71 72
72 #else 73 #else
73 #define VM_STUB_CODE_LIST(V) \ 74 #define VM_STUB_CODE_LIST(V) \
74 V(LazyCompile) \ 75 V(LazyCompile) \
75 V(OptimizeFunction) \ 76 V(OptimizeFunction) \
76 V(RunExceptionHandler) \ 77 V(RunExceptionHandler) \
77 V(DeoptForRewind) \ 78 V(DeoptForRewind) \
78 V(FixCallersTarget) \ 79 V(FixCallersTarget) \
79 V(Deoptimize) \ 80 V(Deoptimize) \
80 V(DeoptimizeLazyFromReturn) \ 81 V(DeoptimizeLazyFromReturn) \
81 V(DeoptimizeLazyFromThrow) \ 82 V(DeoptimizeLazyFromThrow) \
82 V(FrameAwaitingMaterialization) 83 V(FrameAwaitingMaterialization) \
84 V(AsynchronousGapMarker)
83 85
84 #endif // !defined(TARGET_ARCH_DBC) 86 #endif // !defined(TARGET_ARCH_DBC)
85 87
86 // Is it permitted for the stubs above to refer to Object::null(), which is 88 // Is it permitted for the stubs above to refer to Object::null(), which is
87 // allocated in the VM isolate and shared across all isolates. 89 // allocated in the VM isolate and shared across all isolates.
88 // However, in cases where a simple GC-safe placeholder is needed on the stack, 90 // However, in cases where a simple GC-safe placeholder is needed on the stack,
89 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi 91 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi
90 // does not require relocation. 92 // does not require relocation.
91 93
92 // class StubEntry is used to describe stub methods generated in dart to 94 // class StubEntry is used to describe stub methods generated in dart to
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 206
205 // Zap value used to indicate unused CODE_REG in deopt. 207 // Zap value used to indicate unused CODE_REG in deopt.
206 static const uword kZapCodeReg = 0xf1f1f1f1; 208 static const uword kZapCodeReg = 0xf1f1f1f1;
207 209
208 // Zap value used to indicate unused return address in deopt. 210 // Zap value used to indicate unused return address in deopt.
209 static const uword kZapReturnAddress = 0xe1e1e1e1; 211 static const uword kZapReturnAddress = 0xe1e1e1e1;
210 212
211 } // namespace dart 213 } // namespace dart
212 214
213 #endif // RUNTIME_VM_STUB_CODE_H_ 215 #endif // RUNTIME_VM_STUB_CODE_H_
OLDNEW
« no previous file with comments | « runtime/vm/stack_trace.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698