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

Side by Side Diff: src/crankshaft/hydrogen.cc

Issue 2476423003: [crankshaft] FIx for in deopt at the end of the loop. (Closed)
Patch Set: Also check warm-up Created 4 years, 1 month 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
« no previous file with comments | « src/ast/ast.h ('k') | test/mjsunit/regress/regress-662904.js » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/crankshaft/hydrogen.h" 5 #include "src/crankshaft/hydrogen.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/allocation-site-scopes.h" 10 #include "src/allocation-site-scopes.h"
(...skipping 5027 matching lines...) Expand 10 before | Expand all | Expand 10 after
5038 Add<HSimulate>(stmt->AssignmentId()); 5038 Add<HSimulate>(stmt->AssignmentId());
5039 5039
5040 BreakAndContinueInfo break_info(stmt, scope(), 5); 5040 BreakAndContinueInfo break_info(stmt, scope(), 5);
5041 break_info.set_continue_block(continue_block); 5041 break_info.set_continue_block(continue_block);
5042 { 5042 {
5043 BreakAndContinueScope push(&break_info, this); 5043 BreakAndContinueScope push(&break_info, this);
5044 CHECK_BAILOUT(VisitLoopBody(stmt, stmt->StackCheckId(), loop_entry)); 5044 CHECK_BAILOUT(VisitLoopBody(stmt, stmt->StackCheckId(), loop_entry));
5045 } 5045 }
5046 5046
5047 HBasicBlock* body_exit = JoinContinue( 5047 HBasicBlock* body_exit = JoinContinue(
5048 stmt, stmt->ContinueId(), current_block(), break_info.continue_block()); 5048 stmt, stmt->IncrementId(), current_block(), break_info.continue_block());
5049 5049
5050 if (body_exit != NULL) { 5050 if (body_exit != NULL) {
5051 set_current_block(body_exit); 5051 set_current_block(body_exit);
5052 5052
5053 HValue* current_index = Pop(); 5053 HValue* current_index = Pop();
5054 HValue* increment = 5054 HValue* increment =
5055 AddUncasted<HAdd>(current_index, graph()->GetConstant1()); 5055 AddUncasted<HAdd>(current_index, graph()->GetConstant1());
5056 increment->ClearFlag(HValue::kCanOverflow); 5056 increment->ClearFlag(HValue::kCanOverflow);
5057 Push(increment); 5057 Push(increment);
5058 body_exit = current_block(); 5058 body_exit = current_block();
(...skipping 7990 matching lines...) Expand 10 before | Expand all | Expand 10 after
13049 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13049 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13050 } 13050 }
13051 13051
13052 #ifdef DEBUG 13052 #ifdef DEBUG
13053 graph_->Verify(false); // No full verify. 13053 graph_->Verify(false); // No full verify.
13054 #endif 13054 #endif
13055 } 13055 }
13056 13056
13057 } // namespace internal 13057 } // namespace internal
13058 } // namespace v8 13058 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast.h ('k') | test/mjsunit/regress/regress-662904.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698