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

Side by Side Diff: src/x64/deoptimizer-x64.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, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 // incoming argument slots we've just cleared. 354 // incoming argument slots we've just cleared.
355 int input_offset = input_frame_size - kPointerSize; 355 int input_offset = input_frame_size - kPointerSize;
356 bool ok = true; 356 bool ok = true;
357 int limit = input_offset - (parameter_count * kPointerSize); 357 int limit = input_offset - (parameter_count * kPointerSize);
358 while (ok && input_offset > limit) { 358 while (ok && input_offset > limit) {
359 ok = DoOsrTranslateCommand(&iterator, &input_offset); 359 ok = DoOsrTranslateCommand(&iterator, &input_offset);
360 } 360 }
361 361
362 // There are no translation commands for the caller's pc and fp, the 362 // There are no translation commands for the caller's pc and fp, the
363 // context, and the function. Set them up explicitly. 363 // context, and the function. Set them up explicitly.
364 for (int i = 0; ok && i < 4; i++) { 364 for (int i = StandardFrameConstants::kCallerPCOffset;
365 ok && i >= StandardFrameConstants::kMarkerOffset;
366 i -= kPointerSize) {
365 intptr_t input_value = input_->GetFrameSlot(input_offset); 367 intptr_t input_value = input_->GetFrameSlot(input_offset);
366 if (FLAG_trace_osr) { 368 if (FLAG_trace_osr) {
367 PrintF(" [esp + %d] <- 0x%08" V8PRIxPTR " ; [esp + %d] (fixed part)\n", 369 const char* name = "UNKNOWN";
370 switch (i) {
371 case StandardFrameConstants::kCallerPCOffset:
372 name = "caller's pc";
373 break;
374 case StandardFrameConstants::kCallerFPOffset:
375 name = "fp";
376 break;
377 case StandardFrameConstants::kContextOffset:
378 name = "context";
379 break;
380 case StandardFrameConstants::kMarkerOffset:
381 name = "function";
382 break;
383 }
384 PrintF(" [rsp + %d] <- 0x%08" V8PRIxPTR " ; [rsp + %d] "
385 "(fixed part - %s)\n",
368 output_offset, 386 output_offset,
369 input_value, 387 input_value,
370 input_offset); 388 input_offset,
389 name);
371 } 390 }
372 output_[0]->SetFrameSlot(output_offset, input_->GetFrameSlot(input_offset)); 391 output_[0]->SetFrameSlot(output_offset, input_->GetFrameSlot(input_offset));
373 input_offset -= kPointerSize; 392 input_offset -= kPointerSize;
374 output_offset -= kPointerSize; 393 output_offset -= kPointerSize;
375 } 394 }
376 395
377 // Translate the rest of the frame. 396 // Translate the rest of the frame.
378 while (ok && input_offset >= 0) { 397 while (ok && input_offset >= 0) {
379 ok = DoOsrTranslateCommand(&iterator, &input_offset); 398 ok = DoOsrTranslateCommand(&iterator, &input_offset);
380 } 399 }
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 } 803 }
785 __ bind(&done); 804 __ bind(&done);
786 } 805 }
787 806
788 #undef __ 807 #undef __
789 808
790 809
791 } } // namespace v8::internal 810 } } // namespace v8::internal
792 811
793 #endif // V8_TARGET_ARCH_X64 812 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698