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

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

Issue 6538080: Add template parameter for hydrogen input operands. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: added other platforms Created 9 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
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/x64/lithium-x64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 397
398 if (can_eliminate) { 398 if (can_eliminate) {
399 label->set_replacement(GetLabel(goto_instr->block_id())); 399 label->set_replacement(GetLabel(goto_instr->block_id()));
400 } 400 }
401 } 401 }
402 } 402 }
403 } 403 }
404 } 404 }
405 405
406 406
407 void LStoreNamed::PrintDataTo(StringStream* stream) { 407 void LStoreNamedField::PrintDataTo(StringStream* stream) {
408 object()->PrintTo(stream); 408 object()->PrintTo(stream);
409 stream->Add("."); 409 stream->Add(".");
410 stream->Add(*String::cast(*name())->ToCString()); 410 stream->Add(*String::cast(*name())->ToCString());
411 stream->Add(" <- "); 411 stream->Add(" <- ");
412 value()->PrintTo(stream); 412 value()->PrintTo(stream);
413 } 413 }
414 414
415 415
416 void LStoreKeyed::PrintDataTo(StringStream* stream) { 416 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) {
417 object()->PrintTo(stream);
418 stream->Add(".");
419 stream->Add(*String::cast(*name())->ToCString());
420 stream->Add(" <- ");
421 value()->PrintTo(stream);
422 }
423
424
425 void LStoreKeyedFastElement::PrintDataTo(StringStream* stream) {
417 object()->PrintTo(stream); 426 object()->PrintTo(stream);
418 stream->Add("["); 427 stream->Add("[");
419 key()->PrintTo(stream); 428 key()->PrintTo(stream);
420 stream->Add("] <- "); 429 stream->Add("] <- ");
421 value()->PrintTo(stream); 430 value()->PrintTo(stream);
422 } 431 }
423 432
424 433
434 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) {
435 object()->PrintTo(stream);
436 stream->Add("[");
437 key()->PrintTo(stream);
438 stream->Add("] <- ");
439 value()->PrintTo(stream);
440 }
441
442
425 void LChunk::AddInstruction(LInstruction* instr, HBasicBlock* block) { 443 void LChunk::AddInstruction(LInstruction* instr, HBasicBlock* block) {
426 LGap* gap = new LGap(block); 444 LGap* gap = new LGap(block);
427 int index = -1; 445 int index = -1;
428 if (instr->IsControl()) { 446 if (instr->IsControl()) {
429 instructions_.Add(gap); 447 instructions_.Add(gap);
430 index = instructions_.length(); 448 index = instructions_.length();
431 instructions_.Add(instr); 449 instructions_.Add(instr);
432 } else { 450 } else {
433 index = instructions_.length(); 451 index = instructions_.length();
434 instructions_.Add(instr); 452 instructions_.Add(instr);
(...skipping 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after
2061 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2079 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2062 HEnvironment* outer = current_block_->last_environment()->outer(); 2080 HEnvironment* outer = current_block_->last_environment()->outer();
2063 current_block_->UpdateEnvironment(outer); 2081 current_block_->UpdateEnvironment(outer);
2064 return NULL; 2082 return NULL;
2065 } 2083 }
2066 2084
2067 2085
2068 } } // namespace v8::internal 2086 } } // namespace v8::internal
2069 2087
2070 #endif // V8_TARGET_ARCH_IA32 2088 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698