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

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

Issue 2812233002: [turbofan] Use unreliable LOAD_IC feedback for Array.prototype.push. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/compiler/node-properties.cc » ('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 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/compiler/types.h" 9 #include "src/compiler/types.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // IfFalse, IfSuccess, IfException, IfValue and IfDefault. 122 // IfFalse, IfSuccess, IfException, IfValue and IfDefault.
123 // - Branch: [ IfTrue, IfFalse ] 123 // - Branch: [ IfTrue, IfFalse ]
124 // - Call : [ IfSuccess, IfException ] 124 // - Call : [ IfSuccess, IfException ]
125 // - Switch: [ IfValue, ..., IfDefault ] 125 // - Switch: [ IfValue, ..., IfDefault ]
126 static void CollectControlProjections(Node* node, Node** proj, size_t count); 126 static void CollectControlProjections(Node* node, Node** proj, size_t count);
127 127
128 // Checks if two nodes are the same, looking past {CheckHeapObject}. 128 // Checks if two nodes are the same, looking past {CheckHeapObject}.
129 static bool IsSame(Node* a, Node* b); 129 static bool IsSame(Node* a, Node* b);
130 130
131 // Walks up the {effect} chain to find a witness that provides map 131 // Walks up the {effect} chain to find a witness that provides map
132 // information about the {receiver}. Doesn't look through potentially 132 // information about the {receiver}. Can look through potentially
133 // side effecting nodes. 133 // side effecting nodes.
134 static bool InferReceiverMaps(Node* receiver, Node* effect, 134 enum InferReceiverMapsResult {
135 ZoneHandleSet<Map>* maps_return); 135 kNoReceiverMaps, // No receiver maps inferred.
136 kReliableReceiverMaps, // Receiver maps can be trusted.
137 kUnreliableReceiverMaps // Receiver maps might have changed (side-effect).
138 };
139 static InferReceiverMapsResult InferReceiverMaps(
140 Node* receiver, Node* effect, ZoneHandleSet<Map>* maps_return);
136 141
137 // --------------------------------------------------------------------------- 142 // ---------------------------------------------------------------------------
138 // Context. 143 // Context.
139 144
140 // Try to retrieve the specialization context from the given {node}, 145 // Try to retrieve the specialization context from the given {node},
141 // optionally utilizing the knowledge about the (outermost) function 146 // optionally utilizing the knowledge about the (outermost) function
142 // {context}. 147 // {context}.
143 static MaybeHandle<Context> GetSpecializationContext( 148 static MaybeHandle<Context> GetSpecializationContext(
144 Node* node, MaybeHandle<Context> context = MaybeHandle<Context>()); 149 Node* node, MaybeHandle<Context> context = MaybeHandle<Context>());
145 150
(...skipping 20 matching lines...) Expand all
166 171
167 private: 172 private:
168 static inline bool IsInputRange(Edge edge, int first, int count); 173 static inline bool IsInputRange(Edge edge, int first, int count);
169 }; 174 };
170 175
171 } // namespace compiler 176 } // namespace compiler
172 } // namespace internal 177 } // namespace internal
173 } // namespace v8 178 } // namespace v8
174 179
175 #endif // V8_COMPILER_NODE_PROPERTIES_H_ 180 #endif // V8_COMPILER_NODE_PROPERTIES_H_
OLDNEW
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/compiler/node-properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698