Index: src/full-codegen.h |
=================================================================== |
--- src/full-codegen.h (revision 6981) |
+++ src/full-codegen.h (working copy) |
@@ -274,12 +274,6 @@ |
ForwardBailoutStack* const parent_; |
}; |
- enum ConstantOperand { |
- kNoConstants, |
- kLeftConstant, |
- kRightConstant |
- }; |
- |
// Type of a member function that generates inline code for a native function. |
typedef void (FullCodeGenerator::*InlineFunctionGenerator) |
(ZoneList<Expression*>*); |
@@ -298,11 +292,6 @@ |
// operation. |
bool ShouldInlineSmiCase(Token::Value op); |
- // Compute which (if any) of the operands is a compile-time constant. |
- ConstantOperand GetConstantOperand(Token::Value op, |
- Expression* left, |
- Expression* right); |
- |
// Helper function to convert a pure value into a test context. The value |
// is expected on the stack or the accumulator, depending on the platform. |
// See the platform-specific implementation for details. |
@@ -457,35 +446,8 @@ |
Token::Value op, |
OverwriteMode mode, |
Expression* left, |
- Expression* right, |
- ConstantOperand constant); |
+ Expression* right); |
- void EmitConstantSmiBinaryOp(Expression* expr, |
- Token::Value op, |
- OverwriteMode mode, |
- bool left_is_constant_smi, |
- Smi* value); |
- |
- void EmitConstantSmiBitOp(Expression* expr, |
- Token::Value op, |
- OverwriteMode mode, |
- Smi* value); |
- |
- void EmitConstantSmiShiftOp(Expression* expr, |
- Token::Value op, |
- OverwriteMode mode, |
- Smi* value); |
- |
- void EmitConstantSmiAdd(Expression* expr, |
- OverwriteMode mode, |
- bool left_is_constant_smi, |
- Smi* value); |
- |
- void EmitConstantSmiSub(Expression* expr, |
- OverwriteMode mode, |
- bool left_is_constant_smi, |
- Smi* value); |
- |
// Assign to the given expression as if via '='. The right-hand-side value |
// is expected in the accumulator. |
void EmitAssignment(Expression* expr, int bailout_ast_id); |