Revision: 13639
Author: [email protected]
Date: Mon Feb 11 06:12:13 2013
Log: Print deoptimization index when printing lithium environment.
Output of --trace-deopt --code-comments does not always allow to reliably
match deoptimization to the lithium instruction (and it is actually never
accurate on x64 due to one level of indirection). This change allows to
reliably figure out which instruction deoptimized just by looking up
bailout id in the hydrogen.cfg.
[email protected]
BUG=
Review URL: https://codereview.chromium.org/12217103
http://code.google.com/p/v8/source/detail?r=13639
Modified:
/branches/bleeding_edge/src/lithium.cc
=======================================
--- /branches/bleeding_edge/src/lithium.cc Thu Feb 7 05:15:41 2013
+++ /branches/bleeding_edge/src/lithium.cc Mon Feb 11 06:12:13 2013
@@ -174,6 +174,9 @@
void LEnvironment::PrintTo(StringStream* stream) {
stream->Add("[id=%d|", ast_id().ToInt());
+ if (deoptimization_index() != Safepoint::kNoDeoptimizationIndex) {
+ stream->Add("deopt_id=%d|", deoptimization_index());
+ }
stream->Add("[parameters=%d|", parameter_count());
stream->Add("[arguments_stack_height=%d|", arguments_stack_height());
for (int i = 0; i < values_.length(); ++i) {
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.