Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: src/mips/lithium-mips.cc

Issue 61203006: MIPS: Introduce %_IsMinusZero. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips/lithium-mips.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after
1696 } 1696 }
1697 1697
1698 1698
1699 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( 1699 LInstruction* LChunkBuilder::DoCompareHoleAndBranch(
1700 HCompareHoleAndBranch* instr) { 1700 HCompareHoleAndBranch* instr) {
1701 LOperand* value = UseRegisterAtStart(instr->value()); 1701 LOperand* value = UseRegisterAtStart(instr->value());
1702 return new(zone()) LCmpHoleAndBranch(value); 1702 return new(zone()) LCmpHoleAndBranch(value);
1703 } 1703 }
1704 1704
1705 1705
1706 LInstruction* LChunkBuilder::DoCompareMinusZeroAndBranch(
1707 HCompareMinusZeroAndBranch* instr) {
1708 LInstruction* goto_instr = CheckElideControlInstruction(instr);
1709 if (goto_instr != NULL) return goto_instr;
1710 LOperand* value = UseRegister(instr->value());
1711 LOperand* scratch = TempRegister();
1712 return new(zone()) LCompareMinusZeroAndBranch(value, scratch);
1713 }
1714
1715
1706 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { 1716 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) {
1707 ASSERT(instr->value()->representation().IsTagged()); 1717 ASSERT(instr->value()->representation().IsTagged());
1708 LOperand* temp = TempRegister(); 1718 LOperand* temp = TempRegister();
1709 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value()), 1719 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value()),
1710 temp); 1720 temp);
1711 } 1721 }
1712 1722
1713 1723
1714 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { 1724 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) {
1715 ASSERT(instr->value()->representation().IsTagged()); 1725 ASSERT(instr->value()->representation().IsTagged());
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
2594 2604
2595 2605
2596 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2606 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2597 LOperand* object = UseRegister(instr->object()); 2607 LOperand* object = UseRegister(instr->object());
2598 LOperand* index = UseRegister(instr->index()); 2608 LOperand* index = UseRegister(instr->index());
2599 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2609 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2600 } 2610 }
2601 2611
2602 2612
2603 } } // namespace v8::internal 2613 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698