| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/interpreter/interpreter.h" | 5 #include "src/interpreter/interpreter.h" |
| 6 | 6 |
| 7 #include "src/ast/prettyprinter.h" | 7 #include "src/ast/prettyprinter.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
| 10 #include "src/factory.h" | 10 #include "src/factory.h" |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 // Divide register <src> by accumulator. | 669 // Divide register <src> by accumulator. |
| 670 void Interpreter::DoDiv(InterpreterAssembler* assembler) { | 670 void Interpreter::DoDiv(InterpreterAssembler* assembler) { |
| 671 DoBinaryOp(CodeFactory::Divide(isolate_), assembler); | 671 DoBinaryOp(CodeFactory::Divide(isolate_), assembler); |
| 672 } | 672 } |
| 673 | 673 |
| 674 | 674 |
| 675 // Mod <src> | 675 // Mod <src> |
| 676 // | 676 // |
| 677 // Modulo register <src> by accumulator. | 677 // Modulo register <src> by accumulator. |
| 678 void Interpreter::DoMod(InterpreterAssembler* assembler) { | 678 void Interpreter::DoMod(InterpreterAssembler* assembler) { |
| 679 DoBinaryOp(Runtime::kModulus, assembler); | 679 DoBinaryOp(CodeFactory::Modulus(isolate_), assembler); |
| 680 } | 680 } |
| 681 | 681 |
| 682 | 682 |
| 683 // BitwiseOr <src> | 683 // BitwiseOr <src> |
| 684 // | 684 // |
| 685 // BitwiseOr register <src> to accumulator. | 685 // BitwiseOr register <src> to accumulator. |
| 686 void Interpreter::DoBitwiseOr(InterpreterAssembler* assembler) { | 686 void Interpreter::DoBitwiseOr(InterpreterAssembler* assembler) { |
| 687 DoBinaryOp(CodeFactory::BitwiseOr(isolate_), assembler); | 687 DoBinaryOp(CodeFactory::BitwiseOr(isolate_), assembler); |
| 688 } | 688 } |
| 689 | 689 |
| (...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1613 // Illegal | 1613 // Illegal |
| 1614 // | 1614 // |
| 1615 // An invalid bytecode aborting execution if dispatched. | 1615 // An invalid bytecode aborting execution if dispatched. |
| 1616 void Interpreter::DoIllegal(InterpreterAssembler* assembler) { | 1616 void Interpreter::DoIllegal(InterpreterAssembler* assembler) { |
| 1617 __ Abort(kInvalidBytecode); | 1617 __ Abort(kInvalidBytecode); |
| 1618 } | 1618 } |
| 1619 | 1619 |
| 1620 } // namespace interpreter | 1620 } // namespace interpreter |
| 1621 } // namespace internal | 1621 } // namespace internal |
| 1622 } // namespace v8 | 1622 } // namespace v8 |
| OLD | NEW |