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 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1185 | 1185 |
1186 | 1186 |
1187 // TestEqualStrict <src> | 1187 // TestEqualStrict <src> |
1188 // | 1188 // |
1189 // Test if the value in the <src> register is strictly equal to the accumulator. | 1189 // Test if the value in the <src> register is strictly equal to the accumulator. |
1190 void Interpreter::DoTestEqualStrict(InterpreterAssembler* assembler) { | 1190 void Interpreter::DoTestEqualStrict(InterpreterAssembler* assembler) { |
1191 DoBinaryOp(CodeFactory::StrictEqual(isolate_), assembler); | 1191 DoBinaryOp(CodeFactory::StrictEqual(isolate_), assembler); |
1192 } | 1192 } |
1193 | 1193 |
1194 | 1194 |
1195 // TestNotEqualStrict <src> | |
1196 // | |
1197 // Test if the value in the <src> register is not strictly equal to the | |
1198 // accumulator. | |
1199 void Interpreter::DoTestNotEqualStrict(InterpreterAssembler* assembler) { | |
1200 DoBinaryOp(CodeFactory::StrictNotEqual(isolate_), assembler); | |
1201 } | |
1202 | |
1203 | |
1204 // TestLessThan <src> | 1195 // TestLessThan <src> |
1205 // | 1196 // |
1206 // Test if the value in the <src> register is less than the accumulator. | 1197 // Test if the value in the <src> register is less than the accumulator. |
1207 void Interpreter::DoTestLessThan(InterpreterAssembler* assembler) { | 1198 void Interpreter::DoTestLessThan(InterpreterAssembler* assembler) { |
1208 DoBinaryOp(CodeFactory::LessThan(isolate_), assembler); | 1199 DoBinaryOp(CodeFactory::LessThan(isolate_), assembler); |
1209 } | 1200 } |
1210 | 1201 |
1211 | 1202 |
1212 // TestGreaterThan <src> | 1203 // TestGreaterThan <src> |
1213 // | 1204 // |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1913 Node* index = __ LoadRegister(index_reg); | 1904 Node* index = __ LoadRegister(index_reg); |
1914 Node* one = __ SmiConstant(Smi::FromInt(1)); | 1905 Node* one = __ SmiConstant(Smi::FromInt(1)); |
1915 Node* result = __ SmiAdd(index, one); | 1906 Node* result = __ SmiAdd(index, one); |
1916 __ SetAccumulator(result); | 1907 __ SetAccumulator(result); |
1917 __ Dispatch(); | 1908 __ Dispatch(); |
1918 } | 1909 } |
1919 | 1910 |
1920 } // namespace interpreter | 1911 } // namespace interpreter |
1921 } // namespace internal | 1912 } // namespace internal |
1922 } // namespace v8 | 1913 } // namespace v8 |
OLD | NEW |