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

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

Issue 7083024: Support optimization of named function literals. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 } 1188 }
1189 1189
1190 1190
1191 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { 1191 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) {
1192 ++argument_count_; 1192 ++argument_count_;
1193 LOperand* argument = Use(instr->argument()); 1193 LOperand* argument = Use(instr->argument());
1194 return new LPushArgument(argument); 1194 return new LPushArgument(argument);
1195 } 1195 }
1196 1196
1197 1197
1198 LInstruction* LChunkBuilder::DoThisFunction(HThisFunction* instr) {
1199 return instr->HasNoUses() ? NULL : DefineAsRegister(new LThisFunction);
1200 }
1201
1202
1198 LInstruction* LChunkBuilder::DoContext(HContext* instr) { 1203 LInstruction* LChunkBuilder::DoContext(HContext* instr) {
1199 return instr->HasNoUses() ? NULL : DefineAsRegister(new LContext); 1204 return instr->HasNoUses() ? NULL : DefineAsRegister(new LContext);
1200 } 1205 }
1201 1206
1202 1207
1203 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { 1208 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) {
1204 LOperand* context = UseRegisterAtStart(instr->value()); 1209 LOperand* context = UseRegisterAtStart(instr->value());
1205 return DefineAsRegister(new LOuterContext(context)); 1210 return DefineAsRegister(new LOuterContext(context));
1206 } 1211 }
1207 1212
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
2227 2232
2228 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2233 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2229 LOperand* key = UseRegisterAtStart(instr->key()); 2234 LOperand* key = UseRegisterAtStart(instr->key());
2230 LOperand* object = UseRegisterAtStart(instr->object()); 2235 LOperand* object = UseRegisterAtStart(instr->object());
2231 LIn* result = new LIn(key, object); 2236 LIn* result = new LIn(key, object);
2232 return MarkAsCall(DefineFixed(result, r0), instr); 2237 return MarkAsCall(DefineFixed(result, r0), instr);
2233 } 2238 }
2234 2239
2235 2240
2236 } } // namespace v8::internal 2241 } } // 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