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

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

Issue 534573002: Reland "Make FrameStates recursive (to be used for inlining).". (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase. Created 6 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 | Annotate | Revision Log
« 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/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/ast.h" 10 #include "src/ast.h"
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 } 253 }
254 void Drop(int depth) { 254 void Drop(int depth) {
255 DCHECK(depth >= 0 && depth <= stack_height()); 255 DCHECK(depth >= 0 && depth <= stack_height());
256 values()->erase(values()->end() - depth, values()->end()); 256 values()->erase(values()->end() - depth, values()->end());
257 } 257 }
258 258
259 // Preserve a checkpoint of the environment for the IR graph. Any 259 // Preserve a checkpoint of the environment for the IR graph. Any
260 // further mutation of the environment will not affect checkpoints. 260 // further mutation of the environment will not affect checkpoints.
261 Node* Checkpoint(BailoutId ast_id, OutputFrameStateCombine combine); 261 Node* Checkpoint(BailoutId ast_id, OutputFrameStateCombine combine);
262 262
263 protected:
264 AstGraphBuilder* builder() const {
265 return reinterpret_cast<AstGraphBuilder*>(
266 StructuredGraphBuilder::Environment::builder());
267 }
268
263 private: 269 private:
264 void UpdateStateValues(Node** state_values, int offset, int count); 270 void UpdateStateValues(Node** state_values, int offset, int count);
265 271
266 int parameters_count_; 272 int parameters_count_;
267 int locals_count_; 273 int locals_count_;
268 Node* parameters_node_; 274 Node* parameters_node_;
269 Node* locals_node_; 275 Node* locals_node_;
270 Node* stack_node_; 276 Node* stack_node_;
271 }; 277 };
272 278
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 }; 421 };
416 422
417 Scope* AstGraphBuilder::current_scope() const { 423 Scope* AstGraphBuilder::current_scope() const {
418 return execution_context_->scope(); 424 return execution_context_->scope();
419 } 425 }
420 } 426 }
421 } 427 }
422 } // namespace v8::internal::compiler 428 } // namespace v8::internal::compiler
423 429
424 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ 430 #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