OLD | NEW |
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 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2194 instr->elements()->representation().IsExternal())); | 2194 instr->elements()->representation().IsExternal())); |
2195 LOperand* val = UseRegister(instr->value()); | 2195 LOperand* val = UseRegister(instr->value()); |
2196 LOperand* key = UseRegisterOrConstantAtStart(instr->key()); | 2196 LOperand* key = UseRegisterOrConstantAtStart(instr->key()); |
2197 LOperand* backing_store = UseRegister(instr->elements()); | 2197 LOperand* backing_store = UseRegister(instr->elements()); |
2198 return new(zone()) LStoreKeyed(backing_store, key, val); | 2198 return new(zone()) LStoreKeyed(backing_store, key, val); |
2199 } | 2199 } |
2200 | 2200 |
2201 | 2201 |
2202 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { | 2202 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { |
2203 LOperand* context = UseFixed(instr->context(), cp); | 2203 LOperand* context = UseFixed(instr->context(), cp); |
2204 LOperand* obj = UseFixed(instr->object(), a2); | 2204 LOperand* obj = UseFixed(instr->object(), KeyedStoreIC::ReceiverRegister()); |
2205 LOperand* key = UseFixed(instr->key(), a1); | 2205 LOperand* key = UseFixed(instr->key(), KeyedStoreIC::NameRegister()); |
2206 LOperand* val = UseFixed(instr->value(), a0); | 2206 LOperand* val = UseFixed(instr->value(), KeyedStoreIC::ValueRegister()); |
2207 | 2207 |
2208 ASSERT(instr->object()->representation().IsTagged()); | 2208 ASSERT(instr->object()->representation().IsTagged()); |
2209 ASSERT(instr->key()->representation().IsTagged()); | 2209 ASSERT(instr->key()->representation().IsTagged()); |
2210 ASSERT(instr->value()->representation().IsTagged()); | 2210 ASSERT(instr->value()->representation().IsTagged()); |
2211 | 2211 |
2212 return MarkAsCall( | 2212 return MarkAsCall( |
2213 new(zone()) LStoreKeyedGeneric(context, obj, key, val), instr); | 2213 new(zone()) LStoreKeyedGeneric(context, obj, key, val), instr); |
2214 } | 2214 } |
2215 | 2215 |
2216 | 2216 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2270 | 2270 |
2271 // We need a temporary register for write barrier of the map field. | 2271 // We need a temporary register for write barrier of the map field. |
2272 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL; | 2272 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL; |
2273 | 2273 |
2274 return new(zone()) LStoreNamedField(obj, val, temp); | 2274 return new(zone()) LStoreNamedField(obj, val, temp); |
2275 } | 2275 } |
2276 | 2276 |
2277 | 2277 |
2278 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 2278 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |
2279 LOperand* context = UseFixed(instr->context(), cp); | 2279 LOperand* context = UseFixed(instr->context(), cp); |
2280 LOperand* obj = UseFixed(instr->object(), a1); | 2280 LOperand* obj = UseFixed(instr->object(), StoreIC::ReceiverRegister()); |
2281 LOperand* val = UseFixed(instr->value(), a0); | 2281 LOperand* val = UseFixed(instr->value(), StoreIC::ValueRegister()); |
2282 | 2282 |
2283 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); | 2283 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); |
2284 return MarkAsCall(result, instr); | 2284 return MarkAsCall(result, instr); |
2285 } | 2285 } |
2286 | 2286 |
2287 | 2287 |
2288 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { | 2288 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { |
2289 LOperand* context = UseFixed(instr->context(), cp); | 2289 LOperand* context = UseFixed(instr->context(), cp); |
2290 LOperand* left = UseFixed(instr->left(), a1); | 2290 LOperand* left = UseFixed(instr->left(), a1); |
2291 LOperand* right = UseFixed(instr->right(), a0); | 2291 LOperand* right = UseFixed(instr->right(), a0); |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2536 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2536 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
2537 HAllocateBlockContext* instr) { | 2537 HAllocateBlockContext* instr) { |
2538 LOperand* context = UseFixed(instr->context(), cp); | 2538 LOperand* context = UseFixed(instr->context(), cp); |
2539 LOperand* function = UseRegisterAtStart(instr->function()); | 2539 LOperand* function = UseRegisterAtStart(instr->function()); |
2540 LAllocateBlockContext* result = | 2540 LAllocateBlockContext* result = |
2541 new(zone()) LAllocateBlockContext(context, function); | 2541 new(zone()) LAllocateBlockContext(context, function); |
2542 return MarkAsCall(DefineFixed(result, cp), instr); | 2542 return MarkAsCall(DefineFixed(result, cp), instr); |
2543 } | 2543 } |
2544 | 2544 |
2545 } } // namespace v8::internal | 2545 } } // namespace v8::internal |
OLD | NEW |