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

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

Issue 367053002: MIPS: KeyedLoadIC should have same register spec as LoadIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/mips/lithium-codegen-mips.cc ('k') | src/mips/stub-cache-mips.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 #include "src/hydrogen-osr.h" 7 #include "src/hydrogen-osr.h"
8 #include "src/lithium-allocator-inl.h" 8 #include "src/lithium-allocator-inl.h"
9 #include "src/mips/lithium-codegen-mips.h" 9 #include "src/mips/lithium-codegen-mips.h"
10 #include "src/mips/lithium-mips.h" 10 #include "src/mips/lithium-mips.h"
(...skipping 2127 matching lines...) Expand 10 before | Expand all | Expand 10 after
2138 // LCodeGen::DoLoadKeyedFixedArray 2138 // LCodeGen::DoLoadKeyedFixedArray
2139 instr->RequiresHoleCheck()) { 2139 instr->RequiresHoleCheck()) {
2140 result = AssignEnvironment(result); 2140 result = AssignEnvironment(result);
2141 } 2141 }
2142 return result; 2142 return result;
2143 } 2143 }
2144 2144
2145 2145
2146 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { 2146 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) {
2147 LOperand* context = UseFixed(instr->context(), cp); 2147 LOperand* context = UseFixed(instr->context(), cp);
2148 LOperand* object = UseFixed(instr->object(), KeyedLoadIC::ReceiverRegister()); 2148 LOperand* object = UseFixed(instr->object(), LoadIC::ReceiverRegister());
2149 LOperand* key = UseFixed(instr->key(), KeyedLoadIC::NameRegister()); 2149 LOperand* key = UseFixed(instr->key(), LoadIC::NameRegister());
2150 2150
2151 LInstruction* result = 2151 LInstruction* result =
2152 DefineFixed(new(zone()) LLoadKeyedGeneric(context, object, key), v0); 2152 DefineFixed(new(zone()) LLoadKeyedGeneric(context, object, key), v0);
2153 return MarkAsCall(result, instr); 2153 return MarkAsCall(result, instr);
2154 } 2154 }
2155 2155
2156 2156
2157 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) { 2157 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) {
2158 if (!instr->is_typed_elements()) { 2158 if (!instr->is_typed_elements()) {
2159 ASSERT(instr->elements()->representation().IsTagged()); 2159 ASSERT(instr->elements()->representation().IsTagged());
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
2535 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2535 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2536 HAllocateBlockContext* instr) { 2536 HAllocateBlockContext* instr) {
2537 LOperand* context = UseFixed(instr->context(), cp); 2537 LOperand* context = UseFixed(instr->context(), cp);
2538 LOperand* function = UseRegisterAtStart(instr->function()); 2538 LOperand* function = UseRegisterAtStart(instr->function());
2539 LAllocateBlockContext* result = 2539 LAllocateBlockContext* result =
2540 new(zone()) LAllocateBlockContext(context, function); 2540 new(zone()) LAllocateBlockContext(context, function);
2541 return MarkAsCall(DefineFixed(result, cp), instr); 2541 return MarkAsCall(DefineFixed(result, cp), instr);
2542 } 2542 }
2543 2543
2544 } } // namespace v8::internal 2544 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698