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

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.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
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 3943 matching lines...) Expand 10 before | Expand all | Expand 10 after
3954 // string_length to get the length of the result string. 3954 // string_length to get the length of the result string.
3955 // Load the separator length as untagged. 3955 // Load the separator length as untagged.
3956 // We assume little endianness, and that the length is positive. 3956 // We assume little endianness, and that the length is positive.
3957 __ Ldrsw(separator_length, 3957 __ Ldrsw(separator_length,
3958 UntagSmiFieldMemOperand(separator, 3958 UntagSmiFieldMemOperand(separator,
3959 SeqOneByteString::kLengthOffset)); 3959 SeqOneByteString::kLengthOffset));
3960 __ Sub(string_length, string_length, separator_length); 3960 __ Sub(string_length, string_length, separator_length);
3961 __ Umaddl(string_length, array_length.W(), separator_length.W(), 3961 __ Umaddl(string_length, array_length.W(), separator_length.W(),
3962 string_length); 3962 string_length);
3963 3963
3964 // Bailout for large object allocations.
3965 __ Cmp(string_length, Page::kMaxRegularHeapObjectSize);
3966 __ B(gt, &bailout);
3967
3964 // Get first element in the array. 3968 // Get first element in the array.
3965 __ Add(element, elements, FixedArray::kHeaderSize - kHeapObjectTag); 3969 __ Add(element, elements, FixedArray::kHeaderSize - kHeapObjectTag);
3966 // Live values in registers: 3970 // Live values in registers:
3967 // element: First array element 3971 // element: First array element
3968 // separator: Separator string 3972 // separator: Separator string
3969 // string_length: Length of result string (not smi) 3973 // string_length: Length of result string (not smi)
3970 // array_length: Length of the array (not smi). 3974 // array_length: Length of the array (not smi).
3971 __ AllocateOneByteString(result, string_length, scratch1, scratch2, scratch3, 3975 __ AllocateOneByteString(result, string_length, scratch1, scratch2, scratch3,
3972 &bailout); 3976 &bailout);
3973 3977
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after
5272 } 5276 }
5273 5277
5274 return INTERRUPT; 5278 return INTERRUPT;
5275 } 5279 }
5276 5280
5277 5281
5278 } // namespace internal 5282 } // namespace internal
5279 } // namespace v8 5283 } // namespace v8
5280 5284
5281 #endif // V8_TARGET_ARCH_ARM64 5285 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698