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

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

Issue 10979078: Revert several inlining related changes. (Closed) Base URL: https://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; }
39 38
40 void set_context_level(intptr_t value) { context_level_ = value; } 39 void set_context_level(intptr_t value) { context_level_ = value; }
41 intptr_t context_level() const { return context_level_; } 40 intptr_t context_level() const { return context_level_; }
42 41
43 // Each try in this function gets its own try index. 42 // Each try in this function gets its own try index.
44 intptr_t AllocateTryIndex() { return ++last_used_try_index_; } 43 intptr_t AllocateTryIndex() { return ++last_used_try_index_; }
45 44
46 // Manage the currently active try index. 45 // Manage the currently active try index.
47 void set_try_index(intptr_t value) { try_index_ = value; } 46 void set_try_index(intptr_t value) { try_index_ = value; }
48 intptr_t try_index() const { return try_index_; } 47 intptr_t try_index() const { return try_index_; }
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 // Output parameters. 391 // Output parameters.
393 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 392 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
394 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 393 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
395 394
396 intptr_t condition_token_pos_; 395 intptr_t condition_token_pos_;
397 }; 396 };
398 397
399 } // namespace dart 398 } // namespace dart
400 399
401 #endif // VM_FLOW_GRAPH_BUILDER_H_ 400 #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