OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 // We rely on this function not causing a GC. It is called from generated code | 707 // We rely on this function not causing a GC. It is called from generated code |
708 // without having a real stack frame in place. | 708 // without having a real stack frame in place. |
709 void Deoptimizer::DoComputeOutputFrames() { | 709 void Deoptimizer::DoComputeOutputFrames() { |
710 if (bailout_type_ == OSR) { | 710 if (bailout_type_ == OSR) { |
711 DoComputeOsrOutputFrame(); | 711 DoComputeOsrOutputFrame(); |
712 return; | 712 return; |
713 } | 713 } |
714 | 714 |
715 // Print some helpful diagnostic information. | 715 // Print some helpful diagnostic information. |
716 int64_t start = OS::Ticks(); | 716 int64_t start = OS::Ticks(); |
| 717 if (FLAG_log_timer_events && |
| 718 compiled_code_->kind() == Code::OPTIMIZED_FUNCTION) { |
| 719 LOG(isolate(), CodeDeoptEvent(compiled_code_)); |
| 720 } |
717 if (trace_) { | 721 if (trace_) { |
718 PrintF("[deoptimizing (DEOPT %s): begin 0x%08" V8PRIxPTR " ", | 722 PrintF("[deoptimizing (DEOPT %s): begin 0x%08" V8PRIxPTR " ", |
719 MessageFor(bailout_type_), | 723 MessageFor(bailout_type_), |
720 reinterpret_cast<intptr_t>(function_)); | 724 reinterpret_cast<intptr_t>(function_)); |
721 PrintFunctionName(); | 725 PrintFunctionName(); |
722 PrintF(" @%d, FP to SP delta: %d]\n", bailout_id_, fp_to_sp_delta_); | 726 PrintF(" @%d, FP to SP delta: %d]\n", bailout_id_, fp_to_sp_delta_); |
723 if (bailout_type_ == EAGER || bailout_type_ == SOFT) { | 727 if (bailout_type_ == EAGER || bailout_type_ == SOFT) { |
724 compiled_code_->PrintDeoptLocation(bailout_id_); | 728 compiled_code_->PrintDeoptLocation(bailout_id_); |
725 } | 729 } |
726 } | 730 } |
(...skipping 2365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3092 | 3096 |
3093 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { | 3097 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { |
3094 v->VisitPointer(BitCast<Object**>(&function_)); | 3098 v->VisitPointer(BitCast<Object**>(&function_)); |
3095 v->VisitPointers(parameters_, parameters_ + parameters_count_); | 3099 v->VisitPointers(parameters_, parameters_ + parameters_count_); |
3096 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); | 3100 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); |
3097 } | 3101 } |
3098 | 3102 |
3099 #endif // ENABLE_DEBUGGER_SUPPORT | 3103 #endif // ENABLE_DEBUGGER_SUPPORT |
3100 | 3104 |
3101 } } // namespace v8::internal | 3105 } } // namespace v8::internal |
OLD | NEW |