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

Unified Diff: runtime/vm/flow_graph_compiler_x64.h

Issue 10913031: Split deopt-after and deopt-before handling: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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_compiler_ia32.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 11719)
+++ runtime/vm/flow_graph_compiler_x64.h (working copy)
@@ -12,7 +12,6 @@
namespace dart {
class Code;
-class DeoptimizationStub;
class FlowGraph;
template <typename T> class GrowableArray;
class ParsedFunction;
@@ -205,9 +204,11 @@
return current_block_->try_index();
}
- private:
- friend class DeoptimizationStub;
+ // Returns true if the generated code does not call other Dart code or
+ // runtime. Only deoptimization is allowed to occur. Closures are not leaf.
+ bool IsLeaf() const;
+ private:
void GenerateDeferredCode();
void EmitInstructionPrologue(Instruction* instr);
@@ -286,10 +287,6 @@
// Perform a greedy local register allocation. Consider all registers free.
void AllocateRegistersLocally(Instruction* instr);
- // Returns true if the generated code does not call other Dart code or
- // runtime. Only deoptimization is allowed to occur. Closures are not leaf.
- bool IsLeaf() const;
-
class Assembler* assembler_;
const ParsedFunction& parsed_function_;
const GrowableArray<BlockEntryInstr*>& block_order_;
@@ -302,7 +299,7 @@
DescriptorList* pc_descriptors_list_;
StackmapTableBuilder* stackmap_table_builder_;
GrowableArray<BlockInfo*> block_info_;
- GrowableArray<DeoptimizationStub*> deopt_stubs_;
+ GrowableArray<CompilerDeoptInfo*> deopt_infos_;
GrowableArray<SlowPathCode*> slow_path_code_;
const GrowableObjectArray& object_table_;
const bool is_optimizing_;
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698