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

Unified Diff: runtime/vm/flow_graph_builder.cc

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.cc
===================================================================
--- runtime/vm/flow_graph_builder.cc (revision 35284)
+++ runtime/vm/flow_graph_builder.cc (working copy)
@@ -204,7 +204,8 @@
FlowGraphBuilder::FlowGraphBuilder(ParsedFunction* parsed_function,
const Array& ic_data_array,
InlineExitCollector* exit_collector,
- intptr_t osr_id)
+ intptr_t osr_id,
+ bool is_optimizing)
: parsed_function_(parsed_function),
ic_data_array_(ic_data_array),
num_copied_params_(parsed_function->num_copied_params()),
@@ -223,7 +224,8 @@
temp_count_(0),
args_pushed_(0),
nesting_stack_(NULL),
- osr_id_(osr_id) { }
+ osr_id_(osr_id),
+ is_optimizing_(is_optimizing) { }
void FlowGraphBuilder::AddCatchEntry(CatchBlockEntryInstr* entry) {
@@ -3846,7 +3848,7 @@
}
-void FlowGraphBuilder::Bailout(const char* reason) {
+void FlowGraphBuilder::Bailout(const char* reason) const {
const Function& function = parsed_function_->function();
const Error& error = Error::Handle(
LanguageError::NewFormatted(Error::Handle(), // No previous error.
@@ -3860,5 +3862,4 @@
Isolate::Current()->long_jump_base()->Jump(1, error);
}
-
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698