| 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 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1235 // with a given hash. Colliding elements are stored in linked lists. | 1235 // with a given hash. Colliding elements are stored in linked lists. |
| 1236 HValueMapListElement* lists_; // The linked lists containing hash collisions. | 1236 HValueMapListElement* lists_; // The linked lists containing hash collisions. |
| 1237 int free_list_head_; // Unused elements in lists_ are on the free list. | 1237 int free_list_head_; // Unused elements in lists_ are on the free list. |
| 1238 }; | 1238 }; |
| 1239 | 1239 |
| 1240 | 1240 |
| 1241 class HSideEffectMap BASE_EMBEDDED { | 1241 class HSideEffectMap BASE_EMBEDDED { |
| 1242 public: | 1242 public: |
| 1243 HSideEffectMap(); | 1243 HSideEffectMap(); |
| 1244 explicit HSideEffectMap(HSideEffectMap* other); | 1244 explicit HSideEffectMap(HSideEffectMap* other); |
| 1245 HSideEffectMap& operator= (const HSideEffectMap& other); |
| 1245 | 1246 |
| 1246 void Kill(GVNFlagSet flags); | 1247 void Kill(GVNFlagSet flags); |
| 1247 | 1248 |
| 1248 void Store(GVNFlagSet flags, HInstruction* instr); | 1249 void Store(GVNFlagSet flags, HInstruction* instr); |
| 1249 | 1250 |
| 1250 bool IsEmpty() const { return count_ == 0; } | 1251 bool IsEmpty() const { return count_ == 0; } |
| 1251 | 1252 |
| 1252 inline HInstruction* operator[](int i) const { | 1253 inline HInstruction* operator[](int i) const { |
| 1253 ASSERT(0 <= i); | 1254 ASSERT(0 <= i); |
| 1254 ASSERT(i < kNumberOfTrackedSideEffects); | 1255 ASSERT(i < kNumberOfTrackedSideEffects); |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1413 const char* filename_; | 1414 const char* filename_; |
| 1414 HeapStringAllocator string_allocator_; | 1415 HeapStringAllocator string_allocator_; |
| 1415 StringStream trace_; | 1416 StringStream trace_; |
| 1416 int indent_; | 1417 int indent_; |
| 1417 }; | 1418 }; |
| 1418 | 1419 |
| 1419 | 1420 |
| 1420 } } // namespace v8::internal | 1421 } } // namespace v8::internal |
| 1421 | 1422 |
| 1422 #endif // V8_HYDROGEN_H_ | 1423 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |