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

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

Issue 6009005: Support load function prototype in hydrogen/lithium. (Closed)
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
« src/ia32/lithium-codegen-ia32.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 1842 matching lines...) Expand 10 before | Expand all | Expand 10 after
1853 } 1853 }
1854 1854
1855 1855
1856 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { 1856 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
1857 LOperand* object = UseFixed(instr->object(), eax); 1857 LOperand* object = UseFixed(instr->object(), eax);
1858 LInstruction* result = DefineFixed(new LLoadNamedGeneric(object), eax); 1858 LInstruction* result = DefineFixed(new LLoadNamedGeneric(object), eax);
1859 return MarkAsCall(result, instr); 1859 return MarkAsCall(result, instr);
1860 } 1860 }
1861 1861
1862 1862
1863 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
1864 HLoadFunctionPrototype* instr) {
1865 return AssignEnvironment(DefineAsRegister(
1866 new LLoadFunctionPrototype(UseRegister(instr->function()),
1867 TempRegister())));
1868 }
1869
1870
1863 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) { 1871 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) {
1864 LOperand* input = UseRegisterAtStart(instr->value()); 1872 LOperand* input = UseRegisterAtStart(instr->value());
1865 return DefineSameAsFirst(new LLoadElements(input)); 1873 return DefineSameAsFirst(new LLoadElements(input));
1866 } 1874 }
1867 1875
1868 1876
1869 LInstruction* LChunkBuilder::DoLoadKeyedFastElement( 1877 LInstruction* LChunkBuilder::DoLoadKeyedFastElement(
1870 HLoadKeyedFastElement* instr) { 1878 HLoadKeyedFastElement* instr) {
1871 Representation r = instr->representation(); 1879 Representation r = instr->representation();
1872 LOperand* obj = UseRegisterAtStart(instr->object()); 1880 LOperand* obj = UseRegisterAtStart(instr->object());
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
2119 void LPointerMap::PrintTo(StringStream* stream) const { 2127 void LPointerMap::PrintTo(StringStream* stream) const {
2120 stream->Add("{"); 2128 stream->Add("{");
2121 for (int i = 0; i < pointer_operands_.length(); ++i) { 2129 for (int i = 0; i < pointer_operands_.length(); ++i) {
2122 if (i != 0) stream->Add(";"); 2130 if (i != 0) stream->Add(";");
2123 pointer_operands_[i]->PrintTo(stream); 2131 pointer_operands_[i]->PrintTo(stream);
2124 } 2132 }
2125 stream->Add("} @%d", position()); 2133 stream->Add("} @%d", position());
2126 } 2134 }
2127 2135
2128 } } // namespace v8::internal 2136 } } // namespace v8::internal
OLDNEW
« src/ia32/lithium-codegen-ia32.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