| 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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 } | 875 } |
| 876 output->SetDoubleRegister(output_reg, double_value); | 876 output->SetDoubleRegister(output_reg, double_value); |
| 877 break; | 877 break; |
| 878 } | 878 } |
| 879 | 879 |
| 880 case Translation::STACK_SLOT: { | 880 case Translation::STACK_SLOT: { |
| 881 int output_index = iterator->Next(); | 881 int output_index = iterator->Next(); |
| 882 unsigned output_offset = | 882 unsigned output_offset = |
| 883 output->GetOffsetFromSlotIndex(this, output_index); | 883 output->GetOffsetFromSlotIndex(this, output_index); |
| 884 if (FLAG_trace_osr) { | 884 if (FLAG_trace_osr) { |
| 885 PrintF(" [sp + %d] <- 0x%08" V8PRIxPTR " ; [sp + %d]\n", | 885 PrintF(" [sp + %d] <- 0x%08" V8PRIxPTR " ; [sp + %d] ", |
| 886 output_offset, | 886 output_offset, |
| 887 input_value, | 887 input_value, |
| 888 *input_offset); | 888 *input_offset); |
| 889 reinterpret_cast<Object*>(input_value)->ShortPrint(); |
| 890 PrintF("\n"); |
| 889 } | 891 } |
| 890 output->SetFrameSlot(output_offset, input_value); | 892 output->SetFrameSlot(output_offset, input_value); |
| 891 break; | 893 break; |
| 892 } | 894 } |
| 893 | 895 |
| 894 case Translation::INT32_STACK_SLOT: { | 896 case Translation::INT32_STACK_SLOT: { |
| 895 // Abort OSR if we don't have a number. | 897 // Abort OSR if we don't have a number. |
| 896 if (!input_object->IsNumber()) return false; | 898 if (!input_object->IsNumber()) return false; |
| 897 | 899 |
| 898 int output_index = iterator->Next(); | 900 int output_index = iterator->Next(); |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1505 | 1507 |
| 1506 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { | 1508 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { |
| 1507 v->VisitPointer(BitCast<Object**>(&function_)); | 1509 v->VisitPointer(BitCast<Object**>(&function_)); |
| 1508 v->VisitPointers(parameters_, parameters_ + parameters_count_); | 1510 v->VisitPointers(parameters_, parameters_ + parameters_count_); |
| 1509 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); | 1511 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); |
| 1510 } | 1512 } |
| 1511 | 1513 |
| 1512 #endif // ENABLE_DEBUGGER_SUPPORT | 1514 #endif // ENABLE_DEBUGGER_SUPPORT |
| 1513 | 1515 |
| 1514 } } // namespace v8::internal | 1516 } } // namespace v8::internal |
| OLD | NEW |