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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 int local_count_; | 696 int local_count_; |
697 HEnvironment* outer_; | 697 HEnvironment* outer_; |
698 HEnterInlined* entry_; | 698 HEnterInlined* entry_; |
699 int pop_count_; | 699 int pop_count_; |
700 int push_count_; | 700 int push_count_; |
701 BailoutId ast_id_; | 701 BailoutId ast_id_; |
702 Zone* zone_; | 702 Zone* zone_; |
703 }; | 703 }; |
704 | 704 |
705 | 705 |
706 class HInferRepresentation BASE_EMBEDDED { | |
707 public: | |
708 explicit HInferRepresentation(HGraph* graph) | |
709 : graph_(graph), | |
710 worklist_(8, graph->zone()), | |
711 in_worklist_(graph->GetMaximumValueID(), graph->zone()) { } | |
712 | |
713 void Analyze(); | |
714 void AddToWorklist(HValue* current); | |
715 | |
716 private: | |
717 Zone* zone() const { return graph_->zone(); } | |
718 | |
719 HGraph* graph_; | |
720 ZoneList<HValue*> worklist_; | |
721 BitVector in_worklist_; | |
722 }; | |
723 | |
724 | |
725 class HOptimizedGraphBuilder; | 706 class HOptimizedGraphBuilder; |
726 | 707 |
727 enum ArgumentsAllowedFlag { | 708 enum ArgumentsAllowedFlag { |
728 ARGUMENTS_NOT_ALLOWED, | 709 ARGUMENTS_NOT_ALLOWED, |
729 ARGUMENTS_ALLOWED | 710 ARGUMENTS_ALLOWED |
730 }; | 711 }; |
731 | 712 |
732 | 713 |
733 class HIfContinuation; | 714 class HIfContinuation; |
734 | 715 |
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2052 EmbeddedVector<char, 64> filename_; | 2033 EmbeddedVector<char, 64> filename_; |
2053 HeapStringAllocator string_allocator_; | 2034 HeapStringAllocator string_allocator_; |
2054 StringStream trace_; | 2035 StringStream trace_; |
2055 int indent_; | 2036 int indent_; |
2056 }; | 2037 }; |
2057 | 2038 |
2058 | 2039 |
2059 } } // namespace v8::internal | 2040 } } // namespace v8::internal |
2060 | 2041 |
2061 #endif // V8_HYDROGEN_H_ | 2042 #endif // V8_HYDROGEN_H_ |
OLD | NEW |