| 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 2559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2570 | 2570 |
| 2571 | 2571 |
| 2572 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { | 2572 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { |
| 2573 LOperand* context = UseFixed(instr->context(), cp); | 2573 LOperand* context = UseFixed(instr->context(), cp); |
| 2574 LTypeof* result = new(zone()) LTypeof(context, UseFixed(instr->value(), r0)); | 2574 LTypeof* result = new(zone()) LTypeof(context, UseFixed(instr->value(), r0)); |
| 2575 return MarkAsCall(DefineFixed(result, r0), instr); | 2575 return MarkAsCall(DefineFixed(result, r0), instr); |
| 2576 } | 2576 } |
| 2577 | 2577 |
| 2578 | 2578 |
| 2579 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { | 2579 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { |
| 2580 LInstruction* goto_instr = CheckElideControlInstruction(instr); |
| 2581 if (goto_instr != NULL) return goto_instr; |
| 2582 |
| 2580 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value())); | 2583 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value())); |
| 2581 } | 2584 } |
| 2582 | 2585 |
| 2583 | 2586 |
| 2584 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch( | 2587 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch( |
| 2585 HIsConstructCallAndBranch* instr) { | 2588 HIsConstructCallAndBranch* instr) { |
| 2586 return new(zone()) LIsConstructCallAndBranch(TempRegister()); | 2589 return new(zone()) LIsConstructCallAndBranch(TempRegister()); |
| 2587 } | 2590 } |
| 2588 | 2591 |
| 2589 | 2592 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2682 | 2685 |
| 2683 | 2686 |
| 2684 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2687 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2685 LOperand* object = UseRegister(instr->object()); | 2688 LOperand* object = UseRegister(instr->object()); |
| 2686 LOperand* index = UseRegister(instr->index()); | 2689 LOperand* index = UseRegister(instr->index()); |
| 2687 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2690 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2688 } | 2691 } |
| 2689 | 2692 |
| 2690 | 2693 |
| 2691 } } // namespace v8::internal | 2694 } } // namespace v8::internal |
| OLD | NEW |