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

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

Issue 5753005: Make closures optimizable by Crankshaft compiler. (Closed) Base URL: https://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
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 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after
1820 ? AssignEnvironment(DefineAsRegister(result)) 1820 ? AssignEnvironment(DefineAsRegister(result))
1821 : DefineAsRegister(result); 1821 : DefineAsRegister(result);
1822 } 1822 }
1823 1823
1824 1824
1825 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1825 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
1826 return new LStoreGlobal(UseRegisterAtStart(instr->value())); 1826 return new LStoreGlobal(UseRegisterAtStart(instr->value()));
1827 } 1827 }
1828 1828
1829 1829
1830 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1831 return DefineAsRegister(new LLoadContextSlot);
1832 }
1833
1834
1830 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 1835 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
1831 return DefineAsRegister( 1836 return DefineAsRegister(
1832 new LLoadNamedField(UseRegisterAtStart(instr->object()))); 1837 new LLoadNamedField(UseRegisterAtStart(instr->object())));
1833 } 1838 }
1834 1839
1835 1840
1836 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { 1841 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
1837 LOperand* object = UseFixed(instr->object(), eax); 1842 LOperand* object = UseFixed(instr->object(), eax);
1838 LInstruction* result = DefineFixed(new LLoadNamedGeneric(object), eax); 1843 LInstruction* result = DefineFixed(new LLoadNamedGeneric(object), eax);
1839 return MarkAsCall(result, instr); 1844 return MarkAsCall(result, instr);
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
2099 void LPointerMap::PrintTo(StringStream* stream) const { 2104 void LPointerMap::PrintTo(StringStream* stream) const {
2100 stream->Add("{"); 2105 stream->Add("{");
2101 for (int i = 0; i < pointer_operands_.length(); ++i) { 2106 for (int i = 0; i < pointer_operands_.length(); ++i) {
2102 if (i != 0) stream->Add(";"); 2107 if (i != 0) stream->Add(";");
2103 pointer_operands_[i]->PrintTo(stream); 2108 pointer_operands_[i]->PrintTo(stream);
2104 } 2109 }
2105 stream->Add("} @%d", position()); 2110 stream->Add("} @%d", position());
2106 } 2111 }
2107 2112
2108 } } // namespace v8::internal 2113 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698