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

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

Issue 12507006: MIPS: Allocation Info Tracking, continued. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/mips/lithium-mips.h ('k') | src/mips/macro-assembler-mips.h » ('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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 } 348 }
349 349
350 350
351 void LCallNew::PrintDataTo(StringStream* stream) { 351 void LCallNew::PrintDataTo(StringStream* stream) {
352 stream->Add("= "); 352 stream->Add("= ");
353 constructor()->PrintTo(stream); 353 constructor()->PrintTo(stream);
354 stream->Add(" #%d / ", arity()); 354 stream->Add(" #%d / ", arity());
355 } 355 }
356 356
357 357
358 void LCallNewArray::PrintDataTo(StringStream* stream) {
359 stream->Add("= ");
360 constructor()->PrintTo(stream);
361 stream->Add(" #%d / ", arity());
362 ASSERT(hydrogen()->property_cell()->value()->IsSmi());
363 ElementsKind kind = static_cast<ElementsKind>(
364 Smi::cast(hydrogen()->property_cell()->value())->value());
365 stream->Add(" (%s) ", ElementsKindToString(kind));
366 }
367
368
358 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { 369 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) {
359 arguments()->PrintTo(stream); 370 arguments()->PrintTo(stream);
360 stream->Add(" length "); 371 stream->Add(" length ");
361 length()->PrintTo(stream); 372 length()->PrintTo(stream);
362 stream->Add(" index "); 373 stream->Add(" index ");
363 index()->PrintTo(stream); 374 index()->PrintTo(stream);
364 } 375 }
365 376
366 377
367 void LStoreNamedField::PrintDataTo(StringStream* stream) { 378 void LStoreNamedField::PrintDataTo(StringStream* stream) {
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 1145
1135 1146
1136 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) { 1147 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) {
1137 LOperand* constructor = UseFixed(instr->constructor(), a1); 1148 LOperand* constructor = UseFixed(instr->constructor(), a1);
1138 argument_count_ -= instr->argument_count(); 1149 argument_count_ -= instr->argument_count();
1139 LCallNew* result = new(zone()) LCallNew(constructor); 1150 LCallNew* result = new(zone()) LCallNew(constructor);
1140 return MarkAsCall(DefineFixed(result, v0), instr); 1151 return MarkAsCall(DefineFixed(result, v0), instr);
1141 } 1152 }
1142 1153
1143 1154
1155 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) {
1156 LOperand* constructor = UseFixed(instr->constructor(), a1);
1157 argument_count_ -= instr->argument_count();
1158 LCallNewArray* result = new(zone()) LCallNewArray(constructor);
1159 return MarkAsCall(DefineFixed(result, v0), instr);
1160 }
1161
1162
1144 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { 1163 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
1145 LOperand* function = UseFixed(instr->function(), a1); 1164 LOperand* function = UseFixed(instr->function(), a1);
1146 argument_count_ -= instr->argument_count(); 1165 argument_count_ -= instr->argument_count();
1147 return MarkAsCall(DefineFixed(new(zone()) LCallFunction(function), v0), 1166 return MarkAsCall(DefineFixed(new(zone()) LCallFunction(function), v0),
1148 instr); 1167 instr);
1149 } 1168 }
1150 1169
1151 1170
1152 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { 1171 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) {
1153 argument_count_ -= instr->argument_count(); 1172 argument_count_ -= instr->argument_count();
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
2368 2387
2369 2388
2370 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2389 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2371 LOperand* object = UseRegister(instr->object()); 2390 LOperand* object = UseRegister(instr->object());
2372 LOperand* index = UseRegister(instr->index()); 2391 LOperand* index = UseRegister(instr->index());
2373 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2392 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2374 } 2393 }
2375 2394
2376 2395
2377 } } // namespace v8::internal 2396 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698