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

Side by Side Diff: test/unittests/compiler/js-operator-unittest.cc

Issue 1140583004: [turbofan] Add frame state before JavaScript comparisons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove obsolete #if 0. Slightly refactor strong mode check. Created 5 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/js-operator.h" 5 #include "src/compiler/js-operator.h"
6 #include "src/compiler/opcodes.h" 6 #include "src/compiler/opcodes.h"
7 #include "src/compiler/operator.h" 7 #include "src/compiler/operator.h"
8 #include "src/compiler/operator-properties.h" 8 #include "src/compiler/operator-properties.h"
9 #include "test/unittests/test-utils.h" 9 #include "test/unittests/test-utils.h"
10 10
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 const SharedOperatorWithLanguageMode kSharedOperatorsWithLanguageMode[] = { 179 const SharedOperatorWithLanguageMode kSharedOperatorsWithLanguageMode[] = {
180 #define SHARED(Name, properties, value_input_count, frame_state_input_count, \ 180 #define SHARED(Name, properties, value_input_count, frame_state_input_count, \
181 effect_input_count, control_input_count, value_output_count, \ 181 effect_input_count, control_input_count, value_output_count, \
182 effect_output_count, control_output_count) \ 182 effect_output_count, control_output_count) \
183 { \ 183 { \
184 &JSOperatorBuilder::Name, IrOpcode::kJS##Name, properties, \ 184 &JSOperatorBuilder::Name, IrOpcode::kJS##Name, properties, \
185 value_input_count, frame_state_input_count, effect_input_count, \ 185 value_input_count, frame_state_input_count, effect_input_count, \
186 control_input_count, value_output_count, effect_output_count, \ 186 control_input_count, value_output_count, effect_output_count, \
187 control_output_count \ 187 control_output_count \
188 } 188 }
189 SHARED(LessThan, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 189 SHARED(LessThan, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
190 SHARED(GreaterThan, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 190 SHARED(GreaterThan, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
191 SHARED(LessThanOrEqual, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 191 SHARED(LessThanOrEqual, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
192 SHARED(GreaterThanOrEqual, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 192 SHARED(GreaterThanOrEqual, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
193 SHARED(BitwiseOr, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), 193 SHARED(BitwiseOr, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
194 SHARED(BitwiseXor, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), 194 SHARED(BitwiseXor, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
195 SHARED(BitwiseAnd, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), 195 SHARED(BitwiseAnd, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
196 SHARED(ShiftLeft, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), 196 SHARED(ShiftLeft, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
197 SHARED(ShiftRight, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), 197 SHARED(ShiftRight, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
198 SHARED(ShiftRightLogical, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), 198 SHARED(ShiftRightLogical, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
199 SHARED(Add, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), 199 SHARED(Add, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
200 SHARED(Subtract, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), 200 SHARED(Subtract, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
201 SHARED(Multiply, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), 201 SHARED(Multiply, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
202 SHARED(Divide, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), 202 SHARED(Divide, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 INSTANTIATE_TEST_CASE_P( 278 INSTANTIATE_TEST_CASE_P(
279 JSOperatorTest, JSSharedOperatorWithLanguageModeTest, 279 JSOperatorTest, JSSharedOperatorWithLanguageModeTest,
280 ::testing::Combine(::testing::ValuesIn(kLanguageModes), 280 ::testing::Combine(::testing::ValuesIn(kLanguageModes),
281 ::testing::ValuesIn(kSharedOperatorsWithLanguageMode))); 281 ::testing::ValuesIn(kSharedOperatorsWithLanguageMode)));
282 282
283 #endif // GTEST_HAS_COMBINE 283 #endif // GTEST_HAS_COMBINE
284 284
285 } // namespace compiler 285 } // namespace compiler
286 } // namespace internal 286 } // namespace internal
287 } // namespace v8 287 } // namespace v8
OLDNEW
« no previous file with comments | « test/mjsunit/compiler/deopt-tonumber-compare.js ('k') | test/unittests/compiler/scheduler-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698