|  | // Copyright 2020 the V8 project authors. All rights reserved. | 
|  | // Use of this source code is governed by a BSD-style license that can be | 
|  | // found in the LICENSE file. | 
|  |  | 
|  | #ifndef V8_COMPILER_GRAPH_ZONE_TRAITS_H_ | 
|  | #define V8_COMPILER_GRAPH_ZONE_TRAITS_H_ | 
|  |  | 
|  | #include "src/zone/zone-type-traits.h" | 
|  |  | 
|  | namespace v8 { | 
|  | namespace internal { | 
|  | namespace compiler { | 
|  |  | 
|  | // Forward declarations. | 
|  | class Node; | 
|  |  | 
|  | // GraphZoneTraits provides typedefs for zone pointer types that are either | 
|  | // compressed or not depending on the kCompressGraphZone flag. | 
|  | using GraphZoneTraits = ZoneTypeTraits<kCompressGraphZone>; | 
|  |  | 
|  | // ZoneNodePtr is a possibly compressed pointer to a Node allocated in a zone | 
|  | // memory. | 
|  | using ZoneNodePtr = GraphZoneTraits::Ptr<Node>; | 
|  |  | 
|  | }  // namespace compiler | 
|  | }  // namespace internal | 
|  | }  // namespace v8 | 
|  |  | 
|  | #endif  // V8_COMPILER_GRAPH_ZONE_TRAITS_H_ |