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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 int GetNextValueID(HValue* value) { | 276 int GetNextValueID(HValue* value) { |
277 values_.Add(value); | 277 values_.Add(value); |
278 return values_.length() - 1; | 278 return values_.length() - 1; |
279 } | 279 } |
280 HValue* LookupValue(int id) const { | 280 HValue* LookupValue(int id) const { |
281 if (id >= 0 && id < values_.length()) return values_[id]; | 281 if (id >= 0 && id < values_.length()) return values_[id]; |
282 return NULL; | 282 return NULL; |
283 } | 283 } |
284 | 284 |
285 #ifdef DEBUG | 285 #ifdef DEBUG |
286 void Verify() const; | 286 void Verify(bool do_full_verify) const; |
287 #endif | 287 #endif |
288 | 288 |
289 private: | 289 private: |
290 void Postorder(HBasicBlock* block, | 290 void Postorder(HBasicBlock* block, |
291 BitVector* visited, | 291 BitVector* visited, |
292 ZoneList<HBasicBlock*>* order, | 292 ZoneList<HBasicBlock*>* order, |
293 HBasicBlock* loop_header); | 293 HBasicBlock* loop_header); |
294 void PostorderLoopBlocks(HLoopInformation* loop, | 294 void PostorderLoopBlocks(HLoopInformation* loop, |
295 BitVector* visited, | 295 BitVector* visited, |
296 ZoneList<HBasicBlock*>* order, | 296 ZoneList<HBasicBlock*>* order, |
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1234 const char* filename_; | 1234 const char* filename_; |
1235 HeapStringAllocator string_allocator_; | 1235 HeapStringAllocator string_allocator_; |
1236 StringStream trace_; | 1236 StringStream trace_; |
1237 int indent_; | 1237 int indent_; |
1238 }; | 1238 }; |
1239 | 1239 |
1240 | 1240 |
1241 } } // namespace v8::internal | 1241 } } // namespace v8::internal |
1242 | 1242 |
1243 #endif // V8_HYDROGEN_H_ | 1243 #endif // V8_HYDROGEN_H_ |
OLD | NEW |