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

Side by Side Diff: src/arm/lithium-arm.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 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after
1718 return DefineAsRegister(new LConstantD); 1718 return DefineAsRegister(new LConstantD);
1719 } else if (r.IsTagged()) { 1719 } else if (r.IsTagged()) {
1720 return DefineAsRegister(new LConstantT); 1720 return DefineAsRegister(new LConstantT);
1721 } else { 1721 } else {
1722 UNREACHABLE(); 1722 UNREACHABLE();
1723 return NULL; 1723 return NULL;
1724 } 1724 }
1725 } 1725 }
1726 1726
1727 1727
1728 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { 1728 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) {
1729 LLoadGlobal* result = new LLoadGlobal(); 1729 LLoadGlobalCell* result = new LLoadGlobalCell();
1730 return instr->check_hole_value() 1730 return instr->check_hole_value()
1731 ? AssignEnvironment(DefineAsRegister(result)) 1731 ? AssignEnvironment(DefineAsRegister(result))
1732 : DefineAsRegister(result); 1732 : DefineAsRegister(result);
1733 } 1733 }
1734 1734
1735 1735
1736 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
1737 LLoadGlobalGeneric* result = new LLoadGlobalGeneric;
1738 return MarkAsCall(DefineFixed(result, r0), instr);
1739 }
1740
1741
1736 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1742 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
1737 if (instr->check_hole_value()) { 1743 if (instr->check_hole_value()) {
1738 LOperand* temp = TempRegister(); 1744 LOperand* temp = TempRegister();
1739 LOperand* value = UseRegister(instr->value()); 1745 LOperand* value = UseRegister(instr->value());
1740 return AssignEnvironment(new LStoreGlobal(value, temp)); 1746 return AssignEnvironment(new LStoreGlobal(value, temp));
1741 } else { 1747 } else {
1742 LOperand* value = UseRegisterAtStart(instr->value()); 1748 LOperand* value = UseRegisterAtStart(instr->value());
1743 return new LStoreGlobal(value, NULL); 1749 return new LStoreGlobal(value, NULL);
1744 } 1750 }
1745 } 1751 }
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
2062 2068
2063 2069
2064 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2070 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2065 HEnvironment* outer = current_block_->last_environment()->outer(); 2071 HEnvironment* outer = current_block_->last_environment()->outer();
2066 current_block_->UpdateEnvironment(outer); 2072 current_block_->UpdateEnvironment(outer);
2067 return NULL; 2073 return NULL;
2068 } 2074 }
2069 2075
2070 2076
2071 } } // namespace v8::internal 2077 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698