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

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

Issue 22152003: Never hchange nan-hole to hole or hole to nan-hole. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also change in header Created 7 years, 4 months 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/lithium.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 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1740 1740
1741 1741
1742 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch( 1742 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch(
1743 HCompareObjectEqAndBranch* instr) { 1743 HCompareObjectEqAndBranch* instr) {
1744 LOperand* left = UseRegisterAtStart(instr->left()); 1744 LOperand* left = UseRegisterAtStart(instr->left());
1745 LOperand* right = UseOrConstantAtStart(instr->right()); 1745 LOperand* right = UseOrConstantAtStart(instr->right());
1746 return new(zone()) LCmpObjectEqAndBranch(left, right); 1746 return new(zone()) LCmpObjectEqAndBranch(left, right);
1747 } 1747 }
1748 1748
1749 1749
1750 LInstruction* LChunkBuilder::DoCompareHoleAndBranch(
1751 HCompareHoleAndBranch* instr) {
1752 LOperand* object = UseRegisterAtStart(instr->object());
1753 return new(zone()) LCmpHoleAndBranch(object);
1754 }
1755
1756
1750 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { 1757 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) {
1751 ASSERT(instr->value()->representation().IsSmiOrTagged()); 1758 ASSERT(instr->value()->representation().IsSmiOrTagged());
1752 LOperand* temp = TempRegister(); 1759 LOperand* temp = TempRegister();
1753 return new(zone()) LIsObjectAndBranch(UseRegister(instr->value()), temp); 1760 return new(zone()) LIsObjectAndBranch(UseRegister(instr->value()), temp);
1754 } 1761 }
1755 1762
1756 1763
1757 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { 1764 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) {
1758 ASSERT(instr->value()->representation().IsTagged()); 1765 ASSERT(instr->value()->representation().IsTagged());
1759 LOperand* temp = TempRegister(); 1766 LOperand* temp = TempRegister();
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
2749 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2756 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2750 LOperand* object = UseRegister(instr->object()); 2757 LOperand* object = UseRegister(instr->object());
2751 LOperand* index = UseTempRegister(instr->index()); 2758 LOperand* index = UseTempRegister(instr->index());
2752 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2759 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2753 } 2760 }
2754 2761
2755 2762
2756 } } // namespace v8::internal 2763 } } // namespace v8::internal
2757 2764
2758 #endif // V8_TARGET_ARCH_IA32 2765 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/lithium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698