Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: src/interpreter/interpreter.cc

Issue 1925463003: [turbofan] Don't use the CompareIC in JSGenericLowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.0
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 // 1132 //
1133 void Interpreter::DoNewWide(InterpreterAssembler* assembler) { 1133 void Interpreter::DoNewWide(InterpreterAssembler* assembler) {
1134 DoCallConstruct(assembler); 1134 DoCallConstruct(assembler);
1135 } 1135 }
1136 1136
1137 1137
1138 // TestEqual <src> 1138 // TestEqual <src>
1139 // 1139 //
1140 // Test if the value in the <src> register equals the accumulator. 1140 // Test if the value in the <src> register equals the accumulator.
1141 void Interpreter::DoTestEqual(InterpreterAssembler* assembler) { 1141 void Interpreter::DoTestEqual(InterpreterAssembler* assembler) {
1142 DoBinaryOp(Runtime::kInterpreterEquals, assembler); 1142 DoBinaryOp(Runtime::kEqual, assembler);
1143 } 1143 }
1144 1144
1145 1145
1146 // TestNotEqual <src> 1146 // TestNotEqual <src>
1147 // 1147 //
1148 // Test if the value in the <src> register is not equal to the accumulator. 1148 // Test if the value in the <src> register is not equal to the accumulator.
1149 void Interpreter::DoTestNotEqual(InterpreterAssembler* assembler) { 1149 void Interpreter::DoTestNotEqual(InterpreterAssembler* assembler) {
1150 DoBinaryOp(Runtime::kInterpreterNotEquals, assembler); 1150 DoBinaryOp(Runtime::kNotEqual, assembler);
1151 } 1151 }
1152 1152
1153 1153
1154 // TestEqualStrict <src> 1154 // TestEqualStrict <src>
1155 // 1155 //
1156 // Test if the value in the <src> register is strictly equal to the accumulator. 1156 // Test if the value in the <src> register is strictly equal to the accumulator.
1157 void Interpreter::DoTestEqualStrict(InterpreterAssembler* assembler) { 1157 void Interpreter::DoTestEqualStrict(InterpreterAssembler* assembler) {
1158 DoBinaryOp(Runtime::kInterpreterStrictEquals, assembler); 1158 DoBinaryOp(Runtime::kStrictEqual, assembler);
1159 } 1159 }
1160 1160
1161 1161
1162 // TestNotEqualStrict <src> 1162 // TestNotEqualStrict <src>
1163 // 1163 //
1164 // Test if the value in the <src> register is not strictly equal to the 1164 // Test if the value in the <src> register is not strictly equal to the
1165 // accumulator. 1165 // accumulator.
1166 void Interpreter::DoTestNotEqualStrict(InterpreterAssembler* assembler) { 1166 void Interpreter::DoTestNotEqualStrict(InterpreterAssembler* assembler) {
1167 DoBinaryOp(Runtime::kInterpreterStrictNotEquals, assembler); 1167 DoBinaryOp(Runtime::kStrictNotEqual, assembler);
1168 } 1168 }
1169 1169
1170 1170
1171 // TestLessThan <src> 1171 // TestLessThan <src>
1172 // 1172 //
1173 // Test if the value in the <src> register is less than the accumulator. 1173 // Test if the value in the <src> register is less than the accumulator.
1174 void Interpreter::DoTestLessThan(InterpreterAssembler* assembler) { 1174 void Interpreter::DoTestLessThan(InterpreterAssembler* assembler) {
1175 DoBinaryOp(Runtime::kInterpreterLessThan, assembler); 1175 DoBinaryOp(Runtime::kLessThan, assembler);
1176 } 1176 }
1177 1177
1178 1178
1179 // TestGreaterThan <src> 1179 // TestGreaterThan <src>
1180 // 1180 //
1181 // Test if the value in the <src> register is greater than the accumulator. 1181 // Test if the value in the <src> register is greater than the accumulator.
1182 void Interpreter::DoTestGreaterThan(InterpreterAssembler* assembler) { 1182 void Interpreter::DoTestGreaterThan(InterpreterAssembler* assembler) {
1183 DoBinaryOp(Runtime::kInterpreterGreaterThan, assembler); 1183 DoBinaryOp(Runtime::kGreaterThan, assembler);
1184 } 1184 }
1185 1185
1186 1186
1187 // TestLessThanOrEqual <src> 1187 // TestLessThanOrEqual <src>
1188 // 1188 //
1189 // Test if the value in the <src> register is less than or equal to the 1189 // Test if the value in the <src> register is less than or equal to the
1190 // accumulator. 1190 // accumulator.
1191 void Interpreter::DoTestLessThanOrEqual(InterpreterAssembler* assembler) { 1191 void Interpreter::DoTestLessThanOrEqual(InterpreterAssembler* assembler) {
1192 DoBinaryOp(Runtime::kInterpreterLessThanOrEqual, assembler); 1192 DoBinaryOp(Runtime::kLessThanOrEqual, assembler);
1193 } 1193 }
1194 1194
1195 1195
1196 // TestGreaterThanOrEqual <src> 1196 // TestGreaterThanOrEqual <src>
1197 // 1197 //
1198 // Test if the value in the <src> register is greater than or equal to the 1198 // Test if the value in the <src> register is greater than or equal to the
1199 // accumulator. 1199 // accumulator.
1200 void Interpreter::DoTestGreaterThanOrEqual(InterpreterAssembler* assembler) { 1200 void Interpreter::DoTestGreaterThanOrEqual(InterpreterAssembler* assembler) {
1201 DoBinaryOp(Runtime::kInterpreterGreaterThanOrEqual, assembler); 1201 DoBinaryOp(Runtime::kGreaterThanOrEqual, assembler);
1202 } 1202 }
1203 1203
1204 1204
1205 // TestIn <src> 1205 // TestIn <src>
1206 // 1206 //
1207 // Test if the object referenced by the register operand is a property of the 1207 // Test if the object referenced by the register operand is a property of the
1208 // object referenced by the accumulator. 1208 // object referenced by the accumulator.
1209 void Interpreter::DoTestIn(InterpreterAssembler* assembler) { 1209 void Interpreter::DoTestIn(InterpreterAssembler* assembler) {
1210 DoBinaryOp(Runtime::kHasProperty, assembler); 1210 DoBinaryOp(Runtime::kHasProperty, assembler);
1211 } 1211 }
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
1835 Node* index = __ LoadRegister(index_reg); 1835 Node* index = __ LoadRegister(index_reg);
1836 Node* context = __ GetContext(); 1836 Node* context = __ GetContext();
1837 Node* result = __ CallRuntime(Runtime::kForInStep, context, index); 1837 Node* result = __ CallRuntime(Runtime::kForInStep, context, index);
1838 __ SetAccumulator(result); 1838 __ SetAccumulator(result);
1839 __ Dispatch(); 1839 __ Dispatch();
1840 } 1840 }
1841 1841
1842 } // namespace interpreter 1842 } // namespace interpreter
1843 } // namespace internal 1843 } // namespace internal
1844 } // namespace v8 1844 } // namespace v8
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698