Chromium Code Reviews| Index: src/hydrogen.h |
| diff --git a/src/hydrogen.h b/src/hydrogen.h |
| index af36c508a421080b9ebc8b302425b57f9d1c53ee..d60f655ef1fd2b28775655db54db90f0e97ea939 100644 |
| --- a/src/hydrogen.h |
| +++ b/src/hydrogen.h |
| @@ -1260,10 +1260,26 @@ class HGraphBuilder { |
| HInstruction* BuildLoadStringLength(HValue* object, HValue* checked_value); |
| HStoreNamedField* AddStoreMapConstant(HValue* object, Handle<Map>); |
| HLoadNamedField* AddLoadElements(HValue* object); |
| + |
| + bool MatchRotateRight(HValue* left, |
| + HValue* right, |
| + HValue** operand, |
| + HValue** shift_amount); |
| + |
| + HInstruction* BuildBinaryOperation(Token::Value op, |
| + HValue* left, |
| + HValue* right, |
| + Handle<Type> left_type, |
| + Handle<Type> right_type, |
| + Handle<Type> result_type, |
| + Maybe<int> fixed_right_arg, |
| + HValue* context); |
| + |
| HLoadNamedField* AddLoadFixedArrayLength(HValue *object); |
| HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin); |
| + HValue* EnforceNumberType(HValue* number, Handle<Type> expected); |
| HValue* TruncateToNumber(HValue* value, Handle<Type>* expected); |
| void PushAndAdd(HInstruction* instr); |
| @@ -1305,6 +1321,17 @@ class HGraphBuilder { |
| return compare; |
| } |
| + template<class Condition> |
| + HInstruction* IfNot(HValue* p1) { |
| + HControlInstruction* compare = new(zone()) Condition(p1); |
|
Sven Panne
2013/09/16 13:38:09
This template and the following 2 should probably
|
| + AddCompare(compare); |
| + HBasicBlock* block0 = compare->SuccessorAt(0); |
| + HBasicBlock* block1 = compare->SuccessorAt(1); |
| + compare->SetSuccessorAt(0, block1); |
| + compare->SetSuccessorAt(1, block0); |
| + return compare; |
| + } |
| + |
| template<class Condition, class P2> |
| HInstruction* IfNot(HValue* p1, P2 p2) { |
| HControlInstruction* compare = new(zone()) Condition(p1, p2); |
| @@ -2111,11 +2138,6 @@ class HOptimizedGraphBuilder V8_FINAL |
| 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_; |