| 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 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1290 present_flags_(0), | 1290 present_flags_(0), |
| 1291 array_(NULL), | 1291 array_(NULL), |
| 1292 lists_(NULL), | 1292 lists_(NULL), |
| 1293 free_list_head_(kNil) { | 1293 free_list_head_(kNil) { |
| 1294 ResizeLists(kInitialSize, zone); | 1294 ResizeLists(kInitialSize, zone); |
| 1295 Resize(kInitialSize, zone); | 1295 Resize(kInitialSize, zone); |
| 1296 } | 1296 } |
| 1297 | 1297 |
| 1298 void Kill(GVNFlagSet flags); | 1298 void Kill(GVNFlagSet flags); |
| 1299 | 1299 |
| 1300 void KillAll(); |
| 1301 |
| 1300 void Add(HValue* value, Zone* zone) { | 1302 void Add(HValue* value, Zone* zone) { |
| 1301 present_flags_.Add(value->gvn_flags()); | 1303 present_flags_.Add(value->gvn_flags()); |
| 1302 Insert(value, zone); | 1304 Insert(value, zone); |
| 1303 } | 1305 } |
| 1304 | 1306 |
| 1305 HValue* Lookup(HValue* value) const; | 1307 HValue* Lookup(HValue* value) const; |
| 1306 | 1308 |
| 1307 HValueMap* Copy(Zone* zone) const { | 1309 HValueMap* Copy(Zone* zone) const { |
| 1308 return new(zone) HValueMap(zone, this); | 1310 return new(zone) HValueMap(zone, this); |
| 1309 } | 1311 } |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1527 const char* filename_; | 1529 const char* filename_; |
| 1528 HeapStringAllocator string_allocator_; | 1530 HeapStringAllocator string_allocator_; |
| 1529 StringStream trace_; | 1531 StringStream trace_; |
| 1530 int indent_; | 1532 int indent_; |
| 1531 }; | 1533 }; |
| 1532 | 1534 |
| 1533 | 1535 |
| 1534 } } // namespace v8::internal | 1536 } } // namespace v8::internal |
| 1535 | 1537 |
| 1536 #endif // V8_HYDROGEN_H_ | 1538 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |