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

Unified Diff: runtime/vm/flow_graph_compiler_x64.h

Issue 10431006: First step toward an optimizing compiler: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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_compiler_x64.h
===================================================================
--- runtime/vm/flow_graph_compiler_x64.h (revision 7936)
+++ runtime/vm/flow_graph_compiler_x64.h (working copy)
@@ -18,6 +18,7 @@
namespace dart {
class Code;
+class DeoptimizationStub;
class ExceptionHandlerList;
template <typename T> class GrowableArray;
class ParsedFunction;
@@ -42,7 +43,16 @@
Assembler* assembler() const { return assembler_; }
+ Label* AddDeoptStub(intptr_t deopt_id,
+ intptr_t deopt_token_index,
+ intptr_t try_index_,
+ DeoptReasonId reason,
+ Register reg1,
+ Register reg2);
+
private:
+ friend class DeoptimizationStub;
+
// TODO(fschneider): Clean up friend-class declarations once all code
// generator templates have been moved to intermediate_language_x64.cc.
#define DECLARE_FRIEND(ShortName, ClassName) friend class ClassName;
@@ -180,6 +190,8 @@
void IntrinsifySetter();
static bool CanOptimize();
+ void GenerateDeferredCode();
+
Assembler* assembler_;
const ParsedFunction& parsed_function_;
@@ -190,6 +202,7 @@
BlockEntryInstr* current_block_;
DescriptorList* pc_descriptors_list_;
ExceptionHandlerList* exception_handlers_list_;
+ GrowableArray<DeoptimizationStub*> deopt_stubs_;
const bool is_optimizing_;
DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);

Powered by Google App Engine
This is Rietveld 408576698