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/x64/lithium-x64.cc

Issue 330053002: ARM, ARM64: Optimize array copy (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/mips/lithium-mips.cc ('k') | src/x87/lithium-x87.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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/lithium-allocator-inl.h" 9 #include "src/lithium-allocator-inl.h"
10 #include "src/x64/lithium-x64.h" 10 #include "src/x64/lithium-x64.h"
(...skipping 2155 matching lines...) Expand 10 before | Expand all | Expand 10 after
2166 LOperand* context = UseFixed(instr->context(), rsi); 2166 LOperand* context = UseFixed(instr->context(), rsi);
2167 LOperand* object = UseFixed(instr->object(), rdx); 2167 LOperand* object = UseFixed(instr->object(), rdx);
2168 LOperand* key = UseFixed(instr->key(), rax); 2168 LOperand* key = UseFixed(instr->key(), rax);
2169 2169
2170 LLoadKeyedGeneric* result = 2170 LLoadKeyedGeneric* result =
2171 new(zone()) LLoadKeyedGeneric(context, object, key); 2171 new(zone()) LLoadKeyedGeneric(context, object, key);
2172 return MarkAsCall(DefineFixed(result, rax), instr); 2172 return MarkAsCall(DefineFixed(result, rax), instr);
2173 } 2173 }
2174 2174
2175 2175
2176 LInstruction* LChunkBuilder::DoFillElements(HFillElements* instr) {
2177 UNIMPLEMENTED();
2178 return NULL;
2179 }
2180
2181
2182 LInstruction* LChunkBuilder::DoCopyElements(HCopyElements* instr) {
2183 UNIMPLEMENTED();
2184 return NULL;
2185 }
2186
2187
2176 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) { 2188 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) {
2177 ElementsKind elements_kind = instr->elements_kind(); 2189 ElementsKind elements_kind = instr->elements_kind();
2178 2190
2179 if ((kPointerSize == kInt64Size) && instr->IsDehoisted()) { 2191 if ((kPointerSize == kInt64Size) && instr->IsDehoisted()) {
2180 FindDehoistedKeyDefinitions(instr->key()); 2192 FindDehoistedKeyDefinitions(instr->key());
2181 } 2193 }
2182 2194
2183 if (!instr->is_typed_elements()) { 2195 if (!instr->is_typed_elements()) {
2184 ASSERT(instr->elements()->representation().IsTagged()); 2196 ASSERT(instr->elements()->representation().IsTagged());
2185 bool needs_write_barrier = instr->NeedsWriteBarrier(); 2197 bool needs_write_barrier = instr->NeedsWriteBarrier();
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
2602 LOperand* function = UseRegisterAtStart(instr->function()); 2614 LOperand* function = UseRegisterAtStart(instr->function());
2603 LAllocateBlockContext* result = 2615 LAllocateBlockContext* result =
2604 new(zone()) LAllocateBlockContext(context, function); 2616 new(zone()) LAllocateBlockContext(context, function);
2605 return MarkAsCall(DefineFixed(result, rsi), instr); 2617 return MarkAsCall(DefineFixed(result, rsi), instr);
2606 } 2618 }
2607 2619
2608 2620
2609 } } // namespace v8::internal 2621 } } // namespace v8::internal
2610 2622
2611 #endif // V8_TARGET_ARCH_X64 2623 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/x87/lithium-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698