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 2248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2259 HTransitionElementsKind* instr) { | 2259 HTransitionElementsKind* instr) { |
2260 LOperand* object = UseRegister(instr->object()); | 2260 LOperand* object = UseRegister(instr->object()); |
2261 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { | 2261 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { |
2262 LOperand* object = UseRegister(instr->object()); | 2262 LOperand* object = UseRegister(instr->object()); |
2263 LOperand* new_map_reg = TempRegister(); | 2263 LOperand* new_map_reg = TempRegister(); |
2264 LOperand* temp_reg = TempRegister(); | 2264 LOperand* temp_reg = TempRegister(); |
2265 LTransitionElementsKind* result = new(zone()) LTransitionElementsKind( | 2265 LTransitionElementsKind* result = new(zone()) LTransitionElementsKind( |
2266 object, NULL, new_map_reg, temp_reg); | 2266 object, NULL, new_map_reg, temp_reg); |
2267 return result; | 2267 return result; |
2268 } else { | 2268 } else { |
2269 LOperand* context = UseAny(instr->context()); | 2269 LOperand* context = UseFixed(instr->context(), rsi); |
2270 LTransitionElementsKind* result = | 2270 LTransitionElementsKind* result = |
2271 new(zone()) LTransitionElementsKind(object, context, NULL, NULL); | 2271 new(zone()) LTransitionElementsKind(object, context, NULL, NULL); |
2272 return AssignPointerMap(result); | 2272 return AssignPointerMap(result); |
2273 } | 2273 } |
2274 } | 2274 } |
2275 | 2275 |
2276 | 2276 |
2277 LInstruction* LChunkBuilder::DoTrapAllocationMemento( | 2277 LInstruction* LChunkBuilder::DoTrapAllocationMemento( |
2278 HTrapAllocationMemento* instr) { | 2278 HTrapAllocationMemento* instr) { |
2279 LOperand* object = UseRegister(instr->object()); | 2279 LOperand* object = UseRegister(instr->object()); |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2623 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2623 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2624 LOperand* object = UseRegister(instr->object()); | 2624 LOperand* object = UseRegister(instr->object()); |
2625 LOperand* index = UseTempRegister(instr->index()); | 2625 LOperand* index = UseTempRegister(instr->index()); |
2626 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2626 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2627 } | 2627 } |
2628 | 2628 |
2629 | 2629 |
2630 } } // namespace v8::internal | 2630 } } // namespace v8::internal |
2631 | 2631 |
2632 #endif // V8_TARGET_ARCH_X64 | 2632 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |