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

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

Issue 1391373004: 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, 2 months 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
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 4243 matching lines...) Expand 10 before | Expand all | Expand 10 after
4254 __ bne(&bailout); 4254 __ bne(&bailout);
4255 __ cmpwi(scratch2, Operand::Zero()); 4255 __ cmpwi(scratch2, Operand::Zero());
4256 __ blt(&bailout); 4256 __ blt(&bailout);
4257 #endif 4257 #endif
4258 4258
4259 __ AddAndCheckForOverflow(string_length, string_length, scratch2, scratch1, 4259 __ AddAndCheckForOverflow(string_length, string_length, scratch2, scratch1,
4260 r0); 4260 r0);
4261 __ BranchOnOverflow(&bailout); 4261 __ BranchOnOverflow(&bailout);
4262 __ SmiUntag(string_length); 4262 __ SmiUntag(string_length);
4263 4263
4264 // Bailout for large object allocations.
4265 __ cmpi(string_length, Operand(Page::kMaxRegularHeapObjectSize));
4266 __ bgt(&bailout);
4267
4264 // Get first element in the array to free up the elements register to be used 4268 // Get first element in the array to free up the elements register to be used
4265 // for the result. 4269 // for the result.
4266 __ addi(element, elements, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); 4270 __ addi(element, elements, Operand(FixedArray::kHeaderSize - kHeapObjectTag));
4267 result = elements; // End of live range for elements. 4271 result = elements; // End of live range for elements.
4268 elements = no_reg; 4272 elements = no_reg;
4269 // Live values in registers: 4273 // Live values in registers:
4270 // element: First array element 4274 // element: First array element
4271 // separator: Separator string 4275 // separator: Separator string
4272 // string_length: Length of result string (not smi) 4276 // string_length: Length of result string (not smi)
4273 // array_length: Length of the array. 4277 // array_length: Length of the array.
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
5226 return ON_STACK_REPLACEMENT; 5230 return ON_STACK_REPLACEMENT;
5227 } 5231 }
5228 5232
5229 DCHECK(interrupt_address == 5233 DCHECK(interrupt_address ==
5230 isolate->builtins()->OsrAfterStackCheck()->entry()); 5234 isolate->builtins()->OsrAfterStackCheck()->entry());
5231 return OSR_AFTER_STACK_CHECK; 5235 return OSR_AFTER_STACK_CHECK;
5232 } 5236 }
5233 } // namespace internal 5237 } // namespace internal
5234 } // namespace v8 5238 } // namespace v8
5235 #endif // V8_TARGET_ARCH_PPC 5239 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698