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

Side by Side Diff: src/compiler/ast-graph-builder.h

Issue 1314473007: [turbofan] Remove usage of Unique<T> from graph. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased and fixed. Created 5 years, 3 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 | « no previous file | src/compiler/ast-graph-builder.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 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_AST_GRAPH_BUILDER_H_ 5 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_
6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ 6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_
7 7
8 #include "src/ast.h" 8 #include "src/ast.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/liveness-analyzer.h" 10 #include "src/compiler/liveness-analyzer.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 BitVector* GetVariablesAssignedInLoop(IterationStatement* stmt); 223 BitVector* GetVariablesAssignedInLoop(IterationStatement* stmt);
224 224
225 // Check if the given statement is an OSR entry. 225 // Check if the given statement is an OSR entry.
226 // If so, record the stack height into the compilation and return {true}. 226 // If so, record the stack height into the compilation and return {true}.
227 bool CheckOsrEntry(IterationStatement* stmt); 227 bool CheckOsrEntry(IterationStatement* stmt);
228 228
229 // Computes local variable liveness and replaces dead variables in 229 // Computes local variable liveness and replaces dead variables in
230 // frame states with the undefined values. 230 // frame states with the undefined values.
231 void ClearNonLiveSlotsInFrameStates(); 231 void ClearNonLiveSlotsInFrameStates();
232 232
233 // Helper to wrap a Handle<T> into a Unique<T>.
234 template <class T>
235 Unique<T> MakeUnique(Handle<T> object) {
236 return Unique<T>::CreateUninitialized(object);
237 }
238
239 Node** EnsureInputBufferSize(int size); 233 Node** EnsureInputBufferSize(int size);
240 234
241 // Named and keyed loads require a VectorSlotPair for successful lowering. 235 // Named and keyed loads require a VectorSlotPair for successful lowering.
242 VectorSlotPair CreateVectorSlotPair(FeedbackVectorICSlot slot) const; 236 VectorSlotPair CreateVectorSlotPair(FeedbackVectorICSlot slot) const;
243 237
244 // Determine which contexts need to be checked for extension objects that 238 // Determine which contexts need to be checked for extension objects that
245 // might shadow the optimistic declaration of dynamic lookup variables. 239 // might shadow the optimistic declaration of dynamic lookup variables.
246 uint32_t ComputeBitsetForDynamicGlobal(Variable* variable); 240 uint32_t ComputeBitsetForDynamicGlobal(Variable* variable);
247 uint32_t ComputeBitsetForDynamicContext(Variable* variable); 241 uint32_t ComputeBitsetForDynamicContext(Variable* variable);
248 242
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 554
561 // Prepare environment to be used as loop header. 555 // Prepare environment to be used as loop header.
562 void PrepareForLoop(BitVector* assigned, bool is_osr = false); 556 void PrepareForLoop(BitVector* assigned, bool is_osr = false);
563 }; 557 };
564 558
565 } // namespace compiler 559 } // namespace compiler
566 } // namespace internal 560 } // namespace internal
567 } // namespace v8 561 } // namespace v8
568 562
569 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ 563 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698