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

Side by Side Diff: src/x64/lithium-x64.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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 } 350 }
351 351
352 352
353 void LCallNew::PrintDataTo(StringStream* stream) { 353 void LCallNew::PrintDataTo(StringStream* stream) {
354 stream->Add("= "); 354 stream->Add("= ");
355 constructor()->PrintTo(stream); 355 constructor()->PrintTo(stream);
356 stream->Add(" #%d / ", arity()); 356 stream->Add(" #%d / ", arity());
357 } 357 }
358 358
359 359
360 void LCallNewArray::PrintDataTo(StringStream* stream) {
361 stream->Add("= ");
362 constructor()->PrintTo(stream);
363 stream->Add(" #%d / ", arity());
364 ASSERT(hydrogen()->property_cell()->value()->IsSmi());
365 ElementsKind kind = static_cast<ElementsKind>(
366 Smi::cast(hydrogen()->property_cell()->value())->value());
367 stream->Add(" (%s) ", ElementsKindToString(kind));
368 }
369
370
360 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { 371 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) {
361 arguments()->PrintTo(stream); 372 arguments()->PrintTo(stream);
362 373
363 stream->Add(" length "); 374 stream->Add(" length ");
364 length()->PrintTo(stream); 375 length()->PrintTo(stream);
365 376
366 stream->Add(" index "); 377 stream->Add(" index ");
367 index()->PrintTo(stream); 378 index()->PrintTo(stream);
368 } 379 }
369 380
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 1138
1128 1139
1129 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) { 1140 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) {
1130 LOperand* constructor = UseFixed(instr->constructor(), rdi); 1141 LOperand* constructor = UseFixed(instr->constructor(), rdi);
1131 argument_count_ -= instr->argument_count(); 1142 argument_count_ -= instr->argument_count();
1132 LCallNew* result = new(zone()) LCallNew(constructor); 1143 LCallNew* result = new(zone()) LCallNew(constructor);
1133 return MarkAsCall(DefineFixed(result, rax), instr); 1144 return MarkAsCall(DefineFixed(result, rax), instr);
1134 } 1145 }
1135 1146
1136 1147
1148 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) {
1149 LOperand* constructor = UseFixed(instr->constructor(), rdi);
1150 argument_count_ -= instr->argument_count();
1151 LCallNewArray* result = new(zone()) LCallNewArray(constructor);
1152 return MarkAsCall(DefineFixed(result, rax), instr);
1153 }
1154
1155
1137 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { 1156 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
1138 LOperand* function = UseFixed(instr->function(), rdi); 1157 LOperand* function = UseFixed(instr->function(), rdi);
1139 argument_count_ -= instr->argument_count(); 1158 argument_count_ -= instr->argument_count();
1140 LCallFunction* result = new(zone()) LCallFunction(function); 1159 LCallFunction* result = new(zone()) LCallFunction(function);
1141 return MarkAsCall(DefineFixed(result, rax), instr); 1160 return MarkAsCall(DefineFixed(result, rax), instr);
1142 } 1161 }
1143 1162
1144 1163
1145 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { 1164 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) {
1146 argument_count_ -= instr->argument_count(); 1165 argument_count_ -= instr->argument_count();
(...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after
2391 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2410 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2392 LOperand* object = UseRegister(instr->object()); 2411 LOperand* object = UseRegister(instr->object());
2393 LOperand* index = UseTempRegister(instr->index()); 2412 LOperand* index = UseTempRegister(instr->index());
2394 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2413 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2395 } 2414 }
2396 2415
2397 2416
2398 } } // namespace v8::internal 2417 } } // namespace v8::internal
2399 2418
2400 #endif // V8_TARGET_ARCH_X64 2419 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698