| OLD | NEW |
| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 = 0; ok && i < 4; i++) { |
| 365 intptr_t input_value = input_->GetFrameSlot(input_offset); | 365 intptr_t input_value = input_->GetFrameSlot(input_offset); |
| 366 if (FLAG_trace_osr) { | 366 if (FLAG_trace_osr) { |
| 367 PrintF(" [esp + %d] <- 0x%08" V8PRIxPTR " ; [esp + %d] (fixed part)\n", | 367 const char* name = "UNKNOWN"; |
| 368 switch (i) { |
| 369 case 0: name = "caller's pc"; break; |
| 370 case 1: name = "rbp"; break; |
| 371 case 2: name = "context"; break; |
| 372 case 3: name = "function"; break; |
| 373 } |
| 374 PrintF(" [rsp + %d] <- 0x%08" V8PRIxPTR " ; [rsp + %d] " |
| 375 "(fixed part - %s)\n", |
| 368 output_offset, | 376 output_offset, |
| 369 input_value, | 377 input_value, |
| 370 input_offset); | 378 input_offset, |
| 379 name); |
| 371 } | 380 } |
| 372 output_[0]->SetFrameSlot(output_offset, input_->GetFrameSlot(input_offset)); | 381 output_[0]->SetFrameSlot(output_offset, input_->GetFrameSlot(input_offset)); |
| 373 input_offset -= kPointerSize; | 382 input_offset -= kPointerSize; |
| 374 output_offset -= kPointerSize; | 383 output_offset -= kPointerSize; |
| 375 } | 384 } |
| 376 | 385 |
| 377 // Translate the rest of the frame. | 386 // Translate the rest of the frame. |
| 378 while (ok && input_offset >= 0) { | 387 while (ok && input_offset >= 0) { |
| 379 ok = DoOsrTranslateCommand(&iterator, &input_offset); | 388 ok = DoOsrTranslateCommand(&iterator, &input_offset); |
| 380 } | 389 } |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 } | 793 } |
| 785 __ bind(&done); | 794 __ bind(&done); |
| 786 } | 795 } |
| 787 | 796 |
| 788 #undef __ | 797 #undef __ |
| 789 | 798 |
| 790 | 799 |
| 791 } } // namespace v8::internal | 800 } } // namespace v8::internal |
| 792 | 801 |
| 793 #endif // V8_TARGET_ARCH_X64 | 802 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |