| 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 2289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2300 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 2300 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |
| 2301 LOperand* object = UseFixed(instr->object(), rdx); | 2301 LOperand* object = UseFixed(instr->object(), rdx); |
| 2302 LOperand* value = UseFixed(instr->value(), rax); | 2302 LOperand* value = UseFixed(instr->value(), rax); |
| 2303 | 2303 |
| 2304 LStoreNamedGeneric* result = new(zone()) LStoreNamedGeneric(object, value); | 2304 LStoreNamedGeneric* result = new(zone()) LStoreNamedGeneric(object, value); |
| 2305 return MarkAsCall(result, instr); | 2305 return MarkAsCall(result, instr); |
| 2306 } | 2306 } |
| 2307 | 2307 |
| 2308 | 2308 |
| 2309 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { | 2309 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { |
| 2310 LOperand* left = UseOrConstantAtStart(instr->left()); | 2310 LOperand* left = FLAG_new_string_add |
| 2311 LOperand* right = UseOrConstantAtStart(instr->right()); | 2311 ? UseFixed(instr->left(), rdx) |
| 2312 : UseOrConstantAtStart(instr->left()); |
| 2313 LOperand* right = FLAG_new_string_add |
| 2314 ? UseFixed(instr->right(), rax) |
| 2315 : UseOrConstantAtStart(instr->right()); |
| 2312 return MarkAsCall(DefineFixed(new(zone()) LStringAdd(left, right), rax), | 2316 return MarkAsCall(DefineFixed(new(zone()) LStringAdd(left, right), rax), |
| 2313 instr); | 2317 instr); |
| 2314 } | 2318 } |
| 2315 | 2319 |
| 2316 | 2320 |
| 2317 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { | 2321 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { |
| 2318 LOperand* string = UseTempRegister(instr->string()); | 2322 LOperand* string = UseTempRegister(instr->string()); |
| 2319 LOperand* index = UseTempRegister(instr->index()); | 2323 LOperand* index = UseTempRegister(instr->index()); |
| 2320 LStringCharCodeAt* result = new(zone()) LStringCharCodeAt(string, index); | 2324 LStringCharCodeAt* result = new(zone()) LStringCharCodeAt(string, index); |
| 2321 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); | 2325 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2549 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2553 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2550 LOperand* object = UseRegister(instr->object()); | 2554 LOperand* object = UseRegister(instr->object()); |
| 2551 LOperand* index = UseTempRegister(instr->index()); | 2555 LOperand* index = UseTempRegister(instr->index()); |
| 2552 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2556 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2553 } | 2557 } |
| 2554 | 2558 |
| 2555 | 2559 |
| 2556 } } // namespace v8::internal | 2560 } } // namespace v8::internal |
| 2557 | 2561 |
| 2558 #endif // V8_TARGET_ARCH_X64 | 2562 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |