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

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: rebased and fixed lintos Created 9 years, 9 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
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2012 matching lines...) Expand 10 before | Expand all | Expand 10 after
2023 2023
2024 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { 2024 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) {
2025 LOperand* arguments = UseRegister(instr->arguments()); 2025 LOperand* arguments = UseRegister(instr->arguments());
2026 LOperand* length = UseTempRegister(instr->length()); 2026 LOperand* length = UseTempRegister(instr->length());
2027 LOperand* index = Use(instr->index()); 2027 LOperand* index = Use(instr->index());
2028 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index); 2028 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index);
2029 return AssignEnvironment(DefineAsRegister(result)); 2029 return AssignEnvironment(DefineAsRegister(result));
2030 } 2030 }
2031 2031
2032 2032
2033 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) {
2034 LOperand* object = UseFixed(instr->value(), eax);
2035 LToFastProperties* result = new LToFastProperties(object);
2036 return MarkAsCall(DefineFixed(result, eax), instr);
2037 }
2038
2039
2033 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { 2040 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) {
2034 LTypeof* result = new LTypeof(UseAtStart(instr->value())); 2041 LTypeof* result = new LTypeof(UseAtStart(instr->value()));
2035 return MarkAsCall(DefineFixed(result, eax), instr); 2042 return MarkAsCall(DefineFixed(result, eax), instr);
2036 } 2043 }
2037 2044
2038 2045
2039 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) { 2046 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) {
2040 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value()))); 2047 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value())));
2041 } 2048 }
2042 2049
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
2100 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2107 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2101 HEnvironment* outer = current_block_->last_environment()->outer(); 2108 HEnvironment* outer = current_block_->last_environment()->outer();
2102 current_block_->UpdateEnvironment(outer); 2109 current_block_->UpdateEnvironment(outer);
2103 return NULL; 2110 return NULL;
2104 } 2111 }
2105 2112
2106 2113
2107 } } // namespace v8::internal 2114 } } // namespace v8::internal
2108 2115
2109 #endif // V8_TARGET_ARCH_IA32 2116 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698