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

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

Issue 63423004: Introduce %_IsMinusZero. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: extended test case Created 7 years, 1 month 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') | test/mjsunit/compiler/minus-zero.js » ('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 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1665 } 1665 }
1666 1666
1667 1667
1668 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( 1668 LInstruction* LChunkBuilder::DoCompareHoleAndBranch(
1669 HCompareHoleAndBranch* instr) { 1669 HCompareHoleAndBranch* instr) {
1670 LOperand* value = UseRegisterAtStart(instr->value()); 1670 LOperand* value = UseRegisterAtStart(instr->value());
1671 return new(zone()) LCmpHoleAndBranch(value); 1671 return new(zone()) LCmpHoleAndBranch(value);
1672 } 1672 }
1673 1673
1674 1674
1675 LInstruction* LChunkBuilder::DoCompareMinusZeroAndBranch(
1676 HCompareMinusZeroAndBranch* instr) {
1677 LInstruction* goto_instr = CheckElideControlInstruction(instr);
1678 if (goto_instr != NULL) return goto_instr;
1679 LOperand* value = UseRegister(instr->value());
1680 return new(zone()) LCompareMinusZeroAndBranch(value);
1681 }
1682
1683
1675 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { 1684 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) {
1676 ASSERT(instr->value()->representation().IsTagged()); 1685 ASSERT(instr->value()->representation().IsTagged());
1677 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value())); 1686 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value()));
1678 } 1687 }
1679 1688
1680 1689
1681 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { 1690 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) {
1682 ASSERT(instr->value()->representation().IsTagged()); 1691 ASSERT(instr->value()->representation().IsTagged());
1683 LOperand* value = UseRegisterAtStart(instr->value()); 1692 LOperand* value = UseRegisterAtStart(instr->value());
1684 LOperand* temp = TempRegister(); 1693 LOperand* temp = TempRegister();
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
2598 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2607 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2599 LOperand* object = UseRegister(instr->object()); 2608 LOperand* object = UseRegister(instr->object());
2600 LOperand* index = UseTempRegister(instr->index()); 2609 LOperand* index = UseTempRegister(instr->index());
2601 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2610 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2602 } 2611 }
2603 2612
2604 2613
2605 } } // namespace v8::internal 2614 } } // namespace v8::internal
2606 2615
2607 #endif // V8_TARGET_ARCH_X64 2616 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | test/mjsunit/compiler/minus-zero.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698