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

Side by Side Diff: src/full-codegen/s390/full-codegen-s390.cc

Issue 2502503002: PPC/s390: [turbofan] Remove special JSForInStep and JSForInDone. (Closed)
Patch Set: 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/full-codegen/ppc/full-codegen-ppc.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #if V8_TARGET_ARCH_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/full-codegen/full-codegen.h" 7 #include "src/full-codegen/full-codegen.h"
8 #include "src/ast/compile-time-value.h" 8 #include "src/ast/compile-time-value.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 } 1078 }
1079 1079
1080 // Both Crankshaft and Turbofan expect BodyId to be right before stmt->body(). 1080 // Both Crankshaft and Turbofan expect BodyId to be right before stmt->body().
1081 PrepareForBailoutForId(stmt->BodyId(), BailoutState::NO_REGISTERS); 1081 PrepareForBailoutForId(stmt->BodyId(), BailoutState::NO_REGISTERS);
1082 // Generate code for the body of the loop. 1082 // Generate code for the body of the loop.
1083 Visit(stmt->body()); 1083 Visit(stmt->body());
1084 1084
1085 // Generate code for the going to the next element by incrementing 1085 // Generate code for the going to the next element by incrementing
1086 // the index (smi) stored on top of the stack. 1086 // the index (smi) stored on top of the stack.
1087 __ bind(loop_statement.continue_label()); 1087 __ bind(loop_statement.continue_label());
1088 PrepareForBailoutForId(stmt->IncrementId(), BailoutState::NO_REGISTERS);
1088 __ pop(r2); 1089 __ pop(r2);
1089 __ AddSmiLiteral(r2, r2, Smi::FromInt(1), r0); 1090 __ AddSmiLiteral(r2, r2, Smi::FromInt(1), r0);
1090 __ push(r2); 1091 __ push(r2);
1091 1092
1092 EmitBackEdgeBookkeeping(stmt, &loop); 1093 EmitBackEdgeBookkeeping(stmt, &loop);
1093 __ b(&loop); 1094 __ b(&loop);
1094 1095
1095 // Remove the pointers stored on the stack. 1096 // Remove the pointers stored on the stack.
1096 __ bind(loop_statement.break_label()); 1097 __ bind(loop_statement.break_label());
1097 DropOperands(5); 1098 DropOperands(5);
(...skipping 2448 matching lines...) Expand 10 before | Expand all | Expand 10 after
3546 DCHECK(kOSRBranchInstruction == br_instr); 3547 DCHECK(kOSRBranchInstruction == br_instr);
3547 3548
3548 DCHECK(interrupt_address == 3549 DCHECK(interrupt_address ==
3549 isolate->builtins()->OnStackReplacement()->entry()); 3550 isolate->builtins()->OnStackReplacement()->entry());
3550 return ON_STACK_REPLACEMENT; 3551 return ON_STACK_REPLACEMENT;
3551 } 3552 }
3552 3553
3553 } // namespace internal 3554 } // namespace internal
3554 } // namespace v8 3555 } // namespace v8
3555 #endif // V8_TARGET_ARCH_S390 3556 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698