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

Side by Side Diff: src/x64/lithium-x64.cc

Issue 338963003: KeyedLoadIC should have same register spec as LoadIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Last comment response. Created 6 years, 5 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-codegen-x64.cc ('k') | src/x64/stub-cache-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 "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/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/lithium-allocator-inl.h" 10 #include "src/lithium-allocator-inl.h"
(...skipping 2176 matching lines...) Expand 10 before | Expand all | Expand 10 after
2187 // LCodeGen::DoLoadKeyedFixedArray 2187 // LCodeGen::DoLoadKeyedFixedArray
2188 instr->RequiresHoleCheck()) { 2188 instr->RequiresHoleCheck()) {
2189 result = AssignEnvironment(result); 2189 result = AssignEnvironment(result);
2190 } 2190 }
2191 return result; 2191 return result;
2192 } 2192 }
2193 2193
2194 2194
2195 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { 2195 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) {
2196 LOperand* context = UseFixed(instr->context(), rsi); 2196 LOperand* context = UseFixed(instr->context(), rsi);
2197 LOperand* object = UseFixed(instr->object(), KeyedLoadIC::ReceiverRegister()); 2197 LOperand* object = UseFixed(instr->object(), LoadIC::ReceiverRegister());
2198 LOperand* key = UseFixed(instr->key(), KeyedLoadIC::NameRegister()); 2198 LOperand* key = UseFixed(instr->key(), LoadIC::NameRegister());
2199 2199
2200 LLoadKeyedGeneric* result = 2200 LLoadKeyedGeneric* result =
2201 new(zone()) LLoadKeyedGeneric(context, object, key); 2201 new(zone()) LLoadKeyedGeneric(context, object, key);
2202 return MarkAsCall(DefineFixed(result, rax), instr); 2202 return MarkAsCall(DefineFixed(result, rax), instr);
2203 } 2203 }
2204 2204
2205 2205
2206 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) { 2206 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) {
2207 ElementsKind elements_kind = instr->elements_kind(); 2207 ElementsKind elements_kind = instr->elements_kind();
2208 2208
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
2641 LOperand* function = UseRegisterAtStart(instr->function()); 2641 LOperand* function = UseRegisterAtStart(instr->function());
2642 LAllocateBlockContext* result = 2642 LAllocateBlockContext* result =
2643 new(zone()) LAllocateBlockContext(context, function); 2643 new(zone()) LAllocateBlockContext(context, function);
2644 return MarkAsCall(DefineFixed(result, rsi), instr); 2644 return MarkAsCall(DefineFixed(result, rsi), instr);
2645 } 2645 }
2646 2646
2647 2647
2648 } } // namespace v8::internal 2648 } } // namespace v8::internal
2649 2649
2650 #endif // V8_TARGET_ARCH_X64 2650 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698