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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-x64.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 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 1972 matching lines...) Expand 10 before | Expand all | Expand 10 after
1983 1983
1984 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { 1984 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) {
1985 LOperand* arguments = UseRegister(instr->arguments()); 1985 LOperand* arguments = UseRegister(instr->arguments());
1986 LOperand* length = UseTempRegister(instr->length()); 1986 LOperand* length = UseTempRegister(instr->length());
1987 LOperand* index = Use(instr->index()); 1987 LOperand* index = Use(instr->index());
1988 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index); 1988 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index);
1989 return AssignEnvironment(DefineAsRegister(result)); 1989 return AssignEnvironment(DefineAsRegister(result));
1990 } 1990 }
1991 1991
1992 1992
1993 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) {
1994 LOperand* object = UseFixed(instr->value(), rax);
1995 LToFastProperties* result = new LToFastProperties(object);
1996 return MarkAsCall(DefineFixed(result, rax), instr);
1997 }
1998
1999
1993 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { 2000 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) {
1994 LTypeof* result = new LTypeof(UseAtStart(instr->value())); 2001 LTypeof* result = new LTypeof(UseAtStart(instr->value()));
1995 return MarkAsCall(DefineFixed(result, rax), instr); 2002 return MarkAsCall(DefineFixed(result, rax), instr);
1996 } 2003 }
1997 2004
1998 2005
1999 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) { 2006 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) {
2000 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value()))); 2007 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value())));
2001 } 2008 }
2002 2009
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
2058 2065
2059 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2066 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2060 HEnvironment* outer = current_block_->last_environment()->outer(); 2067 HEnvironment* outer = current_block_->last_environment()->outer();
2061 current_block_->UpdateEnvironment(outer); 2068 current_block_->UpdateEnvironment(outer);
2062 return NULL; 2069 return NULL;
2063 } 2070 }
2064 2071
2065 } } // namespace v8::internal 2072 } } // namespace v8::internal
2066 2073
2067 #endif // V8_TARGET_ARCH_X64 2074 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698