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

Unified Diff: runtime/vm/flow_graph_builder.h

Issue 248213002: Expose functionality to create a stack trace to internal vm code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/flow_graph_builder.h
===================================================================
--- runtime/vm/flow_graph_builder.h (revision 35284)
+++ runtime/vm/flow_graph_builder.h (working copy)
@@ -143,14 +143,15 @@
FlowGraphBuilder(ParsedFunction* parsed_function,
const Array& ic_data_array,
InlineExitCollector* exit_collector,
- intptr_t osr_id);
+ intptr_t osr_id,
+ bool is_optimizing);
FlowGraph* BuildGraph();
ParsedFunction* parsed_function() const { return parsed_function_; }
const Array& ic_data_array() const { return ic_data_array_; }
- void Bailout(const char* reason);
+ void Bailout(const char* reason) const;
intptr_t AllocateBlockId() { return ++last_used_block_id_; }
void SetInitialBlockId(intptr_t id) { last_used_block_id_ = id; }
@@ -184,6 +185,8 @@
bool IsInlining() const { return (exit_collector_ != NULL); }
InlineExitCollector* exit_collector() const { return exit_collector_; }
+ bool is_optimizing() const { return is_optimizing_; }
+
ZoneGrowableArray<const Field*>* guarded_fields() const {
return guarded_fields_;
}
@@ -242,6 +245,9 @@
// for OSR.
const intptr_t osr_id_;
+ // The graph is being rebuilt for the optimizing compiler.
srdjan 2014/04/23 15:53:12 Add a comment: Do not generate different code base
regis 2014/04/23 17:27:29 Done. I suppose you mean "different graph".
+ const bool is_optimizing_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(FlowGraphBuilder);
};

Powered by Google App Engine
This is Rietveld 408576698