| 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 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 void Interpreter::DoTestGreaterThanOrEqual(InterpreterAssembler* assembler) { | 1130 void Interpreter::DoTestGreaterThanOrEqual(InterpreterAssembler* assembler) { |
| 1131 DoBinaryOp(CodeFactory::GreaterThanOrEqual(isolate_), assembler); | 1131 DoBinaryOp(CodeFactory::GreaterThanOrEqual(isolate_), assembler); |
| 1132 } | 1132 } |
| 1133 | 1133 |
| 1134 | 1134 |
| 1135 // TestIn <src> | 1135 // TestIn <src> |
| 1136 // | 1136 // |
| 1137 // Test if the object referenced by the register operand is a property of the | 1137 // Test if the object referenced by the register operand is a property of the |
| 1138 // object referenced by the accumulator. | 1138 // object referenced by the accumulator. |
| 1139 void Interpreter::DoTestIn(InterpreterAssembler* assembler) { | 1139 void Interpreter::DoTestIn(InterpreterAssembler* assembler) { |
| 1140 DoBinaryOp(Runtime::kHasProperty, assembler); | 1140 DoBinaryOp(CodeFactory::HasProperty(isolate_), assembler); |
| 1141 } | 1141 } |
| 1142 | 1142 |
| 1143 | 1143 |
| 1144 // TestInstanceOf <src> | 1144 // TestInstanceOf <src> |
| 1145 // | 1145 // |
| 1146 // Test if the object referenced by the <src> register is an an instance of type | 1146 // Test if the object referenced by the <src> register is an an instance of type |
| 1147 // referenced by the accumulator. | 1147 // referenced by the accumulator. |
| 1148 void Interpreter::DoTestInstanceOf(InterpreterAssembler* assembler) { | 1148 void Interpreter::DoTestInstanceOf(InterpreterAssembler* assembler) { |
| 1149 DoBinaryOp(Runtime::kInstanceOf, assembler); | 1149 DoBinaryOp(Runtime::kInstanceOf, assembler); |
| 1150 } | 1150 } |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1767 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, | 1767 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, |
| 1768 __ SmiTag(new_state)); | 1768 __ SmiTag(new_state)); |
| 1769 __ SetAccumulator(old_state); | 1769 __ SetAccumulator(old_state); |
| 1770 | 1770 |
| 1771 __ Dispatch(); | 1771 __ Dispatch(); |
| 1772 } | 1772 } |
| 1773 | 1773 |
| 1774 } // namespace interpreter | 1774 } // namespace interpreter |
| 1775 } // namespace internal | 1775 } // namespace internal |
| 1776 } // namespace v8 | 1776 } // namespace v8 |
| OLD | NEW |