| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "lithium-allocator-inl.h" | 9 #include "lithium-allocator-inl.h" |
| 10 #include "x64/lithium-x64.h" | 10 #include "x64/lithium-x64.h" |
| (...skipping 2245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2256 } else { | 2256 } else { |
| 2257 LOperand* object = UseFixed(instr->object(), rax); | 2257 LOperand* object = UseFixed(instr->object(), rax); |
| 2258 LOperand* context = UseFixed(instr->context(), rsi); | 2258 LOperand* context = UseFixed(instr->context(), rsi); |
| 2259 LTransitionElementsKind* result = | 2259 LTransitionElementsKind* result = |
| 2260 new(zone()) LTransitionElementsKind(object, context, NULL, NULL); | 2260 new(zone()) LTransitionElementsKind(object, context, NULL, NULL); |
| 2261 return MarkAsCall(result, instr); | 2261 return MarkAsCall(result, instr); |
| 2262 } | 2262 } |
| 2263 } | 2263 } |
| 2264 | 2264 |
| 2265 | 2265 |
| 2266 LInstruction* LChunkBuilder::DoArrayShift(HArrayShift* instr) { | |
| 2267 LOperand* object = UseFixed(instr->object(), rax); | |
| 2268 LOperand* context = UseFixed(instr->context(), rsi); | |
| 2269 LArrayShift* result = new(zone()) LArrayShift(context, object); | |
| 2270 return MarkAsCall(DefineFixed(result, rax), instr, CANNOT_DEOPTIMIZE_EAGERLY); | |
| 2271 } | |
| 2272 | |
| 2273 | |
| 2274 LInstruction* LChunkBuilder::DoTrapAllocationMemento( | 2266 LInstruction* LChunkBuilder::DoTrapAllocationMemento( |
| 2275 HTrapAllocationMemento* instr) { | 2267 HTrapAllocationMemento* instr) { |
| 2276 LOperand* object = UseRegister(instr->object()); | 2268 LOperand* object = UseRegister(instr->object()); |
| 2277 LOperand* temp = TempRegister(); | 2269 LOperand* temp = TempRegister(); |
| 2278 LTrapAllocationMemento* result = | 2270 LTrapAllocationMemento* result = |
| 2279 new(zone()) LTrapAllocationMemento(object, temp); | 2271 new(zone()) LTrapAllocationMemento(object, temp); |
| 2280 return AssignEnvironment(result); | 2272 return AssignEnvironment(result); |
| 2281 } | 2273 } |
| 2282 | 2274 |
| 2283 | 2275 |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2595 LOperand* index = UseTempRegister(instr->index()); | 2587 LOperand* index = UseTempRegister(instr->index()); |
| 2596 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2588 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2597 LInstruction* result = DefineSameAsFirst(load); | 2589 LInstruction* result = DefineSameAsFirst(load); |
| 2598 return AssignPointerMap(result); | 2590 return AssignPointerMap(result); |
| 2599 } | 2591 } |
| 2600 | 2592 |
| 2601 | 2593 |
| 2602 } } // namespace v8::internal | 2594 } } // namespace v8::internal |
| 2603 | 2595 |
| 2604 #endif // V8_TARGET_ARCH_X64 | 2596 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |