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

Unified Diff: runtime/vm/flow_graph_compiler_x64.h

Issue 10014006: Try/catch in graph builder. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_x64.h
===================================================================
--- runtime/vm/flow_graph_compiler_x64.h (revision 6388)
+++ runtime/vm/flow_graph_compiler_x64.h (working copy)
@@ -17,6 +17,7 @@
namespace dart {
class Code;
+class ExceptionHandlerList;
template <typename T> class GrowableArray;
class ParsedFunction;
@@ -70,6 +71,7 @@
// Emit an instance call.
void EmitInstanceCall(intptr_t node_id,
intptr_t token_index,
+ intptr_t try_index,
const String& function_name,
intptr_t argument_count,
const Array& argument_names,
@@ -77,20 +79,24 @@
// Emit a static call.
void EmitStaticCall(intptr_t token_index,
+ intptr_t try_index,
const Function& function,
intptr_t argument_count,
const Array& argument_names);
// Infrastructure copied from class CodeGenerator.
void GenerateCall(intptr_t token_index,
+ intptr_t try_index,
const ExternalLabel* label,
PcDescriptors::Kind kind);
void GenerateCallRuntime(intptr_t node_id,
intptr_t token_index,
+ intptr_t try_index,
const RuntimeEntry& entry);
void AddCurrentDescriptor(PcDescriptors::Kind kind,
intptr_t node_id,
- intptr_t token_index);
+ intptr_t token_index,
+ intptr_t try_index);
void GenerateAssertAssignable(intptr_t node_id,
intptr_t token_index,
@@ -99,6 +105,7 @@
void GenerateInstanceOf(intptr_t node_id,
intptr_t token_index,
+ intptr_t try_index,
const AbstractType& type,
bool negate_result);
@@ -115,10 +122,9 @@
// for convenience. This is not the block's index in the block order,
// which is reverse postorder.
GrowableArray<BlockInfo*> block_info_;
-
BlockEntryInstr* current_block_;
-
DescriptorList* pc_descriptors_list_;
+ ExceptionHandlerList* exception_handlers_list_;
DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
};
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698