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

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

Issue 300283003: FastCloneShallowArrayStub should not be used it the length of the array is too big as it could even… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/code-stubs.h » ('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 #include "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "code-stubs.h" 9 #include "code-stubs.h"
10 #include "codegen.h" 10 #include "codegen.h"
(...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after
1798 if (has_fast_elements && !FLAG_allocation_site_pretenuring) { 1798 if (has_fast_elements && !FLAG_allocation_site_pretenuring) {
1799 // If the only customer of allocation sites is transitioning, then 1799 // If the only customer of allocation sites is transitioning, then
1800 // we can turn it off if we don't have anywhere else to transition to. 1800 // we can turn it off if we don't have anywhere else to transition to.
1801 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE; 1801 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE;
1802 } 1802 }
1803 1803
1804 __ Ldr(x3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1804 __ Ldr(x3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1805 __ Ldr(x3, FieldMemOperand(x3, JSFunction::kLiteralsOffset)); 1805 __ Ldr(x3, FieldMemOperand(x3, JSFunction::kLiteralsOffset));
1806 __ Mov(x2, Smi::FromInt(expr->literal_index())); 1806 __ Mov(x2, Smi::FromInt(expr->literal_index()));
1807 __ Mov(x1, Operand(constant_elements)); 1807 __ Mov(x1, Operand(constant_elements));
1808 if (expr->depth() > 1) { 1808 if (expr->depth() > 1 || length > JSObject::kInitialMaxFastElementArray) {
1809 __ Mov(x0, Smi::FromInt(flags)); 1809 __ Mov(x0, Smi::FromInt(flags));
1810 __ Push(x3, x2, x1, x0); 1810 __ Push(x3, x2, x1, x0);
1811 __ CallRuntime(Runtime::kHiddenCreateArrayLiteral, 4); 1811 __ CallRuntime(Runtime::kHiddenCreateArrayLiteral, 4);
1812 } else { 1812 } else {
1813 FastCloneShallowArrayStub stub(isolate(), allocation_site_mode); 1813 FastCloneShallowArrayStub stub(isolate(), allocation_site_mode);
1814 __ CallStub(&stub); 1814 __ CallStub(&stub);
1815 } 1815 }
1816 1816
1817 bool result_saved = false; // Is the result saved to the stack? 1817 bool result_saved = false; // Is the result saved to the stack?
1818 1818
(...skipping 3077 matching lines...) Expand 10 before | Expand all | Expand 10 after
4896 return previous_; 4896 return previous_;
4897 } 4897 }
4898 4898
4899 4899
4900 #undef __ 4900 #undef __
4901 4901
4902 4902
4903 } } // namespace v8::internal 4903 } } // namespace v8::internal
4904 4904
4905 #endif // V8_TARGET_ARCH_ARM64 4905 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698