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

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

Issue 63423004: Introduce %_IsMinusZero. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: extended test case 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/runtime.h » ('j') | 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 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after
1761 } 1761 }
1762 1762
1763 1763
1764 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( 1764 LInstruction* LChunkBuilder::DoCompareHoleAndBranch(
1765 HCompareHoleAndBranch* instr) { 1765 HCompareHoleAndBranch* instr) {
1766 LOperand* value = UseRegisterAtStart(instr->value()); 1766 LOperand* value = UseRegisterAtStart(instr->value());
1767 return new(zone()) LCmpHoleAndBranch(value); 1767 return new(zone()) LCmpHoleAndBranch(value);
1768 } 1768 }
1769 1769
1770 1770
1771 LInstruction* LChunkBuilder::DoCompareMinusZeroAndBranch(
1772 HCompareMinusZeroAndBranch* instr) {
1773 LInstruction* goto_instr = CheckElideControlInstruction(instr);
1774 if (goto_instr != NULL) return goto_instr;
1775 LOperand* value = UseRegister(instr->value());
1776 LOperand* scratch = TempRegister();
1777 return new(zone()) LCompareMinusZeroAndBranch(value, scratch);
1778 }
1779
1780
1771 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { 1781 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) {
1772 ASSERT(instr->value()->representation().IsSmiOrTagged()); 1782 ASSERT(instr->value()->representation().IsSmiOrTagged());
1773 LOperand* temp = TempRegister(); 1783 LOperand* temp = TempRegister();
1774 return new(zone()) LIsObjectAndBranch(UseRegister(instr->value()), temp); 1784 return new(zone()) LIsObjectAndBranch(UseRegister(instr->value()), temp);
1775 } 1785 }
1776 1786
1777 1787
1778 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { 1788 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) {
1779 ASSERT(instr->value()->representation().IsTagged()); 1789 ASSERT(instr->value()->representation().IsTagged());
1780 LOperand* temp = TempRegister(); 1790 LOperand* temp = TempRegister();
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
2749 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2759 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2750 LOperand* object = UseRegister(instr->object()); 2760 LOperand* object = UseRegister(instr->object());
2751 LOperand* index = UseTempRegister(instr->index()); 2761 LOperand* index = UseTempRegister(instr->index());
2752 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2762 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2753 } 2763 }
2754 2764
2755 2765
2756 } } // namespace v8::internal 2766 } } // namespace v8::internal
2757 2767
2758 #endif // V8_TARGET_ARCH_IA32 2768 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698