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

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

Issue 773183002: Enable inlining inside try-blocks in the VM's optimizing compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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 | 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 "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/globals.h" 9 #include "platform/globals.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 120 }
121 121
122 ReturnInstr* ReturnAt(intptr_t i) const { 122 ReturnInstr* ReturnAt(intptr_t i) const {
123 return exits_[i].exit_return; 123 return exits_[i].exit_return;
124 } 124 }
125 125
126 static int LowestBlockIdFirst(const Data* a, const Data* b); 126 static int LowestBlockIdFirst(const Data* a, const Data* b);
127 void SortExits(); 127 void SortExits();
128 128
129 Definition* JoinReturns(BlockEntryInstr** exit_block, 129 Definition* JoinReturns(BlockEntryInstr** exit_block,
130 Instruction** last_instruction); 130 Instruction** last_instruction,
131 intptr_t try_index);
131 132
132 Isolate* isolate() const { return caller_graph_->isolate(); } 133 Isolate* isolate() const { return caller_graph_->isolate(); }
133 134
134 FlowGraph* caller_graph_; 135 FlowGraph* caller_graph_;
135 Definition* call_; 136 Definition* call_;
136 GrowableArray<Data> exits_; 137 GrowableArray<Data> exits_;
137 }; 138 };
138 139
139 140
140 // Build a flow graph from a parsed function's AST. 141 // Build a flow graph from a parsed function's AST.
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 // Output parameters. 603 // Output parameters.
603 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 604 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
604 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 605 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
605 606
606 intptr_t condition_token_pos_; 607 intptr_t condition_token_pos_;
607 }; 608 };
608 609
609 } // namespace dart 610 } // namespace dart
610 611
611 #endif // VM_FLOW_GRAPH_BUILDER_H_ 612 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698