Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: src/compiler/node-aux-data.h

Issue 446963002: NodeAuxData needs a Zone, not a Graph. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compiler/node-aux-data-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_NODE_AUX_DATA_H_ 5 #ifndef V8_COMPILER_NODE_AUX_DATA_H_
6 #define V8_COMPILER_NODE_AUX_DATA_H_ 6 #define V8_COMPILER_NODE_AUX_DATA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "src/zone-allocator.h" 10 #include "src/zone-allocator.h"
11 11
12 namespace v8 { 12 namespace v8 {
13 namespace internal { 13 namespace internal {
14 namespace compiler { 14 namespace compiler {
15 15
16 // Forward declarations. 16 // Forward declarations.
17 class Graph; 17 class Graph;
18 class Node; 18 class Node;
19 19
20 template <class T> 20 template <class T>
21 class NodeAuxData { 21 class NodeAuxData {
22 public: 22 public:
23 inline explicit NodeAuxData(Graph* graph); 23 inline explicit NodeAuxData(Zone* zone);
24 24
25 inline void Set(Node* node, const T& data); 25 inline void Set(Node* node, const T& data);
26 inline T Get(Node* node); 26 inline T Get(Node* node);
27 27
28 private: 28 private:
29 typedef zone_allocator<T> ZoneAllocator; 29 typedef zone_allocator<T> ZoneAllocator;
30 typedef std::vector<T, ZoneAllocator> TZoneVector; 30 typedef std::vector<T, ZoneAllocator> TZoneVector;
31 31
32 TZoneVector aux_data_; 32 TZoneVector aux_data_;
33 }; 33 };
34 } 34 }
35 } 35 }
36 } // namespace v8::internal::compiler 36 } // namespace v8::internal::compiler
37 37
38 #endif 38 #endif
OLDNEW
« no previous file with comments | « no previous file | src/compiler/node-aux-data-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698