| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 reinterpret_cast<intptr_t>(from), | 371 reinterpret_cast<intptr_t>(from), |
| 372 fp_to_sp_delta - (2 * kPointerSize)); | 372 fp_to_sp_delta - (2 * kPointerSize)); |
| 373 } else if (FLAG_trace_osr && type == OSR) { | 373 } else if (FLAG_trace_osr && type == OSR) { |
| 374 PrintF("**** OSR: "); | 374 PrintF("**** OSR: "); |
| 375 function->PrintName(); | 375 function->PrintName(); |
| 376 PrintF(" at ast id #%u, address 0x%" V8PRIxPTR ", frame size %d\n", | 376 PrintF(" at ast id #%u, address 0x%" V8PRIxPTR ", frame size %d\n", |
| 377 bailout_id, | 377 bailout_id, |
| 378 reinterpret_cast<intptr_t>(from), | 378 reinterpret_cast<intptr_t>(from), |
| 379 fp_to_sp_delta - (2 * kPointerSize)); | 379 fp_to_sp_delta - (2 * kPointerSize)); |
| 380 } | 380 } |
| 381 function->shared()->increment_deopt_count(); |
| 381 // Find the optimized code. | 382 // Find the optimized code. |
| 382 if (type == EAGER) { | 383 if (type == EAGER) { |
| 383 ASSERT(from == NULL); | 384 ASSERT(from == NULL); |
| 384 optimized_code_ = function_->code(); | 385 optimized_code_ = function_->code(); |
| 385 if (FLAG_trace_deopt && FLAG_code_comments) { | 386 if (FLAG_trace_deopt && FLAG_code_comments) { |
| 386 // Print instruction associated with this bailout. | 387 // Print instruction associated with this bailout. |
| 387 const char* last_comment = NULL; | 388 const char* last_comment = NULL; |
| 388 int mask = RelocInfo::ModeMask(RelocInfo::COMMENT) | 389 int mask = RelocInfo::ModeMask(RelocInfo::COMMENT) |
| 389 | RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY); | 390 | RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY); |
| 390 for (RelocIterator it(optimized_code_, mask); !it.done(); it.next()) { | 391 for (RelocIterator it(optimized_code_, mask); !it.done(); it.next()) { |
| (...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1659 | 1660 |
| 1660 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { | 1661 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { |
| 1661 v->VisitPointer(BitCast<Object**>(&function_)); | 1662 v->VisitPointer(BitCast<Object**>(&function_)); |
| 1662 v->VisitPointers(parameters_, parameters_ + parameters_count_); | 1663 v->VisitPointers(parameters_, parameters_ + parameters_count_); |
| 1663 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); | 1664 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); |
| 1664 } | 1665 } |
| 1665 | 1666 |
| 1666 #endif // ENABLE_DEBUGGER_SUPPORT | 1667 #endif // ENABLE_DEBUGGER_SUPPORT |
| 1667 | 1668 |
| 1668 } } // namespace v8::internal | 1669 } } // namespace v8::internal |
| OLD | NEW |