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

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

Issue 6758007: Increase coverage of global loads in optimized code (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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
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 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1710 return DefineAsRegister(new LConstantD(temp)); 1710 return DefineAsRegister(new LConstantD(temp));
1711 } else if (r.IsTagged()) { 1711 } else if (r.IsTagged()) {
1712 return DefineAsRegister(new LConstantT); 1712 return DefineAsRegister(new LConstantT);
1713 } else { 1713 } else {
1714 UNREACHABLE(); 1714 UNREACHABLE();
1715 return NULL; 1715 return NULL;
1716 } 1716 }
1717 } 1717 }
1718 1718
1719 1719
1720 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { 1720 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) {
1721 LLoadGlobal* result = new LLoadGlobal; 1721 LLoadGlobalCell* result = new LLoadGlobalCell;
1722 return instr->check_hole_value() 1722 return instr->check_hole_value()
1723 ? AssignEnvironment(DefineAsRegister(result)) 1723 ? AssignEnvironment(DefineAsRegister(result))
1724 : DefineAsRegister(result); 1724 : DefineAsRegister(result);
1725 } 1725 }
1726 1726
1727 1727
1728 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
1729 LOperand* global_object = UseFixed(instr->global_object(), rax);
1730 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(global_object);
1731 return MarkAsCall(DefineFixed(result, rax), instr);
1732 }
1733
1734
1728 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1735 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
1729 LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()), 1736 LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()),
1730 TempRegister()); 1737 TempRegister());
1731 return instr->check_hole_value() ? AssignEnvironment(result) : result; 1738 return instr->check_hole_value() ? AssignEnvironment(result) : result;
1732 } 1739 }
1733 1740
1734 1741
1735 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1742 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1736 LOperand* context = UseRegisterAtStart(instr->value()); 1743 LOperand* context = UseRegisterAtStart(instr->value());
1737 return DefineAsRegister(new LLoadContextSlot(context)); 1744 return DefineAsRegister(new LLoadContextSlot(context));
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
2094 2101
2095 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2102 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2096 HEnvironment* outer = current_block_->last_environment()->outer(); 2103 HEnvironment* outer = current_block_->last_environment()->outer();
2097 current_block_->UpdateEnvironment(outer); 2104 current_block_->UpdateEnvironment(outer);
2098 return NULL; 2105 return NULL;
2099 } 2106 }
2100 2107
2101 } } // namespace v8::internal 2108 } } // namespace v8::internal
2102 2109
2103 #endif // V8_TARGET_ARCH_X64 2110 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698