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

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

Issue 1415143004: PPC: Fix "Bailout for large object allocations in full code EmitFastOneByteArrayJoin." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « no previous file | 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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698