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

Unified Diff: src/vm/tick_sampler_posix.cc

Issue 2006403003: [mips] Initial framework support for MIPS32 (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Code changes per review. Created 4 years, 7 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 | « src/vm/interpreter_mips.cc ('k') | src/vm/vm.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/vm/tick_sampler_posix.cc
diff --git a/src/vm/tick_sampler_posix.cc b/src/vm/tick_sampler_posix.cc
index 31261480a067bf954a3a6097477d890c0ebcb922..d61bc2e6054ab023839397a7e60d1f0ca1133aed 100644
--- a/src/vm/tick_sampler_posix.cc
+++ b/src/vm/tick_sampler_posix.cc
@@ -56,6 +56,11 @@ static void SignalHandler(int signal, siginfo_t* info, void* context) {
sample->sp = bit_cast<word>(mcontext.arm_sp);
sample->fp = bit_cast<word>(mcontext.arm_fp);
ip = bit_cast<word>(mcontext.arm_r5);
+#elif defined(DARTINO_TARGET_MIPS)
+ sample->pc = (word)mcontext.pc;
+ sample->sp = (word)mcontext.gregs[29];
+ sample->fp = (word)mcontext.gregs[30];
+ ip = (word)mcontext.gregs[17];
#else
FATAL("HandleSignal not support on this platform");
#endif
« no previous file with comments | « src/vm/interpreter_mips.cc ('k') | src/vm/vm.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698