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_X87 | 7 #if V8_TARGET_ARCH_X87 |
8 | 8 |
9 #include "lithium-allocator-inl.h" | 9 #include "lithium-allocator-inl.h" |
10 #include "x87/lithium-x87.h" | 10 #include "x87/lithium-x87.h" |
(...skipping 2291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2302 } else { | 2302 } else { |
2303 LOperand* object = UseFixed(instr->object(), eax); | 2303 LOperand* object = UseFixed(instr->object(), eax); |
2304 LOperand* context = UseFixed(instr->context(), esi); | 2304 LOperand* context = UseFixed(instr->context(), esi); |
2305 LTransitionElementsKind* result = | 2305 LTransitionElementsKind* result = |
2306 new(zone()) LTransitionElementsKind(object, context, NULL, NULL); | 2306 new(zone()) LTransitionElementsKind(object, context, NULL, NULL); |
2307 return MarkAsCall(result, instr); | 2307 return MarkAsCall(result, instr); |
2308 } | 2308 } |
2309 } | 2309 } |
2310 | 2310 |
2311 | 2311 |
2312 LInstruction* LChunkBuilder::DoArrayShift(HArrayShift* instr) { | |
2313 LOperand* object = UseFixed(instr->object(), eax); | |
2314 LOperand* context = UseFixed(instr->context(), esi); | |
2315 LArrayShift* result = new(zone()) LArrayShift(context, object); | |
2316 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); | |
2317 } | |
2318 | |
2319 | |
2320 LInstruction* LChunkBuilder::DoTrapAllocationMemento( | 2312 LInstruction* LChunkBuilder::DoTrapAllocationMemento( |
2321 HTrapAllocationMemento* instr) { | 2313 HTrapAllocationMemento* instr) { |
2322 LOperand* object = UseRegister(instr->object()); | 2314 LOperand* object = UseRegister(instr->object()); |
2323 LOperand* temp = TempRegister(); | 2315 LOperand* temp = TempRegister(); |
2324 LTrapAllocationMemento* result = | 2316 LTrapAllocationMemento* result = |
2325 new(zone()) LTrapAllocationMemento(object, temp); | 2317 new(zone()) LTrapAllocationMemento(object, temp); |
2326 return AssignEnvironment(result); | 2318 return AssignEnvironment(result); |
2327 } | 2319 } |
2328 | 2320 |
2329 | 2321 |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2650 LOperand* index = UseTempRegister(instr->index()); | 2642 LOperand* index = UseTempRegister(instr->index()); |
2651 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2643 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2652 LInstruction* result = DefineSameAsFirst(load); | 2644 LInstruction* result = DefineSameAsFirst(load); |
2653 return AssignPointerMap(result); | 2645 return AssignPointerMap(result); |
2654 } | 2646 } |
2655 | 2647 |
2656 | 2648 |
2657 } } // namespace v8::internal | 2649 } } // namespace v8::internal |
2658 | 2650 |
2659 #endif // V8_TARGET_ARCH_X87 | 2651 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |