| 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 2211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2222 | 2222 |
| 2223 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { | 2223 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { |
| 2224 info()->MarkAsDeferredCalling(); | 2224 info()->MarkAsDeferredCalling(); |
| 2225 LOperand* size = UseTempRegister(instr->size()); | 2225 LOperand* size = UseTempRegister(instr->size()); |
| 2226 LOperand* temp = TempRegister(); | 2226 LOperand* temp = TempRegister(); |
| 2227 LAllocate* result = new(zone()) LAllocate(size, temp); | 2227 LAllocate* result = new(zone()) LAllocate(size, temp); |
| 2228 return AssignPointerMap(DefineAsRegister(result)); | 2228 return AssignPointerMap(DefineAsRegister(result)); |
| 2229 } | 2229 } |
| 2230 | 2230 |
| 2231 | 2231 |
| 2232 LInstruction* LChunkBuilder::DoFastLiteral(HFastLiteral* instr) { | |
| 2233 return MarkAsCall(DefineFixed(new(zone()) LFastLiteral, rax), instr); | |
| 2234 } | |
| 2235 | |
| 2236 | |
| 2237 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 2232 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { |
| 2238 return MarkAsCall(DefineFixed(new(zone()) LArrayLiteral, rax), instr); | 2233 return MarkAsCall(DefineFixed(new(zone()) LArrayLiteral, rax), instr); |
| 2239 } | 2234 } |
| 2240 | 2235 |
| 2241 | 2236 |
| 2242 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { | 2237 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { |
| 2243 return MarkAsCall(DefineFixed(new(zone()) LObjectLiteral, rax), instr); | 2238 return MarkAsCall(DefineFixed(new(zone()) LObjectLiteral, rax), instr); |
| 2244 } | 2239 } |
| 2245 | 2240 |
| 2246 | 2241 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2457 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2452 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2458 LOperand* object = UseRegister(instr->object()); | 2453 LOperand* object = UseRegister(instr->object()); |
| 2459 LOperand* index = UseTempRegister(instr->index()); | 2454 LOperand* index = UseTempRegister(instr->index()); |
| 2460 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2455 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2461 } | 2456 } |
| 2462 | 2457 |
| 2463 | 2458 |
| 2464 } } // namespace v8::internal | 2459 } } // namespace v8::internal |
| 2465 | 2460 |
| 2466 #endif // V8_TARGET_ARCH_X64 | 2461 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |