| OLD | NEW |
| 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 | 391 |
| 392 if (can_eliminate) { | 392 if (can_eliminate) { |
| 393 label->set_replacement(GetLabel(goto_instr->block_id())); | 393 label->set_replacement(GetLabel(goto_instr->block_id())); |
| 394 } | 394 } |
| 395 } | 395 } |
| 396 } | 396 } |
| 397 } | 397 } |
| 398 } | 398 } |
| 399 | 399 |
| 400 | 400 |
| 401 void LStoreNamed::PrintDataTo(StringStream* stream) { | 401 void LStoreNamedField::PrintDataTo(StringStream* stream) { |
| 402 object()->PrintTo(stream); | 402 object()->PrintTo(stream); |
| 403 stream->Add("."); | 403 stream->Add("."); |
| 404 stream->Add(*String::cast(*name())->ToCString()); | 404 stream->Add(*String::cast(*name())->ToCString()); |
| 405 stream->Add(" <- "); | 405 stream->Add(" <- "); |
| 406 value()->PrintTo(stream); | 406 value()->PrintTo(stream); |
| 407 } | 407 } |
| 408 | 408 |
| 409 | 409 |
| 410 void LStoreKeyed::PrintDataTo(StringStream* stream) { | 410 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
| 411 object()->PrintTo(stream); |
| 412 stream->Add("."); |
| 413 stream->Add(*String::cast(*name())->ToCString()); |
| 414 stream->Add(" <- "); |
| 415 value()->PrintTo(stream); |
| 416 } |
| 417 |
| 418 |
| 419 void LStoreKeyedFastElement::PrintDataTo(StringStream* stream) { |
| 411 object()->PrintTo(stream); | 420 object()->PrintTo(stream); |
| 412 stream->Add("["); | 421 stream->Add("["); |
| 413 key()->PrintTo(stream); | 422 key()->PrintTo(stream); |
| 414 stream->Add("] <- "); | 423 stream->Add("] <- "); |
| 415 value()->PrintTo(stream); | 424 value()->PrintTo(stream); |
| 416 } | 425 } |
| 417 | 426 |
| 418 | 427 |
| 428 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { |
| 429 object()->PrintTo(stream); |
| 430 stream->Add("["); |
| 431 key()->PrintTo(stream); |
| 432 stream->Add("] <- "); |
| 433 value()->PrintTo(stream); |
| 434 } |
| 435 |
| 436 |
| 419 void LChunk::AddInstruction(LInstruction* instr, HBasicBlock* block) { | 437 void LChunk::AddInstruction(LInstruction* instr, HBasicBlock* block) { |
| 420 LGap* gap = new LGap(block); | 438 LGap* gap = new LGap(block); |
| 421 int index = -1; | 439 int index = -1; |
| 422 if (instr->IsControl()) { | 440 if (instr->IsControl()) { |
| 423 instructions_.Add(gap); | 441 instructions_.Add(gap); |
| 424 index = instructions_.length(); | 442 index = instructions_.length(); |
| 425 instructions_.Add(instr); | 443 instructions_.Add(instr); |
| 426 } else { | 444 } else { |
| 427 index = instructions_.length(); | 445 index = instructions_.length(); |
| 428 instructions_.Add(instr); | 446 instructions_.Add(instr); |
| (...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1981 | 1999 |
| 1982 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2000 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 1983 HEnvironment* outer = current_block_->last_environment()->outer(); | 2001 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 1984 current_block_->UpdateEnvironment(outer); | 2002 current_block_->UpdateEnvironment(outer); |
| 1985 return NULL; | 2003 return NULL; |
| 1986 } | 2004 } |
| 1987 | 2005 |
| 1988 } } // namespace v8::internal | 2006 } } // namespace v8::internal |
| 1989 | 2007 |
| 1990 #endif // V8_TARGET_ARCH_X64 | 2008 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |