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 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 // | 1169 // |
1170 void Interpreter::DoNewWide(InterpreterAssembler* assembler) { | 1170 void Interpreter::DoNewWide(InterpreterAssembler* assembler) { |
1171 DoCallConstruct(assembler); | 1171 DoCallConstruct(assembler); |
1172 } | 1172 } |
1173 | 1173 |
1174 | 1174 |
1175 // TestEqual <src> | 1175 // TestEqual <src> |
1176 // | 1176 // |
1177 // Test if the value in the <src> register equals the accumulator. | 1177 // Test if the value in the <src> register equals the accumulator. |
1178 void Interpreter::DoTestEqual(InterpreterAssembler* assembler) { | 1178 void Interpreter::DoTestEqual(InterpreterAssembler* assembler) { |
1179 DoBinaryOp(Runtime::kEqual, assembler); | 1179 DoBinaryOp(CodeFactory::Equal(isolate_), assembler); |
1180 } | 1180 } |
1181 | 1181 |
1182 | 1182 |
1183 // TestNotEqual <src> | 1183 // TestNotEqual <src> |
1184 // | 1184 // |
1185 // Test if the value in the <src> register is not equal to the accumulator. | 1185 // Test if the value in the <src> register is not equal to the accumulator. |
1186 void Interpreter::DoTestNotEqual(InterpreterAssembler* assembler) { | 1186 void Interpreter::DoTestNotEqual(InterpreterAssembler* assembler) { |
1187 DoBinaryOp(Runtime::kNotEqual, assembler); | 1187 DoBinaryOp(CodeFactory::NotEqual(isolate_), assembler); |
1188 } | 1188 } |
1189 | 1189 |
1190 | 1190 |
1191 // TestEqualStrict <src> | 1191 // TestEqualStrict <src> |
1192 // | 1192 // |
1193 // Test if the value in the <src> register is strictly equal to the accumulator. | 1193 // Test if the value in the <src> register is strictly equal to the accumulator. |
1194 void Interpreter::DoTestEqualStrict(InterpreterAssembler* assembler) { | 1194 void Interpreter::DoTestEqualStrict(InterpreterAssembler* assembler) { |
1195 DoBinaryOp(CodeFactory::StrictEqual(isolate_), assembler); | 1195 DoBinaryOp(CodeFactory::StrictEqual(isolate_), assembler); |
1196 } | 1196 } |
1197 | 1197 |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1908 Node* index = __ LoadRegister(index_reg); | 1908 Node* index = __ LoadRegister(index_reg); |
1909 Node* one = __ SmiConstant(Smi::FromInt(1)); | 1909 Node* one = __ SmiConstant(Smi::FromInt(1)); |
1910 Node* result = __ SmiAdd(index, one); | 1910 Node* result = __ SmiAdd(index, one); |
1911 __ SetAccumulator(result); | 1911 __ SetAccumulator(result); |
1912 __ Dispatch(); | 1912 __ Dispatch(); |
1913 } | 1913 } |
1914 | 1914 |
1915 } // namespace interpreter | 1915 } // namespace interpreter |
1916 } // namespace internal | 1916 } // namespace internal |
1917 } // namespace v8 | 1917 } // namespace v8 |
OLD | NEW |