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

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

Issue 153923005: A64: Synchronize with r17525. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/a64/code-stubs-a64.cc ('k') | src/a64/ic-a64.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1772 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 __ Mov(x1, Operand(constant_elements)); 1783 __ Mov(x1, Operand(constant_elements));
1784 if (has_fast_elements && constant_elements_values->map() == 1784 if (has_fast_elements && constant_elements_values->map() ==
1785 isolate()->heap()->fixed_cow_array_map()) { 1785 isolate()->heap()->fixed_cow_array_map()) {
1786 FastCloneShallowArrayStub stub( 1786 FastCloneShallowArrayStub stub(
1787 FastCloneShallowArrayStub::COPY_ON_WRITE_ELEMENTS, 1787 FastCloneShallowArrayStub::COPY_ON_WRITE_ELEMENTS,
1788 DONT_TRACK_ALLOCATION_SITE, 1788 DONT_TRACK_ALLOCATION_SITE,
1789 length); 1789 length);
1790 __ CallStub(&stub); 1790 __ CallStub(&stub);
1791 __ IncrementCounter( 1791 __ IncrementCounter(
1792 isolate()->counters()->cow_arrays_created_stub(), 1, x10, x11); 1792 isolate()->counters()->cow_arrays_created_stub(), 1, x10, x11);
1793 } else if (expr->depth() > 1) { 1793 } else if (expr->depth() > 1 ||
1794 Serializer::enabled() ||
1795 length > FastCloneShallowArrayStub::kMaximumClonedLength) {
1794 __ Push(x3, x2, x1); 1796 __ Push(x3, x2, x1);
1795 __ CallRuntime(Runtime::kCreateArrayLiteral, 3); 1797 __ CallRuntime(Runtime::kCreateArrayLiteral, 3);
1796 } else if (Serializer::enabled() ||
1797 length > FastCloneShallowArrayStub::kMaximumClonedLength) {
1798 __ Push(x3, x2, x1);
1799 __ CallRuntime(Runtime::kCreateArrayLiteralShallow, 3);
1800 } else { 1798 } else {
1801 ASSERT(IsFastSmiOrObjectElementsKind(constant_elements_kind) || 1799 ASSERT(IsFastSmiOrObjectElementsKind(constant_elements_kind) ||
1802 FLAG_smi_only_arrays); 1800 FLAG_smi_only_arrays);
1803 FastCloneShallowArrayStub::Mode mode = 1801 FastCloneShallowArrayStub::Mode mode =
1804 FastCloneShallowArrayStub::CLONE_ANY_ELEMENTS; 1802 FastCloneShallowArrayStub::CLONE_ANY_ELEMENTS;
1805 AllocationSiteMode allocation_site_mode = FLAG_track_allocation_sites 1803 AllocationSiteMode allocation_site_mode = FLAG_track_allocation_sites
1806 ? TRACK_ALLOCATION_SITE : DONT_TRACK_ALLOCATION_SITE; 1804 ? TRACK_ALLOCATION_SITE : DONT_TRACK_ALLOCATION_SITE;
1807 1805
1808 if (has_fast_elements) { 1806 if (has_fast_elements) {
1809 mode = FastCloneShallowArrayStub::CLONE_ELEMENTS; 1807 mode = FastCloneShallowArrayStub::CLONE_ELEMENTS;
(...skipping 3254 matching lines...) Expand 10 before | Expand all | Expand 10 after
5064 return previous_; 5062 return previous_;
5065 } 5063 }
5066 5064
5067 5065
5068 #undef __ 5066 #undef __
5069 5067
5070 5068
5071 } } // namespace v8::internal 5069 } } // namespace v8::internal
5072 5070
5073 #endif // V8_TARGET_ARCH_A64 5071 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | src/a64/ic-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698