| 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 2187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2198 LOperand* obj = UseFixed(instr->object(), a1); | 2198 LOperand* obj = UseFixed(instr->object(), a1); |
| 2199 LOperand* val = UseFixed(instr->value(), a0); | 2199 LOperand* val = UseFixed(instr->value(), a0); |
| 2200 | 2200 |
| 2201 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); | 2201 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); |
| 2202 return MarkAsCall(result, instr); | 2202 return MarkAsCall(result, instr); |
| 2203 } | 2203 } |
| 2204 | 2204 |
| 2205 | 2205 |
| 2206 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { | 2206 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { |
| 2207 LOperand* context = UseFixed(instr->context(), cp); | 2207 LOperand* context = UseFixed(instr->context(), cp); |
| 2208 LOperand* left = FLAG_new_string_add | 2208 LOperand* left = UseFixed(instr->left(), a1); |
| 2209 ? UseFixed(instr->left(), a1) | 2209 LOperand* right = UseFixed(instr->right(), a0); |
| 2210 : UseRegisterAtStart(instr->left()); | |
| 2211 LOperand* right = FLAG_new_string_add | |
| 2212 ? UseFixed(instr->right(), a0) | |
| 2213 : UseRegisterAtStart(instr->right()); | |
| 2214 return MarkAsCall( | 2210 return MarkAsCall( |
| 2215 DefineFixed(new(zone()) LStringAdd(context, left, right), v0), | 2211 DefineFixed(new(zone()) LStringAdd(context, left, right), v0), |
| 2216 instr); | 2212 instr); |
| 2217 } | 2213 } |
| 2218 | 2214 |
| 2219 | 2215 |
| 2220 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { | 2216 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { |
| 2221 LOperand* string = UseTempRegister(instr->string()); | 2217 LOperand* string = UseTempRegister(instr->string()); |
| 2222 LOperand* index = UseTempRegister(instr->index()); | 2218 LOperand* index = UseTempRegister(instr->index()); |
| 2223 LOperand* context = UseAny(instr->context()); | 2219 LOperand* context = UseAny(instr->context()); |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2459 | 2455 |
| 2460 | 2456 |
| 2461 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2457 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2462 LOperand* object = UseRegister(instr->object()); | 2458 LOperand* object = UseRegister(instr->object()); |
| 2463 LOperand* index = UseRegister(instr->index()); | 2459 LOperand* index = UseRegister(instr->index()); |
| 2464 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2460 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2465 } | 2461 } |
| 2466 | 2462 |
| 2467 | 2463 |
| 2468 } } // namespace v8::internal | 2464 } } // namespace v8::internal |
| OLD | NEW |