| 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 2395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2406 LOperand* obj = UseFixed(instr->object(), r1); | 2406 LOperand* obj = UseFixed(instr->object(), r1); |
| 2407 LOperand* val = UseFixed(instr->value(), r0); | 2407 LOperand* val = UseFixed(instr->value(), r0); |
| 2408 | 2408 |
| 2409 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); | 2409 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); |
| 2410 return MarkAsCall(result, instr); | 2410 return MarkAsCall(result, instr); |
| 2411 } | 2411 } |
| 2412 | 2412 |
| 2413 | 2413 |
| 2414 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { | 2414 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { |
| 2415 LOperand* context = UseFixed(instr->context(), cp); | 2415 LOperand* context = UseFixed(instr->context(), cp); |
| 2416 LOperand* left = UseRegisterAtStart(instr->left()); | 2416 LOperand* left = FLAG_new_string_add |
| 2417 LOperand* right = UseRegisterAtStart(instr->right()); | 2417 ? UseFixed(instr->left(), r1) |
| 2418 : UseRegisterAtStart(instr->left()); |
| 2419 LOperand* right = FLAG_new_string_add |
| 2420 ? UseFixed(instr->right(), r0) |
| 2421 : UseRegisterAtStart(instr->right()); |
| 2418 return MarkAsCall( | 2422 return MarkAsCall( |
| 2419 DefineFixed(new(zone()) LStringAdd(context, left, right), r0), | 2423 DefineFixed(new(zone()) LStringAdd(context, left, right), r0), |
| 2420 instr); | 2424 instr); |
| 2421 } | 2425 } |
| 2422 | 2426 |
| 2423 | 2427 |
| 2424 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { | 2428 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { |
| 2425 LOperand* string = UseTempRegister(instr->string()); | 2429 LOperand* string = UseTempRegister(instr->string()); |
| 2426 LOperand* index = UseTempRegister(instr->index()); | 2430 LOperand* index = UseTempRegister(instr->index()); |
| 2427 LOperand* context = UseAny(instr->context()); | 2431 LOperand* context = UseAny(instr->context()); |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2668 | 2672 |
| 2669 | 2673 |
| 2670 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2674 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2671 LOperand* object = UseRegister(instr->object()); | 2675 LOperand* object = UseRegister(instr->object()); |
| 2672 LOperand* index = UseRegister(instr->index()); | 2676 LOperand* index = UseRegister(instr->index()); |
| 2673 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2677 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2674 } | 2678 } |
| 2675 | 2679 |
| 2676 | 2680 |
| 2677 } } // namespace v8::internal | 2681 } } // namespace v8::internal |
| OLD | NEW |