Chromium Code Reviews| Index: src/interpreter/interpreter.cc |
| diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
| index dcd3c44e5473c18fc2343b8d1d6a2994c8bceb27..30a5c70726979828d982a7780fca61e40ca8b9ce 100644 |
| --- a/src/interpreter/interpreter.cc |
| +++ b/src/interpreter/interpreter.cc |
| @@ -294,6 +294,30 @@ void Interpreter::DoBinaryOp(Runtime::FunctionId function_id, |
| } |
| +// BitwiseOr <src> |
|
rmcilroy
2015/10/06 11:09:28
ditto - move these down so they are in the same or
mythria
2015/10/06 13:47:40
Done.
|
| +// |
| +// BitwiseOr register <src> to accumulator. |
| +void Interpreter::DoBitwiseOr(compiler::InterpreterAssembler* assembler) { |
| + DoBinaryOp(Runtime::kBitwiseOr, assembler); |
| +} |
| + |
| + |
| +// BitwiseXor <src> |
| +// |
| +// BitwiseXor register <src> to accumulator. |
| +void Interpreter::DoBitwiseXor(compiler::InterpreterAssembler* assembler) { |
| + DoBinaryOp(Runtime::kBitwiseXor, assembler); |
| +} |
| + |
| + |
| +// BitwiseAnd <src> |
| +// |
| +// BitwiseAnd register <src> to accumulator. |
| +void Interpreter::DoBitwiseAnd(compiler::InterpreterAssembler* assembler) { |
| + DoBinaryOp(Runtime::kBitwiseAnd, assembler); |
| +} |
| + |
| + |
| // Add <src> |
| // |
| // Add register <src> to accumulator. |