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

Side by Side Diff: src/arm/lithium-arm.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 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after
1798 ? AssignEnvironment(DefineAsRegister(result)) 1798 ? AssignEnvironment(DefineAsRegister(result))
1799 : DefineAsRegister(result); 1799 : DefineAsRegister(result);
1800 } 1800 }
1801 1801
1802 1802
1803 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1803 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
1804 return new LStoreGlobal(UseRegisterAtStart(instr->value())); 1804 return new LStoreGlobal(UseRegisterAtStart(instr->value()));
1805 } 1805 }
1806 1806
1807 1807
1808 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1809 return DefineAsRegister(new LLoadContextSlot);
1810 }
1811
1812
1808 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 1813 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
1809 return DefineAsRegister( 1814 return DefineAsRegister(
1810 new LLoadNamedField(UseRegisterAtStart(instr->object()))); 1815 new LLoadNamedField(UseRegisterAtStart(instr->object())));
1811 } 1816 }
1812 1817
1813 1818
1814 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { 1819 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
1815 LOperand* object = UseFixed(instr->object(), r0); 1820 LOperand* object = UseFixed(instr->object(), r0);
1816 LInstruction* result = DefineFixed(new LLoadNamedGeneric(object), r0); 1821 LInstruction* result = DefineFixed(new LLoadNamedGeneric(object), r0);
1817 return MarkAsCall(result, instr); 1822 return MarkAsCall(result, instr);
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
2077 void LPointerMap::PrintTo(StringStream* stream) const { 2082 void LPointerMap::PrintTo(StringStream* stream) const {
2078 stream->Add("{"); 2083 stream->Add("{");
2079 for (int i = 0; i < pointer_operands_.length(); ++i) { 2084 for (int i = 0; i < pointer_operands_.length(); ++i) {
2080 if (i != 0) stream->Add(";"); 2085 if (i != 0) stream->Add(";");
2081 pointer_operands_[i]->PrintTo(stream); 2086 pointer_operands_[i]->PrintTo(stream);
2082 } 2087 }
2083 stream->Add("} @%d", position()); 2088 stream->Add("} @%d", position());
2084 } 2089 }
2085 2090
2086 } } // namespace v8::internal 2091 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | src/compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698