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

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

Issue 637313002: [turbofan] Output file for C1 visualizer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix Created 6 years, 2 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 | « src/compiler/node-aux-data.h ('k') | src/compiler/pipeline.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_INL_H_ 5 #ifndef V8_COMPILER_NODE_AUX_DATA_INL_H_
6 #define V8_COMPILER_NODE_AUX_DATA_INL_H_ 6 #define V8_COMPILER_NODE_AUX_DATA_INL_H_
7 7
8 #include "src/compiler/graph.h" 8 #include "src/compiler/graph.h"
9 #include "src/compiler/node.h" 9 #include "src/compiler/node.h"
10 #include "src/compiler/node-aux-data.h" 10 #include "src/compiler/node-aux-data.h"
(...skipping 11 matching lines...) Expand all
22 void NodeAuxData<T>::Set(Node* node, const T& data) { 22 void NodeAuxData<T>::Set(Node* node, const T& data) {
23 int id = node->id(); 23 int id = node->id();
24 if (id >= static_cast<int>(aux_data_.size())) { 24 if (id >= static_cast<int>(aux_data_.size())) {
25 aux_data_.resize(id + 1); 25 aux_data_.resize(id + 1);
26 } 26 }
27 aux_data_[id] = data; 27 aux_data_[id] = data;
28 } 28 }
29 29
30 30
31 template <class T> 31 template <class T>
32 T NodeAuxData<T>::Get(Node* node) { 32 T NodeAuxData<T>::Get(Node* node) const {
33 int id = node->id(); 33 int id = node->id();
34 if (id >= static_cast<int>(aux_data_.size())) { 34 if (id >= static_cast<int>(aux_data_.size())) {
35 return T(); 35 return T();
36 } 36 }
37 return aux_data_[id]; 37 return aux_data_[id];
38 } 38 }
39 } 39 }
40 } 40 }
41 } // namespace v8::internal::compiler 41 } // namespace v8::internal::compiler
42 42
43 #endif 43 #endif
OLDNEW
« no previous file with comments | « src/compiler/node-aux-data.h ('k') | src/compiler/pipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698