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

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

Issue 6627048: X64 Crankshaft: Revert r7071 and fix DoStoreContextSlot in a different way. (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') | src/x64/macro-assembler-x64.cc » ('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 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1721 1721
1722 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1722 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1723 LOperand* context = UseRegisterAtStart(instr->value()); 1723 LOperand* context = UseRegisterAtStart(instr->value());
1724 return DefineAsRegister(new LLoadContextSlot(context)); 1724 return DefineAsRegister(new LLoadContextSlot(context));
1725 } 1725 }
1726 1726
1727 1727
1728 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { 1728 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
1729 LOperand* context; 1729 LOperand* context;
1730 LOperand* value; 1730 LOperand* value;
1731 LOperand* temp;
1731 if (instr->NeedsWriteBarrier()) { 1732 if (instr->NeedsWriteBarrier()) {
1732 context = UseTempRegister(instr->context()); 1733 context = UseTempRegister(instr->context());
1733 value = UseTempRegister(instr->value()); 1734 value = UseTempRegister(instr->value());
1735 temp = TempRegister();
Rico 2011/03/07 11:19:21 Do we gain anything from not just initializing tem
William Hesse 2011/03/07 11:44:31 We do not allocate a temp register, and thus do no
1734 } else { 1736 } else {
1735 context = UseRegister(instr->context()); 1737 context = UseRegister(instr->context());
1736 value = UseRegister(instr->value()); 1738 value = UseRegister(instr->value());
1739 temp = NULL;
1737 } 1740 }
1738 return new LStoreContextSlot(context, value); 1741 return new LStoreContextSlot(context, value, temp);
1739 } 1742 }
1740 1743
1741 1744
1742 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 1745 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
1743 ASSERT(instr->representation().IsTagged()); 1746 ASSERT(instr->representation().IsTagged());
1744 LOperand* obj = UseRegisterAtStart(instr->object()); 1747 LOperand* obj = UseRegisterAtStart(instr->object());
1745 return DefineAsRegister(new LLoadNamedField(obj)); 1748 return DefineAsRegister(new LLoadNamedField(obj));
1746 } 1749 }
1747 1750
1748 1751
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
2034 2037
2035 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2038 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2036 HEnvironment* outer = current_block_->last_environment()->outer(); 2039 HEnvironment* outer = current_block_->last_environment()->outer();
2037 current_block_->UpdateEnvironment(outer); 2040 current_block_->UpdateEnvironment(outer);
2038 return NULL; 2041 return NULL;
2039 } 2042 }
2040 2043
2041 } } // namespace v8::internal 2044 } } // namespace v8::internal
2042 2045
2043 #endif // V8_TARGET_ARCH_X64 2046 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698