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

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

Issue 17572011: Split HPhase for Lithium and Hydrogen using common CompilationPhase base. (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: Created 7 years, 5 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
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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 474
475 void LTransitionElementsKind::PrintDataTo(StringStream* stream) { 475 void LTransitionElementsKind::PrintDataTo(StringStream* stream) {
476 object()->PrintTo(stream); 476 object()->PrintTo(stream);
477 stream->Add(" %p -> %p", *original_map(), *transitioned_map()); 477 stream->Add(" %p -> %p", *original_map(), *transitioned_map());
478 } 478 }
479 479
480 480
481 LPlatformChunk* LChunkBuilder::Build() { 481 LPlatformChunk* LChunkBuilder::Build() {
482 ASSERT(is_unused()); 482 ASSERT(is_unused());
483 chunk_ = new(zone()) LPlatformChunk(info(), graph()); 483 chunk_ = new(zone()) LPlatformChunk(info(), graph());
484 HPhase phase("L_Building chunk", chunk_); 484 LPhase phase("L_Building chunk", chunk_);
485 status_ = BUILDING; 485 status_ = BUILDING;
486 486
487 // Reserve the first spill slot for the state of dynamic alignment. 487 // Reserve the first spill slot for the state of dynamic alignment.
488 if (info()->IsOptimizing()) { 488 if (info()->IsOptimizing()) {
489 int alignment_state_index = chunk_->GetNextSpillIndex(false); 489 int alignment_state_index = chunk_->GetNextSpillIndex(false);
490 ASSERT_EQ(alignment_state_index, 0); 490 ASSERT_EQ(alignment_state_index, 0);
491 USE(alignment_state_index); 491 USE(alignment_state_index);
492 } 492 }
493 493
494 const ZoneList<HBasicBlock*>* blocks = graph()->blocks(); 494 const ZoneList<HBasicBlock*>* blocks = graph()->blocks();
(...skipping 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after
2814 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2814 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2815 LOperand* object = UseRegister(instr->object()); 2815 LOperand* object = UseRegister(instr->object());
2816 LOperand* index = UseTempRegister(instr->index()); 2816 LOperand* index = UseTempRegister(instr->index());
2817 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2817 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2818 } 2818 }
2819 2819
2820 2820
2821 } } // namespace v8::internal 2821 } } // namespace v8::internal
2822 2822
2823 #endif // V8_TARGET_ARCH_IA32 2823 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/compiler.cc ('K') | « src/ia32/lithium-codegen-ia32.cc ('k') | src/lithium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698