| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_PPC | 7 #if V8_TARGET_ARCH_PPC |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1210 __ beq(loop_statement.continue_label()); | 1210 __ beq(loop_statement.continue_label()); |
| 1211 | 1211 |
| 1212 // Update the 'each' property or variable from the possibly filtered | 1212 // Update the 'each' property or variable from the possibly filtered |
| 1213 // entry in register r6. | 1213 // entry in register r6. |
| 1214 __ bind(&update_each); | 1214 __ bind(&update_each); |
| 1215 __ mr(result_register(), r6); | 1215 __ mr(result_register(), r6); |
| 1216 // Perform the assignment as if via '='. | 1216 // Perform the assignment as if via '='. |
| 1217 { | 1217 { |
| 1218 EffectContext context(this); | 1218 EffectContext context(this); |
| 1219 EmitAssignment(stmt->each()); | 1219 EmitAssignment(stmt->each()); |
| 1220 PrepareForBailoutForId(stmt->AssignmentId(), NO_REGISTERS); |
| 1220 } | 1221 } |
| 1221 | 1222 |
| 1222 // Generate code for the body of the loop. | 1223 // Generate code for the body of the loop. |
| 1223 Visit(stmt->body()); | 1224 Visit(stmt->body()); |
| 1224 | 1225 |
| 1225 // Generate code for the going to the next element by incrementing | 1226 // Generate code for the going to the next element by incrementing |
| 1226 // the index (smi) stored on top of the stack. | 1227 // the index (smi) stored on top of the stack. |
| 1227 __ bind(loop_statement.continue_label()); | 1228 __ bind(loop_statement.continue_label()); |
| 1228 __ pop(r3); | 1229 __ pop(r3); |
| 1229 __ AddSmiLiteral(r3, r3, Smi::FromInt(1), r0); | 1230 __ AddSmiLiteral(r3, r3, Smi::FromInt(1), r0); |
| (...skipping 4053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5283 return ON_STACK_REPLACEMENT; | 5284 return ON_STACK_REPLACEMENT; |
| 5284 } | 5285 } |
| 5285 | 5286 |
| 5286 DCHECK(interrupt_address == | 5287 DCHECK(interrupt_address == |
| 5287 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5288 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5288 return OSR_AFTER_STACK_CHECK; | 5289 return OSR_AFTER_STACK_CHECK; |
| 5289 } | 5290 } |
| 5290 } | 5291 } |
| 5291 } // namespace v8::internal | 5292 } // namespace v8::internal |
| 5292 #endif // V8_TARGET_ARCH_PPC | 5293 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |