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 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1234 // For proxies, no filtering is done. | 1234 // For proxies, no filtering is done. |
1235 // TODO(rossberg): What if only a prototype is a proxy? Not specified yet. | 1235 // TODO(rossberg): What if only a prototype is a proxy? Not specified yet. |
1236 __ CmpSmiLiteral(r5, Smi::FromInt(0), r0); | 1236 __ CmpSmiLiteral(r5, Smi::FromInt(0), r0); |
1237 __ beq(&update_each); | 1237 __ beq(&update_each); |
1238 | 1238 |
1239 // Convert the entry to a string or (smi) 0 if it isn't a property | 1239 // Convert the entry to a string or (smi) 0 if it isn't a property |
1240 // any more. If the property has been removed while iterating, we | 1240 // any more. If the property has been removed while iterating, we |
1241 // just skip it. | 1241 // just skip it. |
1242 __ Push(r4, r6); // Enumerable and current entry. | 1242 __ Push(r4, r6); // Enumerable and current entry. |
1243 __ InvokeBuiltin(Builtins::FILTER_KEY, CALL_FUNCTION); | 1243 __ InvokeBuiltin(Builtins::FILTER_KEY, CALL_FUNCTION); |
| 1244 PrepareForBailoutForId(stmt->FilterId(), TOS_REG); |
1244 __ mr(r6, r3); | 1245 __ mr(r6, r3); |
1245 __ cmpi(r6, Operand::Zero()); | 1246 __ cmpi(r6, Operand::Zero()); |
1246 __ beq(loop_statement.continue_label()); | 1247 __ beq(loop_statement.continue_label()); |
1247 | 1248 |
1248 // Update the 'each' property or variable from the possibly filtered | 1249 // Update the 'each' property or variable from the possibly filtered |
1249 // entry in register r6. | 1250 // entry in register r6. |
1250 __ bind(&update_each); | 1251 __ bind(&update_each); |
1251 __ mr(result_register(), r6); | 1252 __ mr(result_register(), r6); |
1252 // Perform the assignment as if via '='. | 1253 // Perform the assignment as if via '='. |
1253 { | 1254 { |
(...skipping 4218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5472 return ON_STACK_REPLACEMENT; | 5473 return ON_STACK_REPLACEMENT; |
5473 } | 5474 } |
5474 | 5475 |
5475 DCHECK(interrupt_address == | 5476 DCHECK(interrupt_address == |
5476 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5477 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5477 return OSR_AFTER_STACK_CHECK; | 5478 return OSR_AFTER_STACK_CHECK; |
5478 } | 5479 } |
5479 } | 5480 } |
5480 } // namespace v8::internal | 5481 } // namespace v8::internal |
5481 #endif // V8_TARGET_ARCH_PPC | 5482 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |