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

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

Issue 6794050: Revert "[Arguments] Merge (7442,7496] from bleeding_edge." (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Created 9 years, 8 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') | src/x64/macro-assembler-x64.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 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 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after
1607 if (to.IsDouble()) { 1607 if (to.IsDouble()) {
1608 LOperand* value = UseRegister(instr->value()); 1608 LOperand* value = UseRegister(instr->value());
1609 LNumberUntagD* res = new LNumberUntagD(value); 1609 LNumberUntagD* res = new LNumberUntagD(value);
1610 return AssignEnvironment(DefineAsRegister(res)); 1610 return AssignEnvironment(DefineAsRegister(res));
1611 } else { 1611 } else {
1612 ASSERT(to.IsInteger32()); 1612 ASSERT(to.IsInteger32());
1613 LOperand* value = UseRegister(instr->value()); 1613 LOperand* value = UseRegister(instr->value());
1614 bool needs_check = !instr->value()->type().IsSmi(); 1614 bool needs_check = !instr->value()->type().IsSmi();
1615 if (needs_check) { 1615 if (needs_check) {
1616 LOperand* xmm_temp = 1616 LOperand* xmm_temp =
1617 (instr->CanTruncateToInt32() && CpuFeatures::IsSupported(SSE3)) 1617 (instr->CanTruncateToInt32() &&
1618 Isolate::Current()->cpu_features()->IsSupported(SSE3))
1618 ? NULL 1619 ? NULL
1619 : FixedTemp(xmm1); 1620 : FixedTemp(xmm1);
1620 LTaggedToI* res = new LTaggedToI(value, xmm_temp); 1621 LTaggedToI* res = new LTaggedToI(value, xmm_temp);
1621 return AssignEnvironment(DefineSameAsFirst(res)); 1622 return AssignEnvironment(DefineSameAsFirst(res));
1622 } else { 1623 } else {
1623 return DefineSameAsFirst(new LSmiUntag(value, needs_check)); 1624 return DefineSameAsFirst(new LSmiUntag(value, needs_check));
1624 } 1625 }
1625 } 1626 }
1626 } else if (from.IsDouble()) { 1627 } else if (from.IsDouble()) {
1627 if (to.IsTagged()) { 1628 if (to.IsTagged()) {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
1710 return DefineAsRegister(new LConstantD(temp)); 1711 return DefineAsRegister(new LConstantD(temp));
1711 } else if (r.IsTagged()) { 1712 } else if (r.IsTagged()) {
1712 return DefineAsRegister(new LConstantT); 1713 return DefineAsRegister(new LConstantT);
1713 } else { 1714 } else {
1714 UNREACHABLE(); 1715 UNREACHABLE();
1715 return NULL; 1716 return NULL;
1716 } 1717 }
1717 } 1718 }
1718 1719
1719 1720
1720 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { 1721 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) {
1721 LLoadGlobalCell* result = new LLoadGlobalCell; 1722 LLoadGlobal* result = new LLoadGlobal;
1722 return instr->check_hole_value() 1723 return instr->check_hole_value()
1723 ? AssignEnvironment(DefineAsRegister(result)) 1724 ? AssignEnvironment(DefineAsRegister(result))
1724 : DefineAsRegister(result); 1725 : DefineAsRegister(result);
1725 } 1726 }
1726 1727
1727 1728
1728 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { 1729 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
1729 LOperand* global_object = UseFixed(instr->global_object(), rax); 1730 LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()),
1730 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(global_object); 1731 TempRegister());
1731 return MarkAsCall(DefineFixed(result, rax), instr);
1732 }
1733
1734
1735 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) {
1736 LStoreGlobalCell* result =
1737 new LStoreGlobalCell(UseRegister(instr->value()), TempRegister());
1738 return instr->check_hole_value() ? AssignEnvironment(result) : result; 1732 return instr->check_hole_value() ? AssignEnvironment(result) : result;
1739 } 1733 }
1740 1734
1741 1735
1742 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) {
1743 LOperand* global_object = UseFixed(instr->global_object(), rdx);
1744 LOperand* value = UseFixed(instr->value(), rax);
1745 LStoreGlobalGeneric* result = new LStoreGlobalGeneric(global_object, value);
1746 return MarkAsCall(result, instr);
1747 }
1748
1749
1750 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1736 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1751 LOperand* context = UseRegisterAtStart(instr->value()); 1737 LOperand* context = UseRegisterAtStart(instr->value());
1752 return DefineAsRegister(new LLoadContextSlot(context)); 1738 return DefineAsRegister(new LLoadContextSlot(context));
1753 } 1739 }
1754 1740
1755 1741
1756 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { 1742 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
1757 LOperand* context; 1743 LOperand* context;
1758 LOperand* value; 1744 LOperand* value;
1759 LOperand* temp; 1745 LOperand* temp;
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
2109 2095
2110 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2096 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2111 HEnvironment* outer = current_block_->last_environment()->outer(); 2097 HEnvironment* outer = current_block_->last_environment()->outer();
2112 current_block_->UpdateEnvironment(outer); 2098 current_block_->UpdateEnvironment(outer);
2113 return NULL; 2099 return NULL;
2114 } 2100 }
2115 2101
2116 } } // namespace v8::internal 2102 } } // namespace v8::internal
2117 2103
2118 #endif // V8_TARGET_ARCH_X64 2104 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698