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

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

Issue 134333007: Remove HCallGlobal and merge uses with HCallNamed. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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/x64/lithium-codegen-x64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 stream->Add("[ecx] #%d / ", arity()); 338 stream->Add("[ecx] #%d / ", arity());
339 } 339 }
340 340
341 341
342 void LCallNamed::PrintDataTo(StringStream* stream) { 342 void LCallNamed::PrintDataTo(StringStream* stream) {
343 SmartArrayPointer<char> name_string = name()->ToCString(); 343 SmartArrayPointer<char> name_string = name()->ToCString();
344 stream->Add("%s #%d / ", name_string.get(), arity()); 344 stream->Add("%s #%d / ", name_string.get(), arity());
345 } 345 }
346 346
347 347
348 void LCallGlobal::PrintDataTo(StringStream* stream) {
349 SmartArrayPointer<char> name_string = name()->ToCString();
350 stream->Add("%s #%d / ", name_string.get(), arity());
351 }
352
353
354 void LCallKnownGlobal::PrintDataTo(StringStream* stream) { 348 void LCallKnownGlobal::PrintDataTo(StringStream* stream) {
355 stream->Add("#%d / ", arity()); 349 stream->Add("#%d / ", arity());
356 } 350 }
357 351
358 352
359 void LCallNew::PrintDataTo(StringStream* stream) { 353 void LCallNew::PrintDataTo(StringStream* stream) {
360 stream->Add("= "); 354 stream->Add("= ");
361 context()->PrintTo(stream); 355 context()->PrintTo(stream);
362 stream->Add(" "); 356 stream->Add(" ");
363 constructor()->PrintTo(stream); 357 constructor()->PrintTo(stream);
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 } 1258 }
1265 1259
1266 1260
1267 LInstruction* LChunkBuilder::DoCallNamed(HCallNamed* instr) { 1261 LInstruction* LChunkBuilder::DoCallNamed(HCallNamed* instr) {
1268 LOperand* context = UseFixed(instr->context(), esi); 1262 LOperand* context = UseFixed(instr->context(), esi);
1269 LCallNamed* result = new(zone()) LCallNamed(context); 1263 LCallNamed* result = new(zone()) LCallNamed(context);
1270 return MarkAsCall(DefineFixed(result, eax), instr); 1264 return MarkAsCall(DefineFixed(result, eax), instr);
1271 } 1265 }
1272 1266
1273 1267
1274 LInstruction* LChunkBuilder::DoCallGlobal(HCallGlobal* instr) {
1275 LOperand* context = UseFixed(instr->context(), esi);
1276 LCallGlobal* result = new(zone()) LCallGlobal(context);
1277 return MarkAsCall(DefineFixed(result, eax), instr);
1278 }
1279
1280
1281 LInstruction* LChunkBuilder::DoCallKnownGlobal(HCallKnownGlobal* instr) { 1268 LInstruction* LChunkBuilder::DoCallKnownGlobal(HCallKnownGlobal* instr) {
1282 return MarkAsCall(DefineFixed(new(zone()) LCallKnownGlobal, eax), instr); 1269 return MarkAsCall(DefineFixed(new(zone()) LCallKnownGlobal, eax), instr);
1283 } 1270 }
1284 1271
1285 1272
1286 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) { 1273 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) {
1287 LOperand* context = UseFixed(instr->context(), esi); 1274 LOperand* context = UseFixed(instr->context(), esi);
1288 LOperand* constructor = UseFixed(instr->constructor(), edi); 1275 LOperand* constructor = UseFixed(instr->constructor(), edi);
1289 LCallNew* result = new(zone()) LCallNew(context, constructor); 1276 LCallNew* result = new(zone()) LCallNew(context, constructor);
1290 return MarkAsCall(DefineFixed(result, eax), instr); 1277 return MarkAsCall(DefineFixed(result, eax), instr);
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
2679 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2666 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2680 LOperand* object = UseRegister(instr->object()); 2667 LOperand* object = UseRegister(instr->object());
2681 LOperand* index = UseTempRegister(instr->index()); 2668 LOperand* index = UseTempRegister(instr->index());
2682 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2669 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2683 } 2670 }
2684 2671
2685 2672
2686 } } // namespace v8::internal 2673 } } // namespace v8::internal
2687 2674
2688 #endif // V8_TARGET_ARCH_IA32 2675 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698