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

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

Issue 21014004: Add equality type parameter to HCompareObjectAndBranch (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback 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/x64/lithium-x64.h ('k') | 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 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after
1634 right = UseRegisterOrConstantAtStart(instr->right()); 1634 right = UseRegisterOrConstantAtStart(instr->right());
1635 } else { 1635 } else {
1636 left = UseRegisterAtStart(instr->left()); 1636 left = UseRegisterAtStart(instr->left());
1637 right = UseRegisterAtStart(instr->right()); 1637 right = UseRegisterAtStart(instr->right());
1638 } 1638 }
1639 return new(zone()) LCompareNumericAndBranch(left, right); 1639 return new(zone()) LCompareNumericAndBranch(left, right);
1640 } 1640 }
1641 } 1641 }
1642 1642
1643 1643
1644 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch( 1644 LInstruction* LChunkBuilder::DoCompareObjectAndBranch(
1645 HCompareObjectEqAndBranch* instr) { 1645 HCompareObjectAndBranch* instr) {
1646 LOperand* left = UseRegisterAtStart(instr->left()); 1646 LOperand* left = UseRegisterAtStart(instr->left());
1647 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); 1647 LOperand* right = UseRegisterOrConstantAtStart(instr->right());
1648 return new(zone()) LCmpObjectEqAndBranch(left, right); 1648 return new(zone()) LCmpObjectAndBranch(left, right);
1649 } 1649 }
1650 1650
1651 1651
1652 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { 1652 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) {
1653 ASSERT(instr->value()->representation().IsTagged()); 1653 ASSERT(instr->value()->representation().IsTagged());
1654 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value())); 1654 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value()));
1655 } 1655 }
1656 1656
1657 1657
1658 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { 1658 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) {
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
2554 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2554 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2555 LOperand* object = UseRegister(instr->object()); 2555 LOperand* object = UseRegister(instr->object());
2556 LOperand* index = UseTempRegister(instr->index()); 2556 LOperand* index = UseTempRegister(instr->index());
2557 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2557 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2558 } 2558 }
2559 2559
2560 2560
2561 } } // namespace v8::internal 2561 } } // namespace v8::internal
2562 2562
2563 #endif // V8_TARGET_ARCH_X64 2563 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698