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

Side by Side Diff: src/arm/lithium-arm.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, 6 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
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | src/compiler.h » ('J')
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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 return LDoubleStackSlot::Create(index, zone()); 444 return LDoubleStackSlot::Create(index, zone());
445 } else { 445 } else {
446 return LStackSlot::Create(index, zone()); 446 return LStackSlot::Create(index, zone());
447 } 447 }
448 } 448 }
449 449
450 450
451 LPlatformChunk* LChunkBuilder::Build() { 451 LPlatformChunk* LChunkBuilder::Build() {
452 ASSERT(is_unused()); 452 ASSERT(is_unused());
453 chunk_ = new(zone()) LPlatformChunk(info(), graph()); 453 chunk_ = new(zone()) LPlatformChunk(info(), graph());
454 HPhase phase("L_Building chunk", chunk_); 454 LPhase phase("L_Building chunk", chunk_);
455 status_ = BUILDING; 455 status_ = BUILDING;
456 const ZoneList<HBasicBlock*>* blocks = graph()->blocks(); 456 const ZoneList<HBasicBlock*>* blocks = graph()->blocks();
457 for (int i = 0; i < blocks->length(); i++) { 457 for (int i = 0; i < blocks->length(); i++) {
458 HBasicBlock* next = NULL; 458 HBasicBlock* next = NULL;
459 if (i < blocks->length() - 1) next = blocks->at(i + 1); 459 if (i < blocks->length() - 1) next = blocks->at(i + 1);
460 DoBasicBlock(blocks->at(i), next); 460 DoBasicBlock(blocks->at(i), next);
461 if (is_aborted()) return NULL; 461 if (is_aborted()) return NULL;
462 } 462 }
463 status_ = DONE; 463 status_ = DONE;
464 return chunk_; 464 return chunk_;
(...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after
2662 2662
2663 2663
2664 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2664 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2665 LOperand* object = UseRegister(instr->object()); 2665 LOperand* object = UseRegister(instr->object());
2666 LOperand* index = UseRegister(instr->index()); 2666 LOperand* index = UseRegister(instr->index());
2667 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2667 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2668 } 2668 }
2669 2669
2670 2670
2671 } } // namespace v8::internal 2671 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | src/compiler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698