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

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

Issue 24195009: Turn HCompareHoleAndBranch into a HUnaryControlInstruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | « no previous file | src/hydrogen-instructions.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 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after
1749 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch( 1749 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch(
1750 HCompareObjectEqAndBranch* instr) { 1750 HCompareObjectEqAndBranch* instr) {
1751 LOperand* left = UseRegisterAtStart(instr->left()); 1751 LOperand* left = UseRegisterAtStart(instr->left());
1752 LOperand* right = UseRegisterAtStart(instr->right()); 1752 LOperand* right = UseRegisterAtStart(instr->right());
1753 return new(zone()) LCmpObjectEqAndBranch(left, right); 1753 return new(zone()) LCmpObjectEqAndBranch(left, right);
1754 } 1754 }
1755 1755
1756 1756
1757 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( 1757 LInstruction* LChunkBuilder::DoCompareHoleAndBranch(
1758 HCompareHoleAndBranch* instr) { 1758 HCompareHoleAndBranch* instr) {
1759 LOperand* object = UseRegisterAtStart(instr->object()); 1759 LOperand* value = UseRegisterAtStart(instr->value());
1760 return new(zone()) LCmpHoleAndBranch(object); 1760 return new(zone()) LCmpHoleAndBranch(value);
1761 } 1761 }
1762 1762
1763 1763
1764 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { 1764 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) {
1765 ASSERT(instr->value()->representation().IsTagged()); 1765 ASSERT(instr->value()->representation().IsTagged());
1766 LOperand* value = UseRegisterAtStart(instr->value()); 1766 LOperand* value = UseRegisterAtStart(instr->value());
1767 LOperand* temp = TempRegister(); 1767 LOperand* temp = TempRegister();
1768 return new(zone()) LIsObjectAndBranch(value, temp); 1768 return new(zone()) LIsObjectAndBranch(value, temp);
1769 } 1769 }
1770 1770
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
2596 2596
2597 2597
2598 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2598 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2599 LOperand* object = UseRegister(instr->object()); 2599 LOperand* object = UseRegister(instr->object());
2600 LOperand* index = UseRegister(instr->index()); 2600 LOperand* index = UseRegister(instr->index());
2601 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2601 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2602 } 2602 }
2603 2603
2604 2604
2605 } } // namespace v8::internal 2605 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698