| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 | 877 |
| 878 int inlined_count_; | 878 int inlined_count_; |
| 879 | 879 |
| 880 friend class FunctionState; // Pushes and pops the state stack. | 880 friend class FunctionState; // Pushes and pops the state stack. |
| 881 friend class AstContext; // Pushes and pops the AST context stack. | 881 friend class AstContext; // Pushes and pops the AST context stack. |
| 882 | 882 |
| 883 DISALLOW_COPY_AND_ASSIGN(HGraphBuilder); | 883 DISALLOW_COPY_AND_ASSIGN(HGraphBuilder); |
| 884 }; | 884 }; |
| 885 | 885 |
| 886 | 886 |
| 887 class HEffectSet; |
| 888 |
| 889 |
| 887 class HValueMap: public ZoneObject { | 890 class HValueMap: public ZoneObject { |
| 888 public: | 891 public: |
| 889 HValueMap() | 892 HValueMap() |
| 890 : array_size_(0), | 893 : array_size_(0), |
| 891 lists_size_(0), | 894 lists_size_(0), |
| 892 count_(0), | 895 count_(0), |
| 893 present_flags_(0), | 896 present_flags_(0), |
| 894 array_(NULL), | 897 array_(NULL), |
| 895 lists_(NULL), | 898 lists_(NULL), |
| 896 free_list_head_(kNil) { | 899 free_list_head_(kNil) { |
| 897 ResizeLists(kInitialSize); | 900 ResizeLists(kInitialSize); |
| 898 Resize(kInitialSize); | 901 Resize(kInitialSize); |
| 899 } | 902 } |
| 900 | 903 |
| 901 void Kill(int flags); | 904 void Kill(const HEffectSet& effects); |
| 902 | 905 |
| 903 void Add(HValue* value) { | 906 void Add(HValue* value) { |
| 904 present_flags_ |= value->flags(); | 907 present_flags_ |= value->flags(); |
| 905 Insert(value); | 908 Insert(value); |
| 906 } | 909 } |
| 907 | 910 |
| 908 HValue* Lookup(HValue* value) const; | 911 HValue* Lookup(HValue* value) const; |
| 909 HValueMap* Copy() const { return new HValueMap(this); } | 912 HValueMap* Copy() const { return new HValueMap(this); } |
| 910 | 913 |
| 911 private: | 914 private: |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1094 const char* filename_; | 1097 const char* filename_; |
| 1095 HeapStringAllocator string_allocator_; | 1098 HeapStringAllocator string_allocator_; |
| 1096 StringStream trace_; | 1099 StringStream trace_; |
| 1097 int indent_; | 1100 int indent_; |
| 1098 }; | 1101 }; |
| 1099 | 1102 |
| 1100 | 1103 |
| 1101 } } // namespace v8::internal | 1104 } } // namespace v8::internal |
| 1102 | 1105 |
| 1103 #endif // V8_HYDROGEN_H_ | 1106 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |