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

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

Issue 23876029: MIPS: Turn HCompareHoleAndBranch into a HUnaryControlInstruction. (Closed) Base URL: https://github.com/v8/v8.git@gbl
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
« no previous file with comments | « no previous file | 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 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after
1650 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch( 1650 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch(
1651 HCompareObjectEqAndBranch* instr) { 1651 HCompareObjectEqAndBranch* instr) {
1652 LOperand* left = UseRegisterAtStart(instr->left()); 1652 LOperand* left = UseRegisterAtStart(instr->left());
1653 LOperand* right = UseRegisterAtStart(instr->right()); 1653 LOperand* right = UseRegisterAtStart(instr->right());
1654 return new(zone()) LCmpObjectEqAndBranch(left, right); 1654 return new(zone()) LCmpObjectEqAndBranch(left, right);
1655 } 1655 }
1656 1656
1657 1657
1658 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( 1658 LInstruction* LChunkBuilder::DoCompareHoleAndBranch(
1659 HCompareHoleAndBranch* instr) { 1659 HCompareHoleAndBranch* instr) {
1660 LOperand* object = UseRegisterAtStart(instr->object()); 1660 LOperand* value = UseRegisterAtStart(instr->value());
1661 return new(zone()) LCmpHoleAndBranch(object); 1661 return new(zone()) LCmpHoleAndBranch(value);
1662 } 1662 }
1663 1663
1664 1664
1665 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { 1665 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) {
1666 ASSERT(instr->value()->representation().IsTagged()); 1666 ASSERT(instr->value()->representation().IsTagged());
1667 LOperand* temp = TempRegister(); 1667 LOperand* temp = TempRegister();
1668 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value()), 1668 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value()),
1669 temp); 1669 temp);
1670 } 1670 }
1671 1671
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
2499 2499
2500 2500
2501 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2501 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2502 LOperand* object = UseRegister(instr->object()); 2502 LOperand* object = UseRegister(instr->object());
2503 LOperand* index = UseRegister(instr->index()); 2503 LOperand* index = UseRegister(instr->index());
2504 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2504 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2505 } 2505 }
2506 2506
2507 2507
2508 } } // namespace v8::internal 2508 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698