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

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

Issue 21014004: Add equality type parameter to HCompareObjectAndBranch (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
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 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 ASSERT(r.IsDouble()); 1723 ASSERT(r.IsDouble());
1724 ASSERT(instr->left()->representation().IsDouble()); 1724 ASSERT(instr->left()->representation().IsDouble());
1725 ASSERT(instr->right()->representation().IsDouble()); 1725 ASSERT(instr->right()->representation().IsDouble());
1726 LOperand* left = UseRegisterAtStart(instr->left()); 1726 LOperand* left = UseRegisterAtStart(instr->left());
1727 LOperand* right = UseRegisterAtStart(instr->right()); 1727 LOperand* right = UseRegisterAtStart(instr->right());
1728 return new(zone()) LCompareNumericAndBranch(left, right); 1728 return new(zone()) LCompareNumericAndBranch(left, right);
1729 } 1729 }
1730 } 1730 }
1731 1731
1732 1732
1733 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch( 1733 LInstruction* LChunkBuilder::DoCompareObjectAndBranch(
1734 HCompareObjectEqAndBranch* instr) { 1734 HCompareObjectAndBranch* instr) {
1735 LOperand* left = UseRegisterAtStart(instr->left()); 1735 LOperand* left = UseRegisterAtStart(instr->left());
1736 LOperand* right = UseRegisterAtStart(instr->right()); 1736 LOperand* right = UseRegisterAtStart(instr->right());
1737 return new(zone()) LCmpObjectEqAndBranch(left, right); 1737 return new(zone()) LCmpObjectAndBranch(left, right);
1738 } 1738 }
1739 1739
1740 1740
1741 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { 1741 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) {
1742 ASSERT(instr->value()->representation().IsTagged()); 1742 ASSERT(instr->value()->representation().IsTagged());
1743 LOperand* value = UseRegisterAtStart(instr->value()); 1743 LOperand* value = UseRegisterAtStart(instr->value());
1744 LOperand* temp = TempRegister(); 1744 LOperand* temp = TempRegister();
1745 return new(zone()) LIsObjectAndBranch(value, temp); 1745 return new(zone()) LIsObjectAndBranch(value, temp);
1746 } 1746 }
1747 1747
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
2637 2637
2638 2638
2639 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2639 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2640 LOperand* object = UseRegister(instr->object()); 2640 LOperand* object = UseRegister(instr->object());
2641 LOperand* index = UseRegister(instr->index()); 2641 LOperand* index = UseRegister(instr->index());
2642 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2642 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2643 } 2643 }
2644 2644
2645 2645
2646 } } // namespace v8::internal 2646 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698