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 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2408 HTransitionElementsKind* instr) { | 2408 HTransitionElementsKind* instr) { |
2409 LOperand* object = UseRegister(instr->object()); | 2409 LOperand* object = UseRegister(instr->object()); |
2410 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { | 2410 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { |
2411 LOperand* object = UseRegister(instr->object()); | 2411 LOperand* object = UseRegister(instr->object()); |
2412 LOperand* new_map_reg = TempRegister(); | 2412 LOperand* new_map_reg = TempRegister(); |
2413 LOperand* temp_reg = TempRegister(); | 2413 LOperand* temp_reg = TempRegister(); |
2414 LTransitionElementsKind* result = | 2414 LTransitionElementsKind* result = |
2415 new(zone()) LTransitionElementsKind(object, NULL, | 2415 new(zone()) LTransitionElementsKind(object, NULL, |
2416 new_map_reg, temp_reg); | 2416 new_map_reg, temp_reg); |
2417 return result; | 2417 return result; |
2418 } else if (FLAG_compiled_transitions) { | 2418 } else { |
2419 LOperand* context = UseRegister(instr->context()); | 2419 LOperand* context = UseRegister(instr->context()); |
2420 LTransitionElementsKind* result = | 2420 LTransitionElementsKind* result = |
2421 new(zone()) LTransitionElementsKind(object, context, NULL, NULL); | 2421 new(zone()) LTransitionElementsKind(object, context, NULL, NULL); |
2422 return AssignPointerMap(result); | 2422 return AssignPointerMap(result); |
2423 } else { | |
2424 LOperand* object = UseFixed(instr->object(), eax); | |
2425 LOperand* fixed_object_reg = FixedTemp(edx); | |
2426 LOperand* new_map_reg = FixedTemp(ebx); | |
2427 LTransitionElementsKind* result = | |
2428 new(zone()) LTransitionElementsKind(object, | |
2429 NULL, | |
2430 new_map_reg, | |
2431 fixed_object_reg); | |
2432 return MarkAsCall(result, instr); | |
2433 } | 2423 } |
2434 } | 2424 } |
2435 | 2425 |
2436 | 2426 |
2437 LInstruction* LChunkBuilder::DoTrapAllocationMemento( | 2427 LInstruction* LChunkBuilder::DoTrapAllocationMemento( |
2438 HTrapAllocationMemento* instr) { | 2428 HTrapAllocationMemento* instr) { |
2439 LOperand* object = UseRegister(instr->object()); | 2429 LOperand* object = UseRegister(instr->object()); |
2440 LOperand* temp = TempRegister(); | 2430 LOperand* temp = TempRegister(); |
2441 LTrapAllocationMemento* result = | 2431 LTrapAllocationMemento* result = |
2442 new(zone()) LTrapAllocationMemento(object, temp); | 2432 new(zone()) LTrapAllocationMemento(object, temp); |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2775 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2765 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2776 LOperand* object = UseRegister(instr->object()); | 2766 LOperand* object = UseRegister(instr->object()); |
2777 LOperand* index = UseTempRegister(instr->index()); | 2767 LOperand* index = UseTempRegister(instr->index()); |
2778 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2768 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2779 } | 2769 } |
2780 | 2770 |
2781 | 2771 |
2782 } } // namespace v8::internal | 2772 } } // namespace v8::internal |
2783 | 2773 |
2784 #endif // V8_TARGET_ARCH_IA32 | 2774 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |