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

Unified Diff: src/arm/deoptimizer-arm.cc

Issue 6735007: Add more details the --trace-deopt output (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 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 | « no previous file | src/ia32/deoptimizer-ia32.cc » ('j') | src/ia32/deoptimizer-ia32.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/deoptimizer-arm.cc
===================================================================
--- src/arm/deoptimizer-arm.cc (revision 7379)
+++ src/arm/deoptimizer-arm.cc (working copy)
@@ -291,10 +291,18 @@
for (int i = 0; ok && i < 4; i++) {
uint32_t input_value = input_->GetFrameSlot(input_offset);
if (FLAG_trace_osr) {
- PrintF(" [sp + %d] <- 0x%08x ; [sp + %d] (fixed part)\n",
+ const char* name = "UNKNOWN";
+ switch (i) {
Kevin Millikin (Chromium) 2011/03/28 09:07:01 Maybe it would be nicer to use the constants in fr
Søren Thygesen Gjesse 2011/03/28 12:27:29 Good point, used for (int i = StandardFrameCon
Kevin Millikin (Chromium) 2011/03/28 13:11:40 Sounds good.
+ case 0: name = "caller's pc"; break;
+ case 1: name = "fp"; break;
+ case 2: name = "context"; break;
+ case 3: name = "function"; break;
+ }
+ PrintF(" [sp + %d] <- 0x%08x ; [sp + %d] (fixed part - %s)\n",
output_offset,
input_value,
- input_offset);
+ input_offset,
+ name);
}
output_[0]->SetFrameSlot(output_offset, input_->GetFrameSlot(input_offset));
input_offset -= kPointerSize;
« no previous file with comments | « no previous file | src/ia32/deoptimizer-ia32.cc » ('j') | src/ia32/deoptimizer-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698