| 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 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 6 | 6 |
| 7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
| (...skipping 4156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4167 __ cmpwi(scratch2, Operand::Zero()); | 4167 __ cmpwi(scratch2, Operand::Zero()); |
| 4168 __ blt(&bailout); | 4168 __ blt(&bailout); |
| 4169 #endif | 4169 #endif |
| 4170 | 4170 |
| 4171 __ AddAndCheckForOverflow(string_length, string_length, scratch2, scratch1, | 4171 __ AddAndCheckForOverflow(string_length, string_length, scratch2, scratch1, |
| 4172 r0); | 4172 r0); |
| 4173 __ BranchOnOverflow(&bailout); | 4173 __ BranchOnOverflow(&bailout); |
| 4174 __ SmiUntag(string_length); | 4174 __ SmiUntag(string_length); |
| 4175 | 4175 |
| 4176 // Bailout for large object allocations. | 4176 // Bailout for large object allocations. |
| 4177 __ cmpi(string_length, Operand(Page::kMaxRegularHeapObjectSize)); | 4177 __ Cmpi(string_length, Operand(Page::kMaxRegularHeapObjectSize), r0); |
| 4178 __ bgt(&bailout); | 4178 __ bgt(&bailout); |
| 4179 | 4179 |
| 4180 // Get first element in the array to free up the elements register to be used | 4180 // Get first element in the array to free up the elements register to be used |
| 4181 // for the result. | 4181 // for the result. |
| 4182 __ addi(element, elements, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); | 4182 __ addi(element, elements, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); |
| 4183 result = elements; // End of live range for elements. | 4183 result = elements; // End of live range for elements. |
| 4184 elements = no_reg; | 4184 elements = no_reg; |
| 4185 // Live values in registers: | 4185 // Live values in registers: |
| 4186 // element: First array element | 4186 // element: First array element |
| 4187 // separator: Separator string | 4187 // separator: Separator string |
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5142 return ON_STACK_REPLACEMENT; | 5142 return ON_STACK_REPLACEMENT; |
| 5143 } | 5143 } |
| 5144 | 5144 |
| 5145 DCHECK(interrupt_address == | 5145 DCHECK(interrupt_address == |
| 5146 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5146 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5147 return OSR_AFTER_STACK_CHECK; | 5147 return OSR_AFTER_STACK_CHECK; |
| 5148 } | 5148 } |
| 5149 } // namespace internal | 5149 } // namespace internal |
| 5150 } // namespace v8 | 5150 } // namespace v8 |
| 5151 #endif // V8_TARGET_ARCH_PPC | 5151 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |