| OLD | NEW |
| 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 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1079 } | 1079 } |
| 1080 | 1080 |
| 1081 // Both Crankshaft and Turbofan expect BodyId to be right before stmt->body(). | 1081 // Both Crankshaft and Turbofan expect BodyId to be right before stmt->body(). |
| 1082 PrepareForBailoutForId(stmt->BodyId(), BailoutState::NO_REGISTERS); | 1082 PrepareForBailoutForId(stmt->BodyId(), BailoutState::NO_REGISTERS); |
| 1083 // Generate code for the body of the loop. | 1083 // Generate code for the body of the loop. |
| 1084 Visit(stmt->body()); | 1084 Visit(stmt->body()); |
| 1085 | 1085 |
| 1086 // Generate code for the going to the next element by incrementing | 1086 // Generate code for the going to the next element by incrementing |
| 1087 // the index (smi) stored on top of the stack. | 1087 // the index (smi) stored on top of the stack. |
| 1088 __ bind(loop_statement.continue_label()); | 1088 __ bind(loop_statement.continue_label()); |
| 1089 PrepareForBailoutForId(stmt->IncrementId(), BailoutState::NO_REGISTERS); |
| 1089 __ pop(r2); | 1090 __ pop(r2); |
| 1090 __ AddSmiLiteral(r2, r2, Smi::FromInt(1), r0); | 1091 __ AddSmiLiteral(r2, r2, Smi::FromInt(1), r0); |
| 1091 __ push(r2); | 1092 __ push(r2); |
| 1092 | 1093 |
| 1093 EmitBackEdgeBookkeeping(stmt, &loop); | 1094 EmitBackEdgeBookkeeping(stmt, &loop); |
| 1094 __ b(&loop); | 1095 __ b(&loop); |
| 1095 | 1096 |
| 1096 // Remove the pointers stored on the stack. | 1097 // Remove the pointers stored on the stack. |
| 1097 __ bind(loop_statement.break_label()); | 1098 __ bind(loop_statement.break_label()); |
| 1098 DropOperands(5); | 1099 DropOperands(5); |
| (...skipping 2481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3580 DCHECK(kOSRBranchInstruction == br_instr); | 3581 DCHECK(kOSRBranchInstruction == br_instr); |
| 3581 | 3582 |
| 3582 DCHECK(interrupt_address == | 3583 DCHECK(interrupt_address == |
| 3583 isolate->builtins()->OnStackReplacement()->entry()); | 3584 isolate->builtins()->OnStackReplacement()->entry()); |
| 3584 return ON_STACK_REPLACEMENT; | 3585 return ON_STACK_REPLACEMENT; |
| 3585 } | 3586 } |
| 3586 | 3587 |
| 3587 } // namespace internal | 3588 } // namespace internal |
| 3588 } // namespace v8 | 3589 } // namespace v8 |
| 3589 #endif // V8_TARGET_ARCH_S390 | 3590 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |