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 #include "lithium-allocator-inl.h" | 7 #include "lithium-allocator-inl.h" |
8 #include "arm/lithium-arm.h" | 8 #include "arm/lithium-arm.h" |
9 #include "arm/lithium-codegen-arm.h" | 9 #include "arm/lithium-codegen-arm.h" |
10 #include "hydrogen-osr.h" | 10 #include "hydrogen-osr.h" |
(...skipping 2240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2251 } else { | 2251 } else { |
2252 LOperand* object = UseFixed(instr->object(), r0); | 2252 LOperand* object = UseFixed(instr->object(), r0); |
2253 LOperand* context = UseFixed(instr->context(), cp); | 2253 LOperand* context = UseFixed(instr->context(), cp); |
2254 LTransitionElementsKind* result = | 2254 LTransitionElementsKind* result = |
2255 new(zone()) LTransitionElementsKind(object, context, NULL); | 2255 new(zone()) LTransitionElementsKind(object, context, NULL); |
2256 return MarkAsCall(result, instr); | 2256 return MarkAsCall(result, instr); |
2257 } | 2257 } |
2258 } | 2258 } |
2259 | 2259 |
2260 | 2260 |
| 2261 LInstruction* LChunkBuilder::DoArrayShift(HArrayShift* instr) { |
| 2262 LOperand* object = UseFixed(instr->object(), r0); |
| 2263 LOperand* context = UseFixed(instr->context(), cp); |
| 2264 LArrayShift* result = new(zone()) LArrayShift(context, object); |
| 2265 return MarkAsCall(DefineFixed(result, r0), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
| 2266 } |
| 2267 |
| 2268 |
2261 LInstruction* LChunkBuilder::DoTrapAllocationMemento( | 2269 LInstruction* LChunkBuilder::DoTrapAllocationMemento( |
2262 HTrapAllocationMemento* instr) { | 2270 HTrapAllocationMemento* instr) { |
2263 LOperand* object = UseRegister(instr->object()); | 2271 LOperand* object = UseRegister(instr->object()); |
2264 LOperand* temp = TempRegister(); | 2272 LOperand* temp = TempRegister(); |
2265 LTrapAllocationMemento* result = | 2273 LTrapAllocationMemento* result = |
2266 new(zone()) LTrapAllocationMemento(object, temp); | 2274 new(zone()) LTrapAllocationMemento(object, temp); |
2267 return AssignEnvironment(result); | 2275 return AssignEnvironment(result); |
2268 } | 2276 } |
2269 | 2277 |
2270 | 2278 |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2556 | 2564 |
2557 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2565 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2558 LOperand* object = UseRegister(instr->object()); | 2566 LOperand* object = UseRegister(instr->object()); |
2559 LOperand* index = UseTempRegister(instr->index()); | 2567 LOperand* index = UseTempRegister(instr->index()); |
2560 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2568 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2561 LInstruction* result = DefineSameAsFirst(load); | 2569 LInstruction* result = DefineSameAsFirst(load); |
2562 return AssignPointerMap(result); | 2570 return AssignPointerMap(result); |
2563 } | 2571 } |
2564 | 2572 |
2565 } } // namespace v8::internal | 2573 } } // namespace v8::internal |
OLD | NEW |