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

Side by Side Diff: src/lithium.h

Issue 10701157: Rename LChunkBase to LChunk, LChunk to LPlatformChunk and remove some unneeded explicit constructor… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/lithium.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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 void SkipUninteresting() { 615 void SkipUninteresting() {
616 while (current_iterator_.env() != NULL && current_iterator_.Done()) { 616 while (current_iterator_.env() != NULL && current_iterator_.Done()) {
617 current_iterator_ = ShallowIterator(current_iterator_.env()->outer()); 617 current_iterator_ = ShallowIterator(current_iterator_.env()->outer());
618 } 618 }
619 } 619 }
620 620
621 ShallowIterator current_iterator_; 621 ShallowIterator current_iterator_;
622 }; 622 };
623 623
624 624
625 class LChunk; 625 class LPlatformChunk;
626 class LGap; 626 class LGap;
627 class LLabel; 627 class LLabel;
628 628
629 // Superclass providing data and behavior common to all the 629 // Superclass providing data and behavior common to all the
630 // arch-specific LChunk classes. 630 // arch-specific LPlatformChunk classes.
631 class LChunkBase: public ZoneObject { 631 class LChunk: public ZoneObject {
632 public: 632 public:
633 static LChunkBase* NewChunk(HGraph* graph); 633 static LChunk* NewChunk(HGraph* graph);
634 634
635 void AddInstruction(LInstruction* instruction, HBasicBlock* block); 635 void AddInstruction(LInstruction* instruction, HBasicBlock* block);
636 LConstantOperand* DefineConstantOperand(HConstant* constant); 636 LConstantOperand* DefineConstantOperand(HConstant* constant);
637 HConstant* LookupConstant(LConstantOperand* operand) const; 637 HConstant* LookupConstant(LConstantOperand* operand) const;
638 Representation LookupLiteralRepresentation(LConstantOperand* operand) const; 638 Representation LookupLiteralRepresentation(LConstantOperand* operand) const;
639 639
640 int ParameterAt(int index); 640 int ParameterAt(int index);
641 int GetParameterStackSlot(int index) const; 641 int GetParameterStackSlot(int index) const;
642 int spill_slot_count() const { return spill_slot_count_; } 642 int spill_slot_count() const { return spill_slot_count_; }
643 CompilationInfo* info() const { return info_; } 643 CompilationInfo* info() const { return info_; }
(...skipping 15 matching lines...) Expand all
659 659
660 void AddInlinedClosure(Handle<JSFunction> closure) { 660 void AddInlinedClosure(Handle<JSFunction> closure) {
661 inlined_closures_.Add(closure, zone()); 661 inlined_closures_.Add(closure, zone());
662 } 662 }
663 663
664 Zone* zone() const { return info_->zone(); } 664 Zone* zone() const { return info_->zone(); }
665 665
666 Handle<Code> Codegen(); 666 Handle<Code> Codegen();
667 667
668 protected: 668 protected:
669 LChunkBase(CompilationInfo* info, HGraph* graph) 669 LChunk(CompilationInfo* info, HGraph* graph)
670 : spill_slot_count_(0), 670 : spill_slot_count_(0),
671 info_(info), 671 info_(info),
672 graph_(graph), 672 graph_(graph),
673 instructions_(32, graph->zone()), 673 instructions_(32, graph->zone()),
674 pointer_maps_(8, graph->zone()), 674 pointer_maps_(8, graph->zone()),
675 inlined_closures_(1, graph->zone()) { } 675 inlined_closures_(1, graph->zone()) { }
676 676
677 int spill_slot_count_; 677 int spill_slot_count_;
678 678
679 private: 679 private:
680 CompilationInfo* info_; 680 CompilationInfo* info_;
681 HGraph* const graph_; 681 HGraph* const graph_;
682 ZoneList<LInstruction*> instructions_; 682 ZoneList<LInstruction*> instructions_;
683 ZoneList<LPointerMap*> pointer_maps_; 683 ZoneList<LPointerMap*> pointer_maps_;
684 ZoneList<Handle<JSFunction> > inlined_closures_; 684 ZoneList<Handle<JSFunction> > inlined_closures_;
685 }; 685 };
686 686
687 687
688 int ElementsKindToShiftSize(ElementsKind elements_kind); 688 int ElementsKindToShiftSize(ElementsKind elements_kind);
689 689
690 690
691 } } // namespace v8::internal 691 } } // namespace v8::internal
692 692
693 #endif // V8_LITHIUM_H_ 693 #endif // V8_LITHIUM_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698