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

Unified Diff: runtime/vm/intrinsifier_mips.cc

Issue 2646443005: Track async causal stack traces (Closed)
Patch Set: rebase Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intrinsifier_ia32.cc ('k') | runtime/vm/intrinsifier_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intrinsifier_mips.cc
diff --git a/runtime/vm/intrinsifier_mips.cc b/runtime/vm/intrinsifier_mips.cc
index 04707c74d4d7df75ce65b316308e9ccd0c4de551..ca95bb57822e6288234867193e56d6d3a164f56f 100644
--- a/runtime/vm/intrinsifier_mips.cc
+++ b/runtime/vm/intrinsifier_mips.cc
@@ -2423,6 +2423,20 @@ void Intrinsifier::Timeline_isDartStreamEnabled(Assembler* assembler) {
__ delay_slot()->movz(V0, V1, T0); // V0 = (T0 == 0) ? V1 : V0.
}
+
+void Intrinsifier::ClearAsyncThreadStackTrace(Assembler* assembler) {
+ __ LoadObject(V0, Object::null_object());
+ __ sw(V0, Address(THR, Thread::async_stack_trace_offset()));
+ __ Ret();
+}
+
+
+void Intrinsifier::SetAsyncThreadStackTrace(Assembler* assembler) {
+ __ lw(V0, Address(THR, Thread::async_stack_trace_offset()));
+ __ LoadObject(V0, Object::null_object());
+ __ Ret();
+}
+
} // namespace dart
#endif // defined TARGET_ARCH_MIPS
« no previous file with comments | « runtime/vm/intrinsifier_ia32.cc ('k') | runtime/vm/intrinsifier_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698