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

Side by Side Diff: src/mips/full-codegen-mips.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/ia32/full-codegen-ia32.cc ('k') | src/x64/full-codegen-x64.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after
1808 // If the only customer of allocation sites is transitioning, then 1808 // If the only customer of allocation sites is transitioning, then
1809 // we can turn it off if we don't have anywhere else to transition to. 1809 // we can turn it off if we don't have anywhere else to transition to.
1810 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE; 1810 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE;
1811 } 1811 }
1812 1812
1813 __ mov(a0, result_register()); 1813 __ mov(a0, result_register());
1814 __ lw(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1814 __ lw(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1815 __ lw(a3, FieldMemOperand(a3, JSFunction::kLiteralsOffset)); 1815 __ lw(a3, FieldMemOperand(a3, JSFunction::kLiteralsOffset));
1816 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); 1816 __ li(a2, Operand(Smi::FromInt(expr->literal_index())));
1817 __ li(a1, Operand(constant_elements)); 1817 __ li(a1, Operand(constant_elements));
1818 if (expr->depth() > 1) { 1818 if (expr->depth() > 1 || length > JSObject::kInitialMaxFastElementArray) {
1819 __ li(a0, Operand(Smi::FromInt(flags))); 1819 __ li(a0, Operand(Smi::FromInt(flags)));
1820 __ Push(a3, a2, a1, a0); 1820 __ Push(a3, a2, a1, a0);
1821 __ CallRuntime(Runtime::kHiddenCreateArrayLiteral, 4); 1821 __ CallRuntime(Runtime::kHiddenCreateArrayLiteral, 4);
1822 } else { 1822 } else {
1823 FastCloneShallowArrayStub stub(isolate(), allocation_site_mode); 1823 FastCloneShallowArrayStub stub(isolate(), allocation_site_mode);
1824 __ CallStub(&stub); 1824 __ CallStub(&stub);
1825 } 1825 }
1826 1826
1827 bool result_saved = false; // Is the result saved to the stack? 1827 bool result_saved = false; // Is the result saved to the stack?
1828 1828
(...skipping 3033 matching lines...) Expand 10 before | Expand all | Expand 10 after
4862 Assembler::target_address_at(pc_immediate_load_address)) == 4862 Assembler::target_address_at(pc_immediate_load_address)) ==
4863 reinterpret_cast<uint32_t>( 4863 reinterpret_cast<uint32_t>(
4864 isolate->builtins()->OsrAfterStackCheck()->entry())); 4864 isolate->builtins()->OsrAfterStackCheck()->entry()));
4865 return OSR_AFTER_STACK_CHECK; 4865 return OSR_AFTER_STACK_CHECK;
4866 } 4866 }
4867 4867
4868 4868
4869 } } // namespace v8::internal 4869 } } // namespace v8::internal
4870 4870
4871 #endif // V8_TARGET_ARCH_MIPS 4871 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698