| 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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 } | 679 } |
| 680 | 680 |
| 681 void AddInlinedClosure(Handle<JSFunction> closure) { | 681 void AddInlinedClosure(Handle<JSFunction> closure) { |
| 682 inlined_closures_.Add(closure, zone()); | 682 inlined_closures_.Add(closure, zone()); |
| 683 } | 683 } |
| 684 | 684 |
| 685 Zone* zone() const { return info_->zone(); } | 685 Zone* zone() const { return info_->zone(); } |
| 686 | 686 |
| 687 Handle<Code> Codegen(Code::Kind kind); | 687 Handle<Code> Codegen(Code::Kind kind); |
| 688 | 688 |
| 689 void set_allocated_double_registers(BitVector* allocated_registers); |
| 690 BitVector* allocated_double_registers() { |
| 691 return allocated_double_registers_; |
| 692 } |
| 693 |
| 689 protected: | 694 protected: |
| 690 LChunk(CompilationInfo* info, HGraph* graph) | 695 LChunk(CompilationInfo* info, HGraph* graph); |
| 691 : spill_slot_count_(0), | |
| 692 info_(info), | |
| 693 graph_(graph), | |
| 694 instructions_(32, graph->zone()), | |
| 695 pointer_maps_(8, graph->zone()), | |
| 696 inlined_closures_(1, graph->zone()) { } | |
| 697 | 696 |
| 698 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); | 697 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); |
| 699 | 698 |
| 700 int spill_slot_count_; | 699 int spill_slot_count_; |
| 701 | 700 |
| 702 private: | 701 private: |
| 703 CompilationInfo* info_; | 702 CompilationInfo* info_; |
| 704 HGraph* const graph_; | 703 HGraph* const graph_; |
| 704 BitVector* allocated_double_registers_; |
| 705 ZoneList<LInstruction*> instructions_; | 705 ZoneList<LInstruction*> instructions_; |
| 706 ZoneList<LPointerMap*> pointer_maps_; | 706 ZoneList<LPointerMap*> pointer_maps_; |
| 707 ZoneList<Handle<JSFunction> > inlined_closures_; | 707 ZoneList<Handle<JSFunction> > inlined_closures_; |
| 708 }; | 708 }; |
| 709 | 709 |
| 710 | 710 |
| 711 int ElementsKindToShiftSize(ElementsKind elements_kind); | 711 int ElementsKindToShiftSize(ElementsKind elements_kind); |
| 712 | 712 |
| 713 enum NumberUntagDMode { |
| 714 NUMBER_CANDIDATE_IS_SMI, |
| 715 NUMBER_CANDIDATE_IS_SMI_OR_HOLE, |
| 716 NUMBER_CANDIDATE_IS_SMI_CONVERT_HOLE, |
| 717 NUMBER_CANDIDATE_IS_ANY_TAGGED |
| 718 }; |
| 719 |
| 713 | 720 |
| 714 } } // namespace v8::internal | 721 } } // namespace v8::internal |
| 715 | 722 |
| 716 #endif // V8_LITHIUM_H_ | 723 #endif // V8_LITHIUM_H_ |
| OLD | NEW |