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

Side by Side Diff: src/arm/lithium-arm.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/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.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 1978 matching lines...) Expand 10 before | Expand all | Expand 10 after
1989 1989
1990 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { 1990 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) {
1991 LOperand* arguments = UseRegister(instr->arguments()); 1991 LOperand* arguments = UseRegister(instr->arguments());
1992 LOperand* length = UseTempRegister(instr->length()); 1992 LOperand* length = UseTempRegister(instr->length());
1993 LOperand* index = UseRegister(instr->index()); 1993 LOperand* index = UseRegister(instr->index());
1994 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index); 1994 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index);
1995 return AssignEnvironment(DefineAsRegister(result)); 1995 return AssignEnvironment(DefineAsRegister(result));
1996 } 1996 }
1997 1997
1998 1998
1999 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) {
2000 LOperand* object = UseFixed(instr->value(), r0);
2001 LToFastProperties* result = new LToFastProperties(object);
2002 return MarkAsCall(DefineFixed(result, r0), instr);
2003 }
2004
2005
1999 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { 2006 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) {
2000 LTypeof* result = new LTypeof(UseFixed(instr->value(), r0)); 2007 LTypeof* result = new LTypeof(UseFixed(instr->value(), r0));
2001 return MarkAsCall(DefineFixed(result, r0), instr); 2008 return MarkAsCall(DefineFixed(result, r0), instr);
2002 } 2009 }
2003 2010
2004 2011
2005 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) { 2012 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) {
2006 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value()))); 2013 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value())));
2007 } 2014 }
2008 2015
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
2064 2071
2065 2072
2066 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2073 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2067 HEnvironment* outer = current_block_->last_environment()->outer(); 2074 HEnvironment* outer = current_block_->last_environment()->outer();
2068 current_block_->UpdateEnvironment(outer); 2075 current_block_->UpdateEnvironment(outer);
2069 return NULL; 2076 return NULL;
2070 } 2077 }
2071 2078
2072 2079
2073 } } // namespace v8::internal 2080 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698