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

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

Issue 6673082: Refactor lithium CheckSmi instruction into two separate instructions CheckSmi... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 9 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 return DefineAsRegister(new LInteger32ToDouble(Use(instr->value()))); 1651 return DefineAsRegister(new LInteger32ToDouble(Use(instr->value())));
1652 } 1652 }
1653 } 1653 }
1654 UNREACHABLE(); 1654 UNREACHABLE();
1655 return NULL; 1655 return NULL;
1656 } 1656 }
1657 1657
1658 1658
1659 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { 1659 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) {
1660 LOperand* value = UseRegisterAtStart(instr->value()); 1660 LOperand* value = UseRegisterAtStart(instr->value());
1661 return AssignEnvironment(new LCheckSmi(value, zero)); 1661 return AssignEnvironment(new LCheckNonSmi(value));
1662 } 1662 }
1663 1663
1664 1664
1665 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { 1665 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) {
1666 LOperand* value = UseRegisterAtStart(instr->value()); 1666 LOperand* value = UseRegisterAtStart(instr->value());
1667 LCheckInstanceType* result = new LCheckInstanceType(value); 1667 LCheckInstanceType* result = new LCheckInstanceType(value);
1668 return AssignEnvironment(result); 1668 return AssignEnvironment(result);
1669 } 1669 }
1670 1670
1671 1671
1672 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { 1672 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) {
1673 LOperand* temp = TempRegister(); 1673 LOperand* temp = TempRegister();
1674 LCheckPrototypeMaps* result = new LCheckPrototypeMaps(temp); 1674 LCheckPrototypeMaps* result = new LCheckPrototypeMaps(temp);
1675 return AssignEnvironment(result); 1675 return AssignEnvironment(result);
1676 } 1676 }
1677 1677
1678 1678
1679 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 1679 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1680 LOperand* value = UseRegisterAtStart(instr->value()); 1680 LOperand* value = UseRegisterAtStart(instr->value());
1681 return AssignEnvironment(new LCheckSmi(value, not_zero)); 1681 return AssignEnvironment(new LCheckSmi(value));
1682 } 1682 }
1683 1683
1684 1684
1685 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { 1685 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) {
1686 LOperand* value = UseRegisterAtStart(instr->value()); 1686 LOperand* value = UseRegisterAtStart(instr->value());
1687 return AssignEnvironment(new LCheckFunction(value)); 1687 return AssignEnvironment(new LCheckFunction(value));
1688 } 1688 }
1689 1689
1690 1690
1691 LInstruction* LChunkBuilder::DoCheckMap(HCheckMap* instr) { 1691 LInstruction* LChunkBuilder::DoCheckMap(HCheckMap* instr) {
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
2056 2056
2057 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2057 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2058 HEnvironment* outer = current_block_->last_environment()->outer(); 2058 HEnvironment* outer = current_block_->last_environment()->outer();
2059 current_block_->UpdateEnvironment(outer); 2059 current_block_->UpdateEnvironment(outer);
2060 return NULL; 2060 return NULL;
2061 } 2061 }
2062 2062
2063 } } // namespace v8::internal 2063 } } // namespace v8::internal
2064 2064
2065 #endif // V8_TARGET_ARCH_X64 2065 #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