diff options
Diffstat (limited to 'src/x64/codegen-x64.h')
-rw-r--r-- | src/x64/codegen-x64.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/x64/codegen-x64.h b/src/x64/codegen-x64.h index b9a3b706..dc6f583d 100644 --- a/src/x64/codegen-x64.h +++ b/src/x64/codegen-x64.h @@ -521,6 +521,17 @@ class CodeGenerator: public AstVisitor { Condition cc, bool strict, ControlDestination* destination); + + // If at least one of the sides is a constant smi, generate optimized code. + void ConstantSmiComparison(Condition cc, + bool strict, + ControlDestination* destination, + Result* left_side, + Result* right_side, + bool left_side_constant_smi, + bool right_side_constant_smi, + bool is_loop_condition); + void GenerateInlineNumberComparison(Result* left_side, Result* right_side, Condition cc, @@ -578,6 +589,7 @@ class CodeGenerator: public AstVisitor { void GenerateIsArray(ZoneList<Expression*>* args); void GenerateIsRegExp(ZoneList<Expression*>* args); void GenerateIsObject(ZoneList<Expression*>* args); + void GenerateIsSpecObject(ZoneList<Expression*>* args); void GenerateIsFunction(ZoneList<Expression*>* args); void GenerateIsUndetectableObject(ZoneList<Expression*>* args); |