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

Side by Side Diff: src/deoptimizer.cc

Issue 17599007: Log deopts with --log-timer-events. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/log.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 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 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 // We rely on this function not causing a GC. It is called from generated code 709 // We rely on this function not causing a GC. It is called from generated code
710 // without having a real stack frame in place. 710 // without having a real stack frame in place.
711 void Deoptimizer::DoComputeOutputFrames() { 711 void Deoptimizer::DoComputeOutputFrames() {
712 if (bailout_type_ == OSR) { 712 if (bailout_type_ == OSR) {
713 DoComputeOsrOutputFrame(); 713 DoComputeOsrOutputFrame();
714 return; 714 return;
715 } 715 }
716 716
717 // Print some helpful diagnostic information. 717 // Print some helpful diagnostic information.
718 int64_t start = OS::Ticks(); 718 int64_t start = OS::Ticks();
719 if (FLAG_log_timer_events &&
720 compiled_code_->kind() == Code::OPTIMIZED_FUNCTION) {
721 LOG(isolate(), CodeDeoptEvent(compiled_code_));
722 }
719 if (trace_) { 723 if (trace_) {
720 PrintF("[deoptimizing (DEOPT %s): begin 0x%08" V8PRIxPTR " ", 724 PrintF("[deoptimizing (DEOPT %s): begin 0x%08" V8PRIxPTR " ",
721 MessageFor(bailout_type_), 725 MessageFor(bailout_type_),
722 reinterpret_cast<intptr_t>(function_)); 726 reinterpret_cast<intptr_t>(function_));
723 PrintFunctionName(); 727 PrintFunctionName();
724 PrintF(" @%d, FP to SP delta: %d]\n", bailout_id_, fp_to_sp_delta_); 728 PrintF(" @%d, FP to SP delta: %d]\n", bailout_id_, fp_to_sp_delta_);
725 if (bailout_type_ == EAGER || bailout_type_ == SOFT) { 729 if (bailout_type_ == EAGER || bailout_type_ == SOFT) {
726 compiled_code_->PrintDeoptLocation(bailout_id_); 730 compiled_code_->PrintDeoptLocation(bailout_id_);
727 } 731 }
728 } 732 }
(...skipping 2382 matching lines...) Expand 10 before | Expand all | Expand 10 after
3111 3115
3112 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { 3116 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) {
3113 v->VisitPointer(BitCast<Object**>(&function_)); 3117 v->VisitPointer(BitCast<Object**>(&function_));
3114 v->VisitPointers(parameters_, parameters_ + parameters_count_); 3118 v->VisitPointers(parameters_, parameters_ + parameters_count_);
3115 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); 3119 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_);
3116 } 3120 }
3117 3121
3118 #endif // ENABLE_DEBUGGER_SUPPORT 3122 #endif // ENABLE_DEBUGGER_SUPPORT
3119 3123
3120 } } // namespace v8::internal 3124 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698