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

Side by Side Diff: src/compiler/node-properties.h

Issue 1420283009: [turbofan] Add support for storing to double fields. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_PROPERTIES_H_ 5 #ifndef V8_COMPILER_NODE_PROPERTIES_H_
6 #define V8_COMPILER_NODE_PROPERTIES_H_ 6 #define V8_COMPILER_NODE_PROPERTIES_H_
7 7
8 #include "src/compiler/node.h" 8 #include "src/compiler/node.h"
9 #include "src/types.h" 9 #include "src/types.h"
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 static void CollectControlProjections(Node* node, Node** proj, size_t count); 114 static void CollectControlProjections(Node* node, Node** proj, size_t count);
115 115
116 // --------------------------------------------------------------------------- 116 // ---------------------------------------------------------------------------
117 // Type. 117 // Type.
118 118
119 static bool IsTyped(Node* node) { return node->type() != nullptr; } 119 static bool IsTyped(Node* node) { return node->type() != nullptr; }
120 static Type* GetType(Node* node) { 120 static Type* GetType(Node* node) {
121 DCHECK(IsTyped(node)); 121 DCHECK(IsTyped(node));
122 return node->type(); 122 return node->type();
123 } 123 }
124 static Type* GetTypeOrAny(Node* node);
124 static void SetType(Node* node, Type* type) { 125 static void SetType(Node* node, Type* type) {
125 DCHECK_NOT_NULL(type); 126 DCHECK_NOT_NULL(type);
126 node->set_type(type); 127 node->set_type(type);
127 } 128 }
128 static void RemoveType(Node* node) { node->set_type(nullptr); } 129 static void RemoveType(Node* node) { node->set_type(nullptr); }
129 static bool AllValueInputsAreTyped(Node* node); 130 static bool AllValueInputsAreTyped(Node* node);
130 131
131 private: 132 private:
132 static inline bool IsInputRange(Edge edge, int first, int count); 133 static inline bool IsInputRange(Edge edge, int first, int count);
133 }; 134 };
134 135
135 } // namespace compiler 136 } // namespace compiler
136 } // namespace internal 137 } // namespace internal
137 } // namespace v8 138 } // namespace v8
138 139
139 #endif // V8_COMPILER_NODE_PROPERTIES_H_ 140 #endif // V8_COMPILER_NODE_PROPERTIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698