Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index 7d9a7affb8f10f4faac1fb7ba9672e1ab963c558..a26df8ab4aea7bd6a8d02853361d87f3c934ad84 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -971,6 +971,7 @@ class HGraphBuilder { |
// Bailout environment manipulation. |
void Push(HValue* value) { environment()->Push(value); } |
HValue* Pop() { return environment()->Pop(); } |
+ void PushAndAdd(HInstruction* instr); |
// Adding instructions. |
HInstruction* AddInstruction(HInstruction* instr); |
@@ -1118,6 +1119,17 @@ class HGraphBuilder { |
HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin, HValue* context); |
+ bool MatchRotateRight(HValue* left, |
+ HValue* right, |
+ HValue** operand, |
+ HValue** shift_amount); |
+ |
+ HInstruction* BuildBinaryOperation(BinaryOperation* expr, |
+ HValue* left, |
+ HValue* right); |
+ |
+ HValue* ConstantToNumber(HValue* value); |
+ |
enum SoftDeoptimizeMode { |
MUST_EMIT_SOFT_DEOPT, |
CAN_OMIT_SOFT_DEOPT |
@@ -1666,8 +1678,6 @@ class HOptimizedGraphBuilder: public HGraphBuilder, public AstVisitor { |
// Visit a list of expressions from left to right, each in a value context. |
void VisitExpressions(ZoneList<Expression*>* exprs); |
- void PushAndAdd(HInstruction* instr); |
- |
// Remove the arguments from the bailout environment and emit instructions |
// to push them as outgoing parameters. |
template <class Instruction> HInstruction* PreProcessCall(Instruction* call); |
@@ -1774,9 +1784,6 @@ class HOptimizedGraphBuilder: public HGraphBuilder, public AstVisitor { |
HInstruction* BuildStringCharCodeAt(HValue* context, |
HValue* string, |
HValue* index); |
- HInstruction* BuildBinaryOperation(BinaryOperation* expr, |
- HValue* left, |
- HValue* right); |
HInstruction* BuildIncrement(bool returns_original_input, |
CountOperation* expr); |
HInstruction* BuildLoadKeyedGeneric(HValue* object, |
@@ -1922,11 +1929,6 @@ class HOptimizedGraphBuilder: public HGraphBuilder, public AstVisitor { |
HValue* receiver, |
Handle<Map> receiver_map); |
- bool MatchRotateRight(HValue* left, |
- HValue* right, |
- HValue** operand, |
- HValue** shift_amount); |
- |
// The translation state of the currently-being-translated function. |
FunctionState* function_state_; |