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/x87/lithium-x87.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/x64/lithium-x64.cc ('k') | no next file » | 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_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/lithium-allocator-inl.h" 9 #include "src/lithium-allocator-inl.h"
10 #include "src/x87/lithium-x87.h" 10 #include "src/x87/lithium-x87.h"
(...skipping 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after
2186 LOperand* context = UseFixed(instr->context(), esi); 2186 LOperand* context = UseFixed(instr->context(), esi);
2187 LOperand* object = UseFixed(instr->object(), edx); 2187 LOperand* object = UseFixed(instr->object(), edx);
2188 LOperand* key = UseFixed(instr->key(), ecx); 2188 LOperand* key = UseFixed(instr->key(), ecx);
2189 2189
2190 LLoadKeyedGeneric* result = 2190 LLoadKeyedGeneric* result =
2191 new(zone()) LLoadKeyedGeneric(context, object, key); 2191 new(zone()) LLoadKeyedGeneric(context, object, key);
2192 return MarkAsCall(DefineFixed(result, eax), instr); 2192 return MarkAsCall(DefineFixed(result, eax), instr);
2193 } 2193 }
2194 2194
2195 2195
2196 LInstruction* LChunkBuilder::DoFillElements(HFillElements* instr) {
2197 UNIMPLEMENTED();
2198 return NULL;
2199 }
2200
2201
2202 LInstruction* LChunkBuilder::DoCopyElements(HCopyElements* instr) {
2203 UNIMPLEMENTED();
2204 return NULL;
2205 }
2206
2207
2196 LOperand* LChunkBuilder::GetStoreKeyedValueOperand(HStoreKeyed* instr) { 2208 LOperand* LChunkBuilder::GetStoreKeyedValueOperand(HStoreKeyed* instr) {
2197 ElementsKind elements_kind = instr->elements_kind(); 2209 ElementsKind elements_kind = instr->elements_kind();
2198 2210
2199 // Determine if we need a byte register in this case for the value. 2211 // Determine if we need a byte register in this case for the value.
2200 bool val_is_fixed_register = 2212 bool val_is_fixed_register =
2201 elements_kind == EXTERNAL_INT8_ELEMENTS || 2213 elements_kind == EXTERNAL_INT8_ELEMENTS ||
2202 elements_kind == EXTERNAL_UINT8_ELEMENTS || 2214 elements_kind == EXTERNAL_UINT8_ELEMENTS ||
2203 elements_kind == EXTERNAL_UINT8_CLAMPED_ELEMENTS || 2215 elements_kind == EXTERNAL_UINT8_CLAMPED_ELEMENTS ||
2204 elements_kind == UINT8_ELEMENTS || 2216 elements_kind == UINT8_ELEMENTS ||
2205 elements_kind == INT8_ELEMENTS || 2217 elements_kind == INT8_ELEMENTS ||
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
2651 LOperand* function = UseRegisterAtStart(instr->function()); 2663 LOperand* function = UseRegisterAtStart(instr->function());
2652 LAllocateBlockContext* result = 2664 LAllocateBlockContext* result =
2653 new(zone()) LAllocateBlockContext(context, function); 2665 new(zone()) LAllocateBlockContext(context, function);
2654 return MarkAsCall(DefineFixed(result, esi), instr); 2666 return MarkAsCall(DefineFixed(result, esi), instr);
2655 } 2667 }
2656 2668
2657 2669
2658 } } // namespace v8::internal 2670 } } // namespace v8::internal
2659 2671
2660 #endif // V8_TARGET_ARCH_X87 2672 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698