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 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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> | 1195 // TestNotEqualStrict <src> |
1196 // | 1196 // |
1197 // Test if the value in the <src> register is not strictly equal to the | 1197 // Test if the value in the <src> register is not strictly equal to the |
1198 // accumulator. | 1198 // accumulator. |
1199 void Interpreter::DoTestNotEqualStrict(InterpreterAssembler* assembler) { | 1199 void Interpreter::DoTestNotEqualStrict(InterpreterAssembler* assembler) { |
1200 DoBinaryOp(Runtime::kStrictNotEqual, assembler); | 1200 DoBinaryOp(CodeFactory::StrictNotEqual(isolate_), assembler); |
1201 } | 1201 } |
1202 | 1202 |
1203 | 1203 |
1204 // TestLessThan <src> | 1204 // TestLessThan <src> |
1205 // | 1205 // |
1206 // Test if the value in the <src> register is less than the accumulator. | 1206 // Test if the value in the <src> register is less than the accumulator. |
1207 void Interpreter::DoTestLessThan(InterpreterAssembler* assembler) { | 1207 void Interpreter::DoTestLessThan(InterpreterAssembler* assembler) { |
1208 DoBinaryOp(Runtime::kLessThan, assembler); | 1208 DoBinaryOp(Runtime::kLessThan, assembler); |
1209 } | 1209 } |
1210 | 1210 |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1913 Node* index = __ LoadRegister(index_reg); | 1913 Node* index = __ LoadRegister(index_reg); |
1914 Node* one = __ SmiConstant(Smi::FromInt(1)); | 1914 Node* one = __ SmiConstant(Smi::FromInt(1)); |
1915 Node* result = __ SmiAdd(index, one); | 1915 Node* result = __ SmiAdd(index, one); |
1916 __ SetAccumulator(result); | 1916 __ SetAccumulator(result); |
1917 __ Dispatch(); | 1917 __ Dispatch(); |
1918 } | 1918 } |
1919 | 1919 |
1920 } // namespace interpreter | 1920 } // namespace interpreter |
1921 } // namespace internal | 1921 } // namespace internal |
1922 } // namespace v8 | 1922 } // namespace v8 |
OLD | NEW |