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

Side by Side Diff: src/ia32/full-codegen-ia32.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/hydrogen.cc ('k') | src/mips/full-codegen-mips.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_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "code-stubs.h" 9 #include "code-stubs.h"
10 #include "codegen.h" 10 #include "codegen.h"
(...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after
1732 Handle<FixedArrayBase> constant_elements_values( 1732 Handle<FixedArrayBase> constant_elements_values(
1733 FixedArrayBase::cast(constant_elements->get(1))); 1733 FixedArrayBase::cast(constant_elements->get(1)));
1734 1734
1735 AllocationSiteMode allocation_site_mode = TRACK_ALLOCATION_SITE; 1735 AllocationSiteMode allocation_site_mode = TRACK_ALLOCATION_SITE;
1736 if (has_constant_fast_elements && !FLAG_allocation_site_pretenuring) { 1736 if (has_constant_fast_elements && !FLAG_allocation_site_pretenuring) {
1737 // If the only customer of allocation sites is transitioning, then 1737 // If the only customer of allocation sites is transitioning, then
1738 // we can turn it off if we don't have anywhere else to transition to. 1738 // we can turn it off if we don't have anywhere else to transition to.
1739 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE; 1739 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE;
1740 } 1740 }
1741 1741
1742 if (expr->depth() > 1) { 1742 if (expr->depth() > 1 || length > JSObject::kInitialMaxFastElementArray) {
1743 __ mov(ebx, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 1743 __ mov(ebx, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
1744 __ push(FieldOperand(ebx, JSFunction::kLiteralsOffset)); 1744 __ push(FieldOperand(ebx, JSFunction::kLiteralsOffset));
1745 __ push(Immediate(Smi::FromInt(expr->literal_index()))); 1745 __ push(Immediate(Smi::FromInt(expr->literal_index())));
1746 __ push(Immediate(constant_elements)); 1746 __ push(Immediate(constant_elements));
1747 __ push(Immediate(Smi::FromInt(flags))); 1747 __ push(Immediate(Smi::FromInt(flags)));
1748 __ CallRuntime(Runtime::kHiddenCreateArrayLiteral, 4); 1748 __ CallRuntime(Runtime::kHiddenCreateArrayLiteral, 4);
1749 } else { 1749 } else {
1750 __ mov(ebx, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 1750 __ mov(ebx, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
1751 __ mov(eax, FieldOperand(ebx, JSFunction::kLiteralsOffset)); 1751 __ mov(eax, FieldOperand(ebx, JSFunction::kLiteralsOffset));
1752 __ mov(ebx, Immediate(Smi::FromInt(expr->literal_index()))); 1752 __ mov(ebx, Immediate(Smi::FromInt(expr->literal_index())));
(...skipping 3050 matching lines...) Expand 10 before | Expand all | Expand 10 after
4803 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4803 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4804 Assembler::target_address_at(call_target_address, 4804 Assembler::target_address_at(call_target_address,
4805 unoptimized_code)); 4805 unoptimized_code));
4806 return OSR_AFTER_STACK_CHECK; 4806 return OSR_AFTER_STACK_CHECK;
4807 } 4807 }
4808 4808
4809 4809
4810 } } // namespace v8::internal 4810 } } // namespace v8::internal
4811 4811
4812 #endif // V8_TARGET_ARCH_IA32 4812 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698