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

Side by Side Diff: runtime/vm/flow_graph_builder.h

Issue 11029002: Revert r13022 (revert inlining of methods with control flow), Review URL: https://codereview.chromi… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « runtime/vm/flow_graph.cc ('k') | runtime/vm/flow_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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_FLOW_GRAPH_BUILDER_H_ 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_
6 #define VM_FLOW_GRAPH_BUILDER_H_ 6 #define VM_FLOW_GRAPH_BUILDER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 17 matching lines...) Expand all
28 kTestContext 28 kTestContext
29 }; 29 };
30 30
31 FlowGraph* BuildGraph(InliningContext context); 31 FlowGraph* BuildGraph(InliningContext context);
32 32
33 const ParsedFunction& parsed_function() const { return parsed_function_; } 33 const ParsedFunction& parsed_function() const { return parsed_function_; }
34 34
35 void Bailout(const char* reason); 35 void Bailout(const char* reason);
36 36
37 intptr_t AllocateBlockId() { return ++last_used_block_id_; } 37 intptr_t AllocateBlockId() { return ++last_used_block_id_; }
38 void SetInitialBlockId(intptr_t id) { last_used_block_id_ = id; }
38 39
39 void set_context_level(intptr_t value) { context_level_ = value; } 40 void set_context_level(intptr_t value) { context_level_ = value; }
40 intptr_t context_level() const { return context_level_; } 41 intptr_t context_level() const { return context_level_; }
41 42
42 // Each try in this function gets its own try index. 43 // Each try in this function gets its own try index.
43 intptr_t AllocateTryIndex() { return ++last_used_try_index_; } 44 intptr_t AllocateTryIndex() { return ++last_used_try_index_; }
44 45
45 // Manage the currently active try index. 46 // Manage the currently active try index.
46 void set_try_index(intptr_t value) { try_index_ = value; } 47 void set_try_index(intptr_t value) { try_index_ = value; }
47 intptr_t try_index() const { return try_index_; } 48 intptr_t try_index() const { return try_index_; }
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 // Output parameters. 392 // Output parameters.
392 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 393 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
393 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 394 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
394 395
395 intptr_t condition_token_pos_; 396 intptr_t condition_token_pos_;
396 }; 397 };
397 398
398 } // namespace dart 399 } // namespace dart
399 400
400 #endif // VM_FLOW_GRAPH_BUILDER_H_ 401 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698