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

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

Issue 5550003: Add optimized compiler support for generic global loads.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years 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
« src/hydrogen.cc ('K') | « src/ia32/lithium-ia32.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1803 1803
1804 1804
1805 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { 1805 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) {
1806 LInstruction* result = new LLoadGlobal; 1806 LInstruction* result = new LLoadGlobal;
1807 return instr->check_hole_value() 1807 return instr->check_hole_value()
1808 ? AssignEnvironment(DefineAsRegister(result)) 1808 ? AssignEnvironment(DefineAsRegister(result))
1809 : DefineAsRegister(result); 1809 : DefineAsRegister(result);
1810 } 1810 }
1811 1811
1812 1812
1813 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
1814 return MarkAsCall(DefineFixed(new LLoadGlobalGeneric, eax), instr);
1815 }
1816
1817
1813 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1818 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
1814 return new LStoreGlobal(UseRegisterAtStart(instr->value())); 1819 return new LStoreGlobal(UseRegisterAtStart(instr->value()));
1815 } 1820 }
1816 1821
1817 1822
1818 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 1823 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
1819 return DefineAsRegister( 1824 return DefineAsRegister(
1820 new LLoadNamedField(UseRegisterAtStart(instr->object()))); 1825 new LLoadNamedField(UseRegisterAtStart(instr->object())));
1821 } 1826 }
1822 1827
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
2087 void LPointerMap::PrintTo(StringStream* stream) const { 2092 void LPointerMap::PrintTo(StringStream* stream) const {
2088 stream->Add("{"); 2093 stream->Add("{");
2089 for (int i = 0; i < pointer_operands_.length(); ++i) { 2094 for (int i = 0; i < pointer_operands_.length(); ++i) {
2090 if (i != 0) stream->Add(";"); 2095 if (i != 0) stream->Add(";");
2091 pointer_operands_[i]->PrintTo(stream); 2096 pointer_operands_[i]->PrintTo(stream);
2092 } 2097 }
2093 stream->Add("} @%d", position()); 2098 stream->Add("} @%d", position());
2094 } 2099 }
2095 2100
2096 } } // namespace v8::internal 2101 } } // namespace v8::internal
OLDNEW
« src/hydrogen.cc ('K') | « src/ia32/lithium-ia32.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698