Index: src/hydrogen.h |
=================================================================== |
--- src/hydrogen.h (revision 7210) |
+++ src/hydrogen.h (working copy) |
@@ -124,6 +124,14 @@ |
void AddSimulate(int id) { AddInstruction(CreateSimulate(id)); } |
void AssignCommonDominator(HBasicBlock* other); |
+ void FinishWithDeoptimization() { |
+ Finish(CreateDeoptimize()); |
Kevin Millikin (Chromium)
2011/03/17 05:31:02
I'd rather not have these helpers. It doesn't sav
|
+ } |
+ |
+ void FinishExitWithDeoptimization() { |
Kevin Millikin (Chromium)
2011/03/17 05:31:02
There's no reason to have both "Finish" and "Finis
|
+ FinishExit(CreateDeoptimize()); |
+ } |
+ |
// Add the inlined function exit sequence, adding an HLeaveInlined |
// instruction and updating the bailout environment. |
void AddLeaveInlined(HValue* return_value, HBasicBlock* target); |
@@ -146,6 +154,7 @@ |
void AddDominatedBlock(HBasicBlock* block); |
HSimulate* CreateSimulate(int id); |
+ HDeoptimize* CreateDeoptimize(); |
int block_id_; |
HGraph* graph_; |