projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9a0889
)
[profiler] Add a missing method_tail_call event when the tailc optimization is enabled.
author
Alex Rønne Petersen
<alpeters@microsoft.com>
Thu, 24 Aug 2017 15:08:20 +0000
(17:08 +0200)
committer
Alex Rønne Petersen
<alpeters@microsoft.com>
Thu, 24 Aug 2017 15:08:20 +0000
(17:08 +0200)
mono/mini/method-to-ir.c
patch
|
blob
|
history
diff --git
a/mono/mini/method-to-ir.c
b/mono/mini/method-to-ir.c
index 07585ad2f82dcdddc969c2cd41242f620400b387..31c5513743eb140e004b0bf81e774d26d3798676 100644
(file)
--- a/
mono/mini/method-to-ir.c
+++ b/
mono/mini/method-to-ir.c
@@
-8751,6
+8751,9
@@
mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
}
for (i = 0; i < n; ++i)
EMIT_NEW_ARGSTORE (cfg, ins, i, sp [i]);
+
+ mini_profiler_emit_tail_call (cfg, cmethod);
+
MONO_INST_NEW (cfg, ins, OP_BR);
MONO_ADD_INS (cfg->cbb, ins);
tblock = start_bblock->out_bb [0];