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

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

Issue 981243002: [turbofan] Introduce JSStackCheck operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 5 years, 9 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 10
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, 253 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole,
254 BailoutId bailout_id); 254 BailoutId bailout_id);
255 255
256 // Builders for non-local control flow. 256 // Builders for non-local control flow.
257 Node* BuildReturn(Node* return_value); 257 Node* BuildReturn(Node* return_value);
258 Node* BuildThrow(Node* exception_value); 258 Node* BuildThrow(Node* exception_value);
259 259
260 // Builders for binary operations. 260 // Builders for binary operations.
261 Node* BuildBinaryOp(Node* left, Node* right, Token::Value op); 261 Node* BuildBinaryOp(Node* left, Node* right, Token::Value op);
262 262
263 // Builder for stack-check guards.
264 Node* BuildStackCheck();
265
266 // Check if the given statement is an OSR entry. 263 // Check if the given statement is an OSR entry.
267 // If so, record the stack height into the compilation and return {true}. 264 // If so, record the stack height into the compilation and return {true}.
268 bool CheckOsrEntry(IterationStatement* stmt); 265 bool CheckOsrEntry(IterationStatement* stmt);
269 266
270 // Helper to wrap a Handle<T> into a Unique<T>. 267 // Helper to wrap a Handle<T> into a Unique<T>.
271 template <class T> 268 template <class T>
272 Unique<T> MakeUnique(Handle<T> object) { 269 Unique<T> MakeUnique(Handle<T> object) {
273 return Unique<T>::CreateUninitialized(object); 270 return Unique<T>::CreateUninitialized(object);
274 } 271 }
275 272
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 477
481 // Prepare environment to be used as loop header. 478 // Prepare environment to be used as loop header.
482 void PrepareForLoop(BitVector* assigned, bool is_osr = false); 479 void PrepareForLoop(BitVector* assigned, bool is_osr = false);
483 }; 480 };
484 481
485 } // namespace compiler 482 } // namespace compiler
486 } // namespace internal 483 } // namespace internal
487 } // namespace v8 484 } // namespace v8
488 485
489 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ 486 #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