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

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

Issue 11818021: Allocation Info Tracking, continued. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 7 years, 10 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
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 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 1137
1127 1138
1128 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) { 1139 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) {
1129 LOperand* constructor = UseFixed(instr->constructor(), r1); 1140 LOperand* constructor = UseFixed(instr->constructor(), r1);
1130 argument_count_ -= instr->argument_count(); 1141 argument_count_ -= instr->argument_count();
1131 LCallNew* result = new(zone()) LCallNew(constructor); 1142 LCallNew* result = new(zone()) LCallNew(constructor);
1132 return MarkAsCall(DefineFixed(result, r0), instr); 1143 return MarkAsCall(DefineFixed(result, r0), instr);
1133 } 1144 }
1134 1145
1135 1146
1147 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) {
1148 LOperand* constructor = UseFixed(instr->constructor(), r1);
1149 argument_count_ -= instr->argument_count();
1150 LCallNewArray* result = new(zone()) LCallNewArray(constructor);
1151 return MarkAsCall(DefineFixed(result, r0), instr);
1152 }
1153
1154
1136 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { 1155 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
1137 LOperand* function = UseFixed(instr->function(), r1); 1156 LOperand* function = UseFixed(instr->function(), r1);
1138 argument_count_ -= instr->argument_count(); 1157 argument_count_ -= instr->argument_count();
1139 return MarkAsCall(DefineFixed(new(zone()) LCallFunction(function), r0), 1158 return MarkAsCall(DefineFixed(new(zone()) LCallFunction(function), r0),
1140 instr); 1159 instr);
1141 } 1160 }
1142 1161
1143 1162
1144 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { 1163 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) {
1145 argument_count_ -= instr->argument_count(); 1164 argument_count_ -= instr->argument_count();
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after
2444 2463
2445 2464
2446 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2465 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2447 LOperand* object = UseRegister(instr->object()); 2466 LOperand* object = UseRegister(instr->object());
2448 LOperand* index = UseRegister(instr->index()); 2467 LOperand* index = UseRegister(instr->index());
2449 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2468 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2450 } 2469 }
2451 2470
2452 2471
2453 } } // namespace v8::internal 2472 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | src/builtins.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698