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

Side by Side Diff: src/deoptimizer.cc

Issue 8360001: Fix bug in environment simulation after inlined call-as-function. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Added r9619. Created 9 years, 2 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 | « no previous file | src/hydrogen.h » ('j') | 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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698