| 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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 // Multiply accumulator by register <src>. | 662 // Multiply accumulator by register <src>. |
| 663 void Interpreter::DoMul(InterpreterAssembler* assembler) { | 663 void Interpreter::DoMul(InterpreterAssembler* assembler) { |
| 664 DoBinaryOp(CodeFactory::Multiply(isolate_), assembler); | 664 DoBinaryOp(CodeFactory::Multiply(isolate_), assembler); |
| 665 } | 665 } |
| 666 | 666 |
| 667 | 667 |
| 668 // Div <src> | 668 // Div <src> |
| 669 // | 669 // |
| 670 // Divide register <src> by accumulator. | 670 // Divide register <src> by accumulator. |
| 671 void Interpreter::DoDiv(InterpreterAssembler* assembler) { | 671 void Interpreter::DoDiv(InterpreterAssembler* assembler) { |
| 672 DoBinaryOp(Runtime::kDivide, assembler); | 672 DoBinaryOp(CodeFactory::Divide(isolate_), assembler); |
| 673 } | 673 } |
| 674 | 674 |
| 675 | 675 |
| 676 // Mod <src> | 676 // Mod <src> |
| 677 // | 677 // |
| 678 // Modulo register <src> by accumulator. | 678 // Modulo register <src> by accumulator. |
| 679 void Interpreter::DoMod(InterpreterAssembler* assembler) { | 679 void Interpreter::DoMod(InterpreterAssembler* assembler) { |
| 680 DoBinaryOp(Runtime::kModulus, assembler); | 680 DoBinaryOp(Runtime::kModulus, assembler); |
| 681 } | 681 } |
| 682 | 682 |
| (...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1614 // Illegal | 1614 // Illegal |
| 1615 // | 1615 // |
| 1616 // An invalid bytecode aborting execution if dispatched. | 1616 // An invalid bytecode aborting execution if dispatched. |
| 1617 void Interpreter::DoIllegal(InterpreterAssembler* assembler) { | 1617 void Interpreter::DoIllegal(InterpreterAssembler* assembler) { |
| 1618 __ Abort(kInvalidBytecode); | 1618 __ Abort(kInvalidBytecode); |
| 1619 } | 1619 } |
| 1620 | 1620 |
| 1621 } // namespace interpreter | 1621 } // namespace interpreter |
| 1622 } // namespace internal | 1622 } // namespace internal |
| 1623 } // namespace v8 | 1623 } // namespace v8 |
| OLD | NEW |