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

Side by Side Diff: src/arm/full-codegen-arm.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 | « no previous file | src/arm64/full-codegen-arm64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "code-stubs.h" 9 #include "code-stubs.h"
10 #include "codegen.h" 10 #include "codegen.h"
(...skipping 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after
1795 if (has_fast_elements && !FLAG_allocation_site_pretenuring) { 1795 if (has_fast_elements && !FLAG_allocation_site_pretenuring) {
1796 // If the only customer of allocation sites is transitioning, then 1796 // If the only customer of allocation sites is transitioning, then
1797 // we can turn it off if we don't have anywhere else to transition to. 1797 // we can turn it off if we don't have anywhere else to transition to.
1798 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE; 1798 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE;
1799 } 1799 }
1800 1800
1801 __ ldr(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1801 __ ldr(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1802 __ ldr(r3, FieldMemOperand(r3, JSFunction::kLiteralsOffset)); 1802 __ ldr(r3, FieldMemOperand(r3, JSFunction::kLiteralsOffset));
1803 __ mov(r2, Operand(Smi::FromInt(expr->literal_index()))); 1803 __ mov(r2, Operand(Smi::FromInt(expr->literal_index())));
1804 __ mov(r1, Operand(constant_elements)); 1804 __ mov(r1, Operand(constant_elements));
1805 if (expr->depth() > 1) { 1805 if (expr->depth() > 1 || length > JSObject::kInitialMaxFastElementArray) {
1806 __ mov(r0, Operand(Smi::FromInt(flags))); 1806 __ mov(r0, Operand(Smi::FromInt(flags)));
1807 __ Push(r3, r2, r1, r0); 1807 __ Push(r3, r2, r1, r0);
1808 __ CallRuntime(Runtime::kHiddenCreateArrayLiteral, 4); 1808 __ CallRuntime(Runtime::kHiddenCreateArrayLiteral, 4);
1809 } else { 1809 } else {
1810 FastCloneShallowArrayStub stub(isolate(), allocation_site_mode); 1810 FastCloneShallowArrayStub stub(isolate(), allocation_site_mode);
1811 __ CallStub(&stub); 1811 __ CallStub(&stub);
1812 } 1812 }
1813 1813
1814 bool result_saved = false; // Is the result saved to the stack? 1814 bool result_saved = false; // Is the result saved to the stack?
1815 1815
(...skipping 3015 matching lines...) Expand 10 before | Expand all | Expand 10 after
4831 4831
4832 ASSERT(interrupt_address == 4832 ASSERT(interrupt_address ==
4833 isolate->builtins()->OsrAfterStackCheck()->entry()); 4833 isolate->builtins()->OsrAfterStackCheck()->entry());
4834 return OSR_AFTER_STACK_CHECK; 4834 return OSR_AFTER_STACK_CHECK;
4835 } 4835 }
4836 4836
4837 4837
4838 } } // namespace v8::internal 4838 } } // namespace v8::internal
4839 4839
4840 #endif // V8_TARGET_ARCH_ARM 4840 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698