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

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

Issue 9535009: Add flag --trace-phase to selectively produce IR trace output. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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/ia32/lithium-codegen-ia32.cc ('k') | src/lithium-allocator.cc » ('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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 int index = GetNextSpillIndex(is_double); 381 int index = GetNextSpillIndex(is_double);
382 if (is_double) { 382 if (is_double) {
383 return LDoubleStackSlot::Create(index); 383 return LDoubleStackSlot::Create(index);
384 } else { 384 } else {
385 return LStackSlot::Create(index); 385 return LStackSlot::Create(index);
386 } 386 }
387 } 387 }
388 388
389 389
390 void LChunk::MarkEmptyBlocks() { 390 void LChunk::MarkEmptyBlocks() {
391 HPhase phase("Mark empty blocks", this); 391 HPhase phase("L Mark empty blocks", this);
392 for (int i = 0; i < graph()->blocks()->length(); ++i) { 392 for (int i = 0; i < graph()->blocks()->length(); ++i) {
393 HBasicBlock* block = graph()->blocks()->at(i); 393 HBasicBlock* block = graph()->blocks()->at(i);
394 int first = block->first_instruction_index(); 394 int first = block->first_instruction_index();
395 int last = block->last_instruction_index(); 395 int last = block->last_instruction_index();
396 LInstruction* first_instr = instructions()->at(first); 396 LInstruction* first_instr = instructions()->at(first);
397 LInstruction* last_instr = instructions()->at(last); 397 LInstruction* last_instr = instructions()->at(last);
398 398
399 LLabel* label = LLabel::cast(first_instr); 399 LLabel* label = LLabel::cast(first_instr);
400 if (last_instr->IsGoto()) { 400 if (last_instr->IsGoto()) {
401 LGoto* goto_instr = LGoto::cast(last_instr); 401 LGoto* goto_instr = LGoto::cast(last_instr);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 544
545 Representation LChunk::LookupLiteralRepresentation( 545 Representation LChunk::LookupLiteralRepresentation(
546 LConstantOperand* operand) const { 546 LConstantOperand* operand) const {
547 return graph_->LookupValue(operand->index())->representation(); 547 return graph_->LookupValue(operand->index())->representation();
548 } 548 }
549 549
550 550
551 LChunk* LChunkBuilder::Build() { 551 LChunk* LChunkBuilder::Build() {
552 ASSERT(is_unused()); 552 ASSERT(is_unused());
553 chunk_ = new(zone()) LChunk(info(), graph()); 553 chunk_ = new(zone()) LChunk(info(), graph());
554 HPhase phase("Building chunk", chunk_); 554 HPhase phase("L Building chunk", chunk_);
555 status_ = BUILDING; 555 status_ = BUILDING;
556 const ZoneList<HBasicBlock*>* blocks = graph()->blocks(); 556 const ZoneList<HBasicBlock*>* blocks = graph()->blocks();
557 for (int i = 0; i < blocks->length(); i++) { 557 for (int i = 0; i < blocks->length(); i++) {
558 HBasicBlock* next = NULL; 558 HBasicBlock* next = NULL;
559 if (i < blocks->length() - 1) next = blocks->at(i + 1); 559 if (i < blocks->length() - 1) next = blocks->at(i + 1);
560 DoBasicBlock(blocks->at(i), next); 560 DoBasicBlock(blocks->at(i), next);
561 if (is_aborted()) return NULL; 561 if (is_aborted()) return NULL;
562 } 562 }
563 status_ = DONE; 563 status_ = DONE;
564 return chunk_; 564 return chunk_;
(...skipping 1878 matching lines...) Expand 10 before | Expand all | Expand 10 after
2443 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2443 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2444 LOperand* object = UseRegister(instr->object()); 2444 LOperand* object = UseRegister(instr->object());
2445 LOperand* index = UseTempRegister(instr->index()); 2445 LOperand* index = UseTempRegister(instr->index());
2446 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2446 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2447 } 2447 }
2448 2448
2449 2449
2450 } } // namespace v8::internal 2450 } } // namespace v8::internal
2451 2451
2452 #endif // V8_TARGET_ARCH_IA32 2452 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/lithium-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698