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

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

Issue 6240012: Optimize calls to object literal properties that are initialized with a funct... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: added x64 and arm code. Created 9 years, 10 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 1828 matching lines...) Expand 10 before | Expand all | Expand 10 after
1839 1839
1840 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { 1840 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) {
1841 LOperand* arguments = UseRegister(instr->arguments()); 1841 LOperand* arguments = UseRegister(instr->arguments());
1842 LOperand* length = UseTempRegister(instr->length()); 1842 LOperand* length = UseTempRegister(instr->length());
1843 LOperand* index = Use(instr->index()); 1843 LOperand* index = Use(instr->index());
1844 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index); 1844 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index);
1845 return AssignEnvironment(DefineAsRegister(result)); 1845 return AssignEnvironment(DefineAsRegister(result));
1846 } 1846 }
1847 1847
1848 1848
1849 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) {
1850 LOperand* object = UseFixed(instr->value(), eax);
1851 return MarkAsCall(new LToFastProperties(object), instr);
1852 }
1853
1854
1849 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { 1855 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) {
1850 LTypeof* result = new LTypeof(UseAtStart(instr->value())); 1856 LTypeof* result = new LTypeof(UseAtStart(instr->value()));
1851 return MarkAsCall(DefineFixed(result, eax), instr); 1857 return MarkAsCall(DefineFixed(result, eax), instr);
1852 } 1858 }
1853 1859
1854 1860
1855 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) { 1861 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) {
1856 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value()))); 1862 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value())));
1857 } 1863 }
1858 1864
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
1909 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1915 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1910 HEnvironment* outer = current_block_->last_environment()->outer(); 1916 HEnvironment* outer = current_block_->last_environment()->outer();
1911 current_block_->UpdateEnvironment(outer); 1917 current_block_->UpdateEnvironment(outer);
1912 return NULL; 1918 return NULL;
1913 } 1919 }
1914 1920
1915 1921
1916 } } // namespace v8::internal 1922 } } // namespace v8::internal
1917 1923
1918 #endif // V8_TARGET_ARCH_IA32 1924 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/hydrogen-instructions.h ('K') | « src/ia32/lithium-ia32.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698