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 6691054: [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() && 1617 (instr->CanTruncateToInt32() && CpuFeatures::IsSupported(SSE3))
1618 Isolate::Current()->cpu_features()->IsSupported(SSE3))
1619 ? NULL 1618 ? NULL
1620 : FixedTemp(xmm1); 1619 : FixedTemp(xmm1);
1621 LTaggedToI* res = new LTaggedToI(value, xmm_temp); 1620 LTaggedToI* res = new LTaggedToI(value, xmm_temp);
1622 return AssignEnvironment(DefineSameAsFirst(res)); 1621 return AssignEnvironment(DefineSameAsFirst(res));
1623 } else { 1622 } else {
1624 return DefineSameAsFirst(new LSmiUntag(value, needs_check)); 1623 return DefineSameAsFirst(new LSmiUntag(value, needs_check));
1625 } 1624 }
1626 } 1625 }
1627 } else if (from.IsDouble()) { 1626 } else if (from.IsDouble()) {
1628 if (to.IsTagged()) { 1627 if (to.IsTagged()) {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 return DefineAsRegister(new LConstantD(temp)); 1710 return DefineAsRegister(new LConstantD(temp));
1712 } else if (r.IsTagged()) { 1711 } else if (r.IsTagged()) {
1713 return DefineAsRegister(new LConstantT); 1712 return DefineAsRegister(new LConstantT);
1714 } else { 1713 } else {
1715 UNREACHABLE(); 1714 UNREACHABLE();
1716 return NULL; 1715 return NULL;
1717 } 1716 }
1718 } 1717 }
1719 1718
1720 1719
1721 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { 1720 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) {
1722 LLoadGlobal* result = new LLoadGlobal; 1721 LLoadGlobalCell* result = new LLoadGlobalCell;
1723 return instr->check_hole_value() 1722 return instr->check_hole_value()
1724 ? AssignEnvironment(DefineAsRegister(result)) 1723 ? AssignEnvironment(DefineAsRegister(result))
1725 : DefineAsRegister(result); 1724 : DefineAsRegister(result);
1726 } 1725 }
1727 1726
1728 1727
1729 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1728 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
1730 LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()), 1729 LOperand* global_object = UseFixed(instr->global_object(), rax);
1731 TempRegister()); 1730 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(global_object);
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());
1732 return instr->check_hole_value() ? AssignEnvironment(result) : result; 1738 return instr->check_hole_value() ? AssignEnvironment(result) : result;
1733 } 1739 }
1734 1740
1735 1741
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
1736 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1750 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1737 LOperand* context = UseRegisterAtStart(instr->value()); 1751 LOperand* context = UseRegisterAtStart(instr->value());
1738 return DefineAsRegister(new LLoadContextSlot(context)); 1752 return DefineAsRegister(new LLoadContextSlot(context));
1739 } 1753 }
1740 1754
1741 1755
1742 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { 1756 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
1743 LOperand* context; 1757 LOperand* context;
1744 LOperand* value; 1758 LOperand* value;
1745 LOperand* temp; 1759 LOperand* temp;
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
2095 2109
2096 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2110 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2097 HEnvironment* outer = current_block_->last_environment()->outer(); 2111 HEnvironment* outer = current_block_->last_environment()->outer();
2098 current_block_->UpdateEnvironment(outer); 2112 current_block_->UpdateEnvironment(outer);
2099 return NULL; 2113 return NULL;
2100 } 2114 }
2101 2115
2102 } } // namespace v8::internal 2116 } } // namespace v8::internal
2103 2117
2104 #endif // V8_TARGET_ARCH_X64 2118 #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