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

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

Issue 6693066: Extend crankshaft support for global stores (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments 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') | test/cctest/test-log-stack-tracer.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 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 } 1725 }
1726 1726
1727 1727
1728 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { 1728 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
1729 LOperand* global_object = UseFixed(instr->global_object(), rax); 1729 LOperand* global_object = UseFixed(instr->global_object(), rax);
1730 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(global_object); 1730 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(global_object);
1731 return MarkAsCall(DefineFixed(result, rax), instr); 1731 return MarkAsCall(DefineFixed(result, rax), instr);
1732 } 1732 }
1733 1733
1734 1734
1735 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1735 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) {
1736 LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()), 1736 LStoreGlobalCell* result =
1737 TempRegister()); 1737 new LStoreGlobalCell(UseRegister(instr->value()), TempRegister());
1738 return instr->check_hole_value() ? AssignEnvironment(result) : result; 1738 return instr->check_hole_value() ? AssignEnvironment(result) : result;
1739 } 1739 }
1740 1740
1741 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
1742 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1750 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1743 LOperand* context = UseRegisterAtStart(instr->value()); 1751 LOperand* context = UseRegisterAtStart(instr->value());
1744 return DefineAsRegister(new LLoadContextSlot(context)); 1752 return DefineAsRegister(new LLoadContextSlot(context));
1745 } 1753 }
1746 1754
1747 1755
1748 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { 1756 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
1749 LOperand* context; 1757 LOperand* context;
1750 LOperand* value; 1758 LOperand* value;
1751 LOperand* temp; 1759 LOperand* temp;
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
2101 2109
2102 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2110 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2103 HEnvironment* outer = current_block_->last_environment()->outer(); 2111 HEnvironment* outer = current_block_->last_environment()->outer();
2104 current_block_->UpdateEnvironment(outer); 2112 current_block_->UpdateEnvironment(outer);
2105 return NULL; 2113 return NULL;
2106 } 2114 }
2107 2115
2108 } } // namespace v8::internal 2116 } } // namespace v8::internal
2109 2117
2110 #endif // V8_TARGET_ARCH_X64 2118 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | test/cctest/test-log-stack-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698