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

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

Issue 135053004: MIPS: Remove HCallGlobal and merge uses with HCallNamed. (Closed) Base URL: https://github.com/v8/v8.git@gbl
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
« no previous file with comments | « src/mips/lithium-mips.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 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 stream->Add("[a2] #%d / ", arity()); 311 stream->Add("[a2] #%d / ", arity());
312 } 312 }
313 313
314 314
315 void LCallNamed::PrintDataTo(StringStream* stream) { 315 void LCallNamed::PrintDataTo(StringStream* stream) {
316 SmartArrayPointer<char> name_string = name()->ToCString(); 316 SmartArrayPointer<char> name_string = name()->ToCString();
317 stream->Add("%s #%d / ", name_string.get(), arity()); 317 stream->Add("%s #%d / ", name_string.get(), arity());
318 } 318 }
319 319
320 320
321 void LCallGlobal::PrintDataTo(StringStream* stream) {
322 SmartArrayPointer<char> name_string = name()->ToCString();
323 stream->Add("%s #%d / ", name_string.get(), arity());
324 }
325
326
327 void LCallKnownGlobal::PrintDataTo(StringStream* stream) { 321 void LCallKnownGlobal::PrintDataTo(StringStream* stream) {
328 stream->Add("#%d / ", arity()); 322 stream->Add("#%d / ", arity());
329 } 323 }
330 324
331 325
332 void LCallNew::PrintDataTo(StringStream* stream) { 326 void LCallNew::PrintDataTo(StringStream* stream) {
333 stream->Add("= "); 327 stream->Add("= ");
334 constructor()->PrintTo(stream); 328 constructor()->PrintTo(stream);
335 stream->Add(" #%d / ", arity()); 329 stream->Add(" #%d / ", arity());
336 } 330 }
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 DefineFixed(new(zone()) LCallKeyed(context, key), v0), instr); 1181 DefineFixed(new(zone()) LCallKeyed(context, key), v0), instr);
1188 } 1182 }
1189 1183
1190 1184
1191 LInstruction* LChunkBuilder::DoCallNamed(HCallNamed* instr) { 1185 LInstruction* LChunkBuilder::DoCallNamed(HCallNamed* instr) {
1192 LOperand* context = UseFixed(instr->context(), cp); 1186 LOperand* context = UseFixed(instr->context(), cp);
1193 return MarkAsCall(DefineFixed(new(zone()) LCallNamed(context), v0), instr); 1187 return MarkAsCall(DefineFixed(new(zone()) LCallNamed(context), v0), instr);
1194 } 1188 }
1195 1189
1196 1190
1197 LInstruction* LChunkBuilder::DoCallGlobal(HCallGlobal* instr) {
1198 LOperand* context = UseFixed(instr->context(), cp);
1199 return MarkAsCall(DefineFixed(new(zone()) LCallGlobal(context), v0), instr);
1200 }
1201
1202
1203 LInstruction* LChunkBuilder::DoCallKnownGlobal(HCallKnownGlobal* instr) { 1191 LInstruction* LChunkBuilder::DoCallKnownGlobal(HCallKnownGlobal* instr) {
1204 return MarkAsCall(DefineFixed(new(zone()) LCallKnownGlobal, v0), instr); 1192 return MarkAsCall(DefineFixed(new(zone()) LCallKnownGlobal, v0), instr);
1205 } 1193 }
1206 1194
1207 1195
1208 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) { 1196 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) {
1209 LOperand* context = UseFixed(instr->context(), cp); 1197 LOperand* context = UseFixed(instr->context(), cp);
1210 LOperand* constructor = UseFixed(instr->constructor(), a1); 1198 LOperand* constructor = UseFixed(instr->constructor(), a1);
1211 LCallNew* result = new(zone()) LCallNew(context, constructor); 1199 LCallNew* result = new(zone()) LCallNew(context, constructor);
1212 return MarkAsCall(DefineFixed(result, v0), instr); 1200 return MarkAsCall(DefineFixed(result, v0), instr);
(...skipping 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after
2490 2478
2491 2479
2492 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2480 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2493 LOperand* object = UseRegister(instr->object()); 2481 LOperand* object = UseRegister(instr->object());
2494 LOperand* index = UseRegister(instr->index()); 2482 LOperand* index = UseRegister(instr->index());
2495 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2483 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2496 } 2484 }
2497 2485
2498 2486
2499 } } // namespace v8::internal 2487 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698