| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 2262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2273 LOperand* obj = UseFixed(instr->object(), r1); | 2273 LOperand* obj = UseFixed(instr->object(), r1); |
| 2274 LOperand* val = UseFixed(instr->value(), r0); | 2274 LOperand* val = UseFixed(instr->value(), r0); |
| 2275 | 2275 |
| 2276 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); | 2276 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); |
| 2277 return MarkAsCall(result, instr); | 2277 return MarkAsCall(result, instr); |
| 2278 } | 2278 } |
| 2279 | 2279 |
| 2280 | 2280 |
| 2281 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { | 2281 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { |
| 2282 LOperand* context = UseFixed(instr->context(), cp); | 2282 LOperand* context = UseFixed(instr->context(), cp); |
| 2283 LOperand* left = FLAG_new_string_add | 2283 LOperand* left = UseFixed(instr->left(), r1); |
| 2284 ? UseFixed(instr->left(), r1) | 2284 LOperand* right = UseFixed(instr->right(), r0); |
| 2285 : UseRegisterAtStart(instr->left()); | |
| 2286 LOperand* right = FLAG_new_string_add | |
| 2287 ? UseFixed(instr->right(), r0) | |
| 2288 : UseRegisterAtStart(instr->right()); | |
| 2289 return MarkAsCall( | 2285 return MarkAsCall( |
| 2290 DefineFixed(new(zone()) LStringAdd(context, left, right), r0), | 2286 DefineFixed(new(zone()) LStringAdd(context, left, right), r0), |
| 2291 instr); | 2287 instr); |
| 2292 } | 2288 } |
| 2293 | 2289 |
| 2294 | 2290 |
| 2295 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { | 2291 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { |
| 2296 LOperand* string = UseTempRegister(instr->string()); | 2292 LOperand* string = UseTempRegister(instr->string()); |
| 2297 LOperand* index = UseTempRegister(instr->index()); | 2293 LOperand* index = UseTempRegister(instr->index()); |
| 2298 LOperand* context = UseAny(instr->context()); | 2294 LOperand* context = UseAny(instr->context()); |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2533 } | 2529 } |
| 2534 | 2530 |
| 2535 | 2531 |
| 2536 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2532 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2537 LOperand* object = UseRegister(instr->object()); | 2533 LOperand* object = UseRegister(instr->object()); |
| 2538 LOperand* index = UseRegister(instr->index()); | 2534 LOperand* index = UseRegister(instr->index()); |
| 2539 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2535 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2540 } | 2536 } |
| 2541 | 2537 |
| 2542 } } // namespace v8::internal | 2538 } } // namespace v8::internal |
| OLD | NEW |