| 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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1318 present_flags_(0), | 1318 present_flags_(0), |
| 1319 array_(NULL), | 1319 array_(NULL), |
| 1320 lists_(NULL), | 1320 lists_(NULL), |
| 1321 free_list_head_(kNil) { | 1321 free_list_head_(kNil) { |
| 1322 ResizeLists(kInitialSize, zone); | 1322 ResizeLists(kInitialSize, zone); |
| 1323 Resize(kInitialSize, zone); | 1323 Resize(kInitialSize, zone); |
| 1324 } | 1324 } |
| 1325 | 1325 |
| 1326 void Kill(GVNFlagSet flags); | 1326 void Kill(GVNFlagSet flags); |
| 1327 | 1327 |
| 1328 void KillAll(); |
| 1329 |
| 1328 void Add(HValue* value, Zone* zone) { | 1330 void Add(HValue* value, Zone* zone) { |
| 1329 present_flags_.Add(value->gvn_flags()); | 1331 present_flags_.Add(value->gvn_flags()); |
| 1330 Insert(value, zone); | 1332 Insert(value, zone); |
| 1331 } | 1333 } |
| 1332 | 1334 |
| 1333 HValue* Lookup(HValue* value) const; | 1335 HValue* Lookup(HValue* value) const; |
| 1334 | 1336 |
| 1335 HValueMap* Copy(Zone* zone) const { | 1337 HValueMap* Copy(Zone* zone) const { |
| 1336 return new(zone) HValueMap(zone, this); | 1338 return new(zone) HValueMap(zone, this); |
| 1337 } | 1339 } |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1555 const char* filename_; | 1557 const char* filename_; |
| 1556 HeapStringAllocator string_allocator_; | 1558 HeapStringAllocator string_allocator_; |
| 1557 StringStream trace_; | 1559 StringStream trace_; |
| 1558 int indent_; | 1560 int indent_; |
| 1559 }; | 1561 }; |
| 1560 | 1562 |
| 1561 | 1563 |
| 1562 } } // namespace v8::internal | 1564 } } // namespace v8::internal |
| 1563 | 1565 |
| 1564 #endif // V8_HYDROGEN_H_ | 1566 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |