| 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 <fstream> | 7 #include <fstream> |
| 8 | 8 |
| 9 #include "src/ast/prettyprinter.h" | 9 #include "src/ast/prettyprinter.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1118 void Interpreter::DoTestGreaterThanOrEqual(InterpreterAssembler* assembler) { | 1118 void Interpreter::DoTestGreaterThanOrEqual(InterpreterAssembler* assembler) { |
| 1119 DoBinaryOp(CodeFactory::GreaterThanOrEqual(isolate_), assembler); | 1119 DoBinaryOp(CodeFactory::GreaterThanOrEqual(isolate_), assembler); |
| 1120 } | 1120 } |
| 1121 | 1121 |
| 1122 | 1122 |
| 1123 // TestIn <src> | 1123 // TestIn <src> |
| 1124 // | 1124 // |
| 1125 // Test if the object referenced by the register operand is a property of the | 1125 // Test if the object referenced by the register operand is a property of the |
| 1126 // object referenced by the accumulator. | 1126 // object referenced by the accumulator. |
| 1127 void Interpreter::DoTestIn(InterpreterAssembler* assembler) { | 1127 void Interpreter::DoTestIn(InterpreterAssembler* assembler) { |
| 1128 DoBinaryOp(Runtime::kHasProperty, assembler); | 1128 DoBinaryOp(CodeFactory::HasProperty(isolate_), assembler); |
| 1129 } | 1129 } |
| 1130 | 1130 |
| 1131 | 1131 |
| 1132 // TestInstanceOf <src> | 1132 // TestInstanceOf <src> |
| 1133 // | 1133 // |
| 1134 // Test if the object referenced by the <src> register is an an instance of type | 1134 // Test if the object referenced by the <src> register is an an instance of type |
| 1135 // referenced by the accumulator. | 1135 // referenced by the accumulator. |
| 1136 void Interpreter::DoTestInstanceOf(InterpreterAssembler* assembler) { | 1136 void Interpreter::DoTestInstanceOf(InterpreterAssembler* assembler) { |
| 1137 DoBinaryOp(Runtime::kInstanceOf, assembler); | 1137 DoBinaryOp(Runtime::kInstanceOf, assembler); |
| 1138 } | 1138 } |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1681 // Illegal | 1681 // Illegal |
| 1682 // | 1682 // |
| 1683 // An invalid bytecode aborting execution if dispatched. | 1683 // An invalid bytecode aborting execution if dispatched. |
| 1684 void Interpreter::DoIllegal(InterpreterAssembler* assembler) { | 1684 void Interpreter::DoIllegal(InterpreterAssembler* assembler) { |
| 1685 __ Abort(kInvalidBytecode); | 1685 __ Abort(kInvalidBytecode); |
| 1686 } | 1686 } |
| 1687 | 1687 |
| 1688 } // namespace interpreter | 1688 } // namespace interpreter |
| 1689 } // namespace internal | 1689 } // namespace internal |
| 1690 } // namespace v8 | 1690 } // namespace v8 |
| OLD | NEW |