OLD | NEW |
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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 const ZoneList<Handle<JSFunction> >* inlined_closures() const { | 675 const ZoneList<Handle<JSFunction> >* inlined_closures() const { |
676 return &inlined_closures_; | 676 return &inlined_closures_; |
677 } | 677 } |
678 | 678 |
679 void AddInlinedClosure(Handle<JSFunction> closure) { | 679 void AddInlinedClosure(Handle<JSFunction> closure) { |
680 inlined_closures_.Add(closure, zone()); | 680 inlined_closures_.Add(closure, zone()); |
681 } | 681 } |
682 | 682 |
683 Zone* zone() const { return info_->zone(); } | 683 Zone* zone() const { return info_->zone(); } |
684 | 684 |
685 Handle<Code> Codegen(Code::Kind kind); | 685 Handle<Code> Codegen(); |
686 | 686 |
687 protected: | 687 protected: |
688 LChunk(CompilationInfo* info, HGraph* graph) | 688 LChunk(CompilationInfo* info, HGraph* graph) |
689 : spill_slot_count_(0), | 689 : spill_slot_count_(0), |
690 info_(info), | 690 info_(info), |
691 graph_(graph), | 691 graph_(graph), |
692 instructions_(32, graph->zone()), | 692 instructions_(32, graph->zone()), |
693 pointer_maps_(8, graph->zone()), | 693 pointer_maps_(8, graph->zone()), |
694 inlined_closures_(1, graph->zone()) { } | 694 inlined_closures_(1, graph->zone()) { } |
695 | 695 |
696 int spill_slot_count_; | 696 int spill_slot_count_; |
697 | 697 |
698 private: | 698 private: |
699 CompilationInfo* info_; | 699 CompilationInfo* info_; |
700 HGraph* const graph_; | 700 HGraph* const graph_; |
701 ZoneList<LInstruction*> instructions_; | 701 ZoneList<LInstruction*> instructions_; |
702 ZoneList<LPointerMap*> pointer_maps_; | 702 ZoneList<LPointerMap*> pointer_maps_; |
703 ZoneList<Handle<JSFunction> > inlined_closures_; | 703 ZoneList<Handle<JSFunction> > inlined_closures_; |
704 }; | 704 }; |
705 | 705 |
706 | 706 |
707 int ElementsKindToShiftSize(ElementsKind elements_kind); | 707 int ElementsKindToShiftSize(ElementsKind elements_kind); |
708 | 708 |
709 | 709 |
710 } } // namespace v8::internal | 710 } } // namespace v8::internal |
711 | 711 |
712 #endif // V8_LITHIUM_H_ | 712 #endif // V8_LITHIUM_H_ |
OLD | NEW |