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