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

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

Issue 6665026: Increase coverage of global loads in optimized code... (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
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 1727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1738 return DefineAsRegister(new LConstantD(temp)); 1738 return DefineAsRegister(new LConstantD(temp));
1739 } else if (r.IsTagged()) { 1739 } else if (r.IsTagged()) {
1740 return DefineAsRegister(new LConstantT); 1740 return DefineAsRegister(new LConstantT);
1741 } else { 1741 } else {
1742 UNREACHABLE(); 1742 UNREACHABLE();
1743 return NULL; 1743 return NULL;
1744 } 1744 }
1745 } 1745 }
1746 1746
1747 1747
1748 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { 1748 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) {
1749 LLoadGlobal* result = new LLoadGlobal; 1749 LLoadGlobalCell* result = new LLoadGlobalCell;
1750 return instr->check_hole_value() 1750 return instr->check_hole_value()
1751 ? AssignEnvironment(DefineAsRegister(result)) 1751 ? AssignEnvironment(DefineAsRegister(result))
1752 : DefineAsRegister(result); 1752 : DefineAsRegister(result);
1753 } 1753 }
1754 1754
1755 1755
1756 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
1757 LOperand* context = UseFixed(instr->context(), esi);
1758 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(context);
1759 return MarkAsCall(DefineFixed(result, eax), instr);
1760 }
1761
1762
1756 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1763 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
1757 LStoreGlobal* result = new LStoreGlobal(UseRegisterAtStart(instr->value())); 1764 LStoreGlobal* result = new LStoreGlobal(UseRegisterAtStart(instr->value()));
1758 return instr->check_hole_value() ? AssignEnvironment(result) : result; 1765 return instr->check_hole_value() ? AssignEnvironment(result) : result;
1759 } 1766 }
1760 1767
1761 1768
1762 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1769 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1763 LOperand* context = UseRegisterAtStart(instr->value()); 1770 LOperand* context = UseRegisterAtStart(instr->value());
1764 return DefineAsRegister(new LLoadContextSlot(context)); 1771 return DefineAsRegister(new LLoadContextSlot(context));
1765 } 1772 }
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
2099 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2106 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2100 HEnvironment* outer = current_block_->last_environment()->outer(); 2107 HEnvironment* outer = current_block_->last_environment()->outer();
2101 current_block_->UpdateEnvironment(outer); 2108 current_block_->UpdateEnvironment(outer);
2102 return NULL; 2109 return NULL;
2103 } 2110 }
2104 2111
2105 2112
2106 } } // namespace v8::internal 2113 } } // namespace v8::internal
2107 2114
2108 #endif // V8_TARGET_ARCH_IA32 2115 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698