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

Unified Diff: runtime/vm/intermediate_language.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 42083)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -1149,6 +1149,9 @@
virtual bool MayThrow() const { return false; }
intptr_t try_index() const { return try_index_; }
+ void set_try_index(intptr_t index) {
+ try_index_ = index;
+ }
// True for blocks inside a try { } region.
bool InsideTryBlock() const {
@@ -1204,7 +1207,7 @@
void set_dominator(BlockEntryInstr* instr) { dominator_ = instr; }
intptr_t block_id_;
- const intptr_t try_index_;
+ intptr_t try_index_;
intptr_t preorder_number_;
intptr_t postorder_number_;
// Starting and ending lifetime positions for this block. Used by
@@ -7858,6 +7861,12 @@
Environment* outer() const { return outer_; }
+ Environment* Outermost() {
+ Environment* result = this;
+ while (result->outer() != NULL) result = result->outer();
+ return result;
+ }
+
Value* ValueAt(intptr_t ix) const {
return values_[ix];
}
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698