OLD | NEW |
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/access-builder.h" | 5 #include "src/compiler/access-builder.h" |
6 #include "src/compiler/js-graph.h" | 6 #include "src/compiler/js-graph.h" |
7 #include "src/compiler/node-properties-inl.h" | 7 #include "src/compiler/node-properties-inl.h" |
8 #include "src/compiler/simplified-operator.h" | 8 #include "src/compiler/simplified-operator.h" |
9 #include "src/compiler/simplified-operator-reducer.h" | 9 #include "src/compiler/simplified-operator-reducer.h" |
10 #include "src/conversions.h" | 10 #include "src/conversions.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 public ::testing::WithParamInterface<T> { | 48 public ::testing::WithParamInterface<T> { |
49 public: | 49 public: |
50 explicit SimplifiedOperatorReducerTestWithParam(int num_parameters = 1) | 50 explicit SimplifiedOperatorReducerTestWithParam(int num_parameters = 1) |
51 : SimplifiedOperatorReducerTest(num_parameters) {} | 51 : SimplifiedOperatorReducerTest(num_parameters) {} |
52 ~SimplifiedOperatorReducerTestWithParam() OVERRIDE {} | 52 ~SimplifiedOperatorReducerTestWithParam() OVERRIDE {} |
53 }; | 53 }; |
54 | 54 |
55 | 55 |
56 namespace { | 56 namespace { |
57 | 57 |
58 static const double kFloat64Values[] = { | 58 const double kFloat64Values[] = { |
59 -V8_INFINITY, -6.52696e+290, -1.05768e+290, -5.34203e+268, -1.01997e+268, | 59 -V8_INFINITY, -6.52696e+290, -1.05768e+290, -5.34203e+268, -1.01997e+268, |
60 -8.22758e+266, -1.58402e+261, -5.15246e+241, -5.92107e+226, -1.21477e+226, | 60 -8.22758e+266, -1.58402e+261, -5.15246e+241, -5.92107e+226, -1.21477e+226, |
61 -1.67913e+188, -1.6257e+184, -2.60043e+170, -2.52941e+168, -3.06033e+116, | 61 -1.67913e+188, -1.6257e+184, -2.60043e+170, -2.52941e+168, -3.06033e+116, |
62 -4.56201e+52, -3.56788e+50, -9.9066e+38, -3.07261e+31, -2.1271e+09, | 62 -4.56201e+52, -3.56788e+50, -9.9066e+38, -3.07261e+31, -2.1271e+09, |
63 -1.91489e+09, -1.73053e+09, -9.30675e+08, -26030, -20453, | 63 -1.91489e+09, -1.73053e+09, -9.30675e+08, -26030, -20453, -15790, -11699, |
64 -15790, -11699, -111, -97, -78, | 64 -111, -97, -78, -63, -58, -1.53858e-06, -2.98914e-12, -1.14741e-39, |
65 -63, -58, -1.53858e-06, -2.98914e-12, -1.14741e-39, | 65 -8.20347e-57, -1.48932e-59, -3.17692e-66, -8.93103e-81, -3.91337e-83, |
66 -8.20347e-57, -1.48932e-59, -3.17692e-66, -8.93103e-81, -3.91337e-83, | 66 -6.0489e-92, -8.83291e-113, -4.28266e-117, -1.92058e-178, -2.0567e-192, |
67 -6.0489e-92, -8.83291e-113, -4.28266e-117, -1.92058e-178, -2.0567e-192, | |
68 -1.68167e-194, -1.51841e-214, -3.98738e-234, -7.31851e-242, -2.21875e-253, | 67 -1.68167e-194, -1.51841e-214, -3.98738e-234, -7.31851e-242, -2.21875e-253, |
69 -1.11612e-293, -0.0, 0.0, 2.22507e-308, 1.06526e-307, | 68 -1.11612e-293, -0.0, 0.0, 2.22507e-308, 1.06526e-307, 4.16643e-227, |
70 4.16643e-227, 6.76624e-223, 2.0432e-197, 3.16254e-184, 1.37315e-173, | 69 6.76624e-223, 2.0432e-197, 3.16254e-184, 1.37315e-173, 2.88603e-172, |
71 2.88603e-172, 1.54155e-99, 4.42923e-81, 1.40539e-73, 5.4462e-73, | 70 1.54155e-99, 4.42923e-81, 1.40539e-73, 5.4462e-73, 1.24064e-58, 3.11167e-58, |
72 1.24064e-58, 3.11167e-58, 2.75826e-39, 0.143815, 58, | 71 2.75826e-39, 0.143815, 58, 67, 601, 7941, 11644, 13697, 25680, 29882, |
73 67, 601, 7941, 11644, 13697, | 72 1.32165e+08, 1.62439e+08, 4.16837e+08, 9.59097e+08, 1.32491e+09, 1.8728e+09, |
74 25680, 29882, 1.32165e+08, 1.62439e+08, 4.16837e+08, | 73 1.0672e+17, 2.69606e+46, 1.98285e+79, 1.0098e+82, 7.93064e+88, 3.67444e+121, |
75 9.59097e+08, 1.32491e+09, 1.8728e+09, 1.0672e+17, 2.69606e+46, | 74 9.36506e+123, 7.27954e+162, 3.05316e+168, 1.16171e+175, 1.64771e+189, |
76 1.98285e+79, 1.0098e+82, 7.93064e+88, 3.67444e+121, 9.36506e+123, | 75 1.1622e+202, 2.00748e+239, 2.51778e+244, 3.90282e+306, 1.79769e+308, |
77 7.27954e+162, 3.05316e+168, 1.16171e+175, 1.64771e+189, 1.1622e+202, | 76 V8_INFINITY}; |
78 2.00748e+239, 2.51778e+244, 3.90282e+306, 1.79769e+308, V8_INFINITY}; | |
79 | 77 |
80 | 78 |
81 static const int32_t kInt32Values[] = { | 79 const int32_t kInt32Values[] = { |
82 -2147483647 - 1, -2104508227, -2103151830, -1435284490, -1378926425, | 80 -2147483647 - 1, -2104508227, -2103151830, -1435284490, -1378926425, |
83 -1318814539, -1289388009, -1287537572, -1279026536, -1241605942, | 81 -1318814539, -1289388009, -1287537572, -1279026536, -1241605942, |
84 -1226046939, -941837148, -779818051, -413830641, -245798087, | 82 -1226046939, -941837148, -779818051, -413830641, -245798087, -184657557, |
85 -184657557, -127145950, -105483328, -32325, -26653, | 83 -127145950, -105483328, -32325, -26653, -23858, -23834, -22363, -19858, |
86 -23858, -23834, -22363, -19858, -19044, | 84 -19044, -18744, -15528, -5309, -3372, -2093, -104, -98, -97, -93, -84, -80, |
87 -18744, -15528, -5309, -3372, -2093, | 85 -78, -76, -72, -58, -57, -56, -55, -45, -40, -34, -32, -25, -24, -5, -2, 0, |
88 -104, -98, -97, -93, -84, | 86 3, 10, 24, 34, 42, 46, 47, 48, 52, 56, 64, 65, 71, 76, 79, 81, 82, 97, 102, |
89 -80, -78, -76, -72, -58, | 87 103, 104, 106, 107, 109, 116, 122, 3653, 4485, 12405, 16504, 26262, 28704, |
90 -57, -56, -55, -45, -40, | 88 29755, 30554, 16476817, 605431957, 832401070, 873617242, 914205764, |
91 -34, -32, -25, -24, -5, | 89 1062628108, 1087581664, 1488498068, 1534668023, 1661587028, 1696896187, |
92 -2, 0, 3, 10, 24, | 90 1866841746, 2032089723, 2147483647}; |
93 34, 42, 46, 47, 48, | |
94 52, 56, 64, 65, 71, | |
95 76, 79, 81, 82, 97, | |
96 102, 103, 104, 106, 107, | |
97 109, 116, 122, 3653, 4485, | |
98 12405, 16504, 26262, 28704, 29755, | |
99 30554, 16476817, 605431957, 832401070, 873617242, | |
100 914205764, 1062628108, 1087581664, 1488498068, 1534668023, | |
101 1661587028, 1696896187, 1866841746, 2032089723, 2147483647}; | |
102 | 91 |
103 | 92 |
104 static const uint32_t kUint32Values[] = { | 93 const uint32_t kUint32Values[] = { |
105 0x0, 0x5, 0x8, 0xc, 0xd, 0x26, | 94 0x0, 0x5, 0x8, 0xc, 0xd, 0x26, |
106 0x28, 0x29, 0x30, 0x34, 0x3e, 0x42, | 95 0x28, 0x29, 0x30, 0x34, 0x3e, 0x42, |
107 0x50, 0x5b, 0x63, 0x71, 0x77, 0x7c, | 96 0x50, 0x5b, 0x63, 0x71, 0x77, 0x7c, |
108 0x83, 0x88, 0x96, 0x9c, 0xa3, 0xfa, | 97 0x83, 0x88, 0x96, 0x9c, 0xa3, 0xfa, |
109 0x7a7, 0x165d, 0x234d, 0x3acb, 0x43a5, 0x4573, | 98 0x7a7, 0x165d, 0x234d, 0x3acb, 0x43a5, 0x4573, |
110 0x5b4f, 0x5f14, 0x6996, 0x6c6e, 0x7289, 0x7b9a, | 99 0x5b4f, 0x5f14, 0x6996, 0x6c6e, 0x7289, 0x7b9a, |
111 0x7bc9, 0x86bb, 0xa839, 0xaa41, 0xb03b, 0xc942, | 100 0x7bc9, 0x86bb, 0xa839, 0xaa41, 0xb03b, 0xc942, |
112 0xce68, 0xcf4c, 0xd3ad, 0xdea3, 0xe90c, 0xed86, | 101 0xce68, 0xcf4c, 0xd3ad, 0xdea3, 0xe90c, 0xed86, |
113 0xfba5, 0x172dcc6, 0x114d8fc1, 0x182d6c9d, 0x1b1e3fad, 0x1db033bf, | 102 0xfba5, 0x172dcc6, 0x114d8fc1, 0x182d6c9d, 0x1b1e3fad, 0x1db033bf, |
114 0x1e1de755, 0x1f625c80, 0x28f6cf00, 0x2acb6a94, 0x2c20240e, 0x2f0fe54e, | 103 0x1e1de755, 0x1f625c80, 0x28f6cf00, 0x2acb6a94, 0x2c20240e, 0x2f0fe54e, |
115 0x31863a7c, 0x33325474, 0x3532fae3, 0x3bab82ea, 0x4c4b83a2, 0x4cd93d1e, | 104 0x31863a7c, 0x33325474, 0x3532fae3, 0x3bab82ea, 0x4c4b83a2, 0x4cd93d1e, |
116 0x4f7331d4, 0x5491b09b, 0x57cc6ff9, 0x60d3b4dc, 0x653f5904, 0x690ae256, | 105 0x4f7331d4, 0x5491b09b, 0x57cc6ff9, 0x60d3b4dc, 0x653f5904, 0x690ae256, |
117 0x69fe3276, 0x6bebf0ba, 0x6e2c69a3, 0x73b84ff7, 0x7b3a1924, 0x7ed032d9, | 106 0x69fe3276, 0x6bebf0ba, 0x6e2c69a3, 0x73b84ff7, 0x7b3a1924, 0x7ed032d9, |
118 0x84dd734b, 0x8552ea53, 0x8680754f, 0x8e9660eb, 0x94fe2b9c, 0x972d30cf, | 107 0x84dd734b, 0x8552ea53, 0x8680754f, 0x8e9660eb, 0x94fe2b9c, 0x972d30cf, |
119 0x9b98c482, 0xb158667e, 0xb432932c, 0xb5b70989, 0xb669971a, 0xb7c359d1, | 108 0x9b98c482, 0xb158667e, 0xb432932c, 0xb5b70989, 0xb669971a, 0xb7c359d1, |
120 0xbeb15c0d, 0xc171c53d, 0xc743dd38, 0xc8e2af50, 0xc98e2df0, 0xd9d1cdf9, | 109 0xbeb15c0d, 0xc171c53d, 0xc743dd38, 0xc8e2af50, 0xc98e2df0, 0xd9d1cdf9, |
121 0xdcc91049, 0xe46f396d, 0xee991950, 0xef64e521, 0xf7aeefc9, 0xffffffff}; | 110 0xdcc91049, 0xe46f396d, 0xee991950, 0xef64e521, 0xf7aeefc9, 0xffffffff}; |
122 | 111 |
| 112 |
| 113 const double kNaNs[] = {-std::numeric_limits<double>::quiet_NaN(), |
| 114 std::numeric_limits<double>::quiet_NaN(), |
| 115 bit_cast<double>(V8_UINT64_C(0x7FFFFFFFFFFFFFFF)), |
| 116 bit_cast<double>(V8_UINT64_C(0xFFFFFFFFFFFFFFFF))}; |
| 117 |
123 } // namespace | 118 } // namespace |
124 | 119 |
125 | 120 |
126 // ----------------------------------------------------------------------------- | 121 // ----------------------------------------------------------------------------- |
127 // AnyToBoolean | 122 // AnyToBoolean |
128 | 123 |
129 | 124 |
130 TEST_F(SimplifiedOperatorReducerTest, AnyToBooleanWithBoolean) { | 125 TEST_F(SimplifiedOperatorReducerTest, AnyToBooleanWithBoolean) { |
131 Node* p = Parameter(Type::Boolean()); | 126 Node* p = Parameter(Type::Boolean()); |
132 Reduction r = Reduce(graph()->NewNode(simplified()->AnyToBoolean(), p)); | 127 Reduction r = Reduce(graph()->NewNode(simplified()->AnyToBoolean(), p)); |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 TEST_F(SimplifiedOperatorReducerTest, ChangeTaggedToFloat64WithConstant) { | 309 TEST_F(SimplifiedOperatorReducerTest, ChangeTaggedToFloat64WithConstant) { |
315 TRACED_FOREACH(double, n, kFloat64Values) { | 310 TRACED_FOREACH(double, n, kFloat64Values) { |
316 Reduction reduction = Reduce(graph()->NewNode( | 311 Reduction reduction = Reduce(graph()->NewNode( |
317 simplified()->ChangeTaggedToFloat64(), NumberConstant(n))); | 312 simplified()->ChangeTaggedToFloat64(), NumberConstant(n))); |
318 ASSERT_TRUE(reduction.Changed()); | 313 ASSERT_TRUE(reduction.Changed()); |
319 EXPECT_THAT(reduction.replacement(), IsFloat64Constant(BitEq(n))); | 314 EXPECT_THAT(reduction.replacement(), IsFloat64Constant(BitEq(n))); |
320 } | 315 } |
321 } | 316 } |
322 | 317 |
323 | 318 |
324 TEST_F(SimplifiedOperatorReducerTest, ChangeTaggedToFloat64WithNaNConstant1) { | 319 TEST_F(SimplifiedOperatorReducerTest, ChangeTaggedToFloat64WithNaNConstant) { |
325 Reduction reduction = | 320 TRACED_FOREACH(double, nan, kNaNs) { |
326 Reduce(graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | 321 Reduction reduction = Reduce(graph()->NewNode( |
327 NumberConstant(-base::OS::nan_value()))); | 322 simplified()->ChangeTaggedToFloat64(), NumberConstant(nan))); |
328 ASSERT_TRUE(reduction.Changed()); | 323 ASSERT_TRUE(reduction.Changed()); |
329 EXPECT_THAT(reduction.replacement(), | 324 EXPECT_THAT(reduction.replacement(), IsFloat64Constant(BitEq(nan))); |
330 IsFloat64Constant(BitEq(-base::OS::nan_value()))); | 325 } |
331 } | 326 } |
332 | 327 |
333 | 328 |
334 TEST_F(SimplifiedOperatorReducerTest, ChangeTaggedToFloat64WithNaNConstant2) { | |
335 Reduction reduction = | |
336 Reduce(graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | |
337 NumberConstant(base::OS::nan_value()))); | |
338 ASSERT_TRUE(reduction.Changed()); | |
339 EXPECT_THAT(reduction.replacement(), | |
340 IsFloat64Constant(BitEq(base::OS::nan_value()))); | |
341 } | |
342 | |
343 | |
344 // ----------------------------------------------------------------------------- | 329 // ----------------------------------------------------------------------------- |
345 // ChangeTaggedToInt32 | 330 // ChangeTaggedToInt32 |
346 | 331 |
347 | 332 |
348 TEST_F(SimplifiedOperatorReducerTest, | 333 TEST_F(SimplifiedOperatorReducerTest, |
349 ChangeTaggedToInt32WithChangeFloat64ToTagged) { | 334 ChangeTaggedToInt32WithChangeFloat64ToTagged) { |
350 Node* param0 = Parameter(0); | 335 Node* param0 = Parameter(0); |
351 Reduction reduction = Reduce(graph()->NewNode( | 336 Reduction reduction = Reduce(graph()->NewNode( |
352 simplified()->ChangeTaggedToInt32(), | 337 simplified()->ChangeTaggedToInt32(), |
353 graph()->NewNode(simplified()->ChangeFloat64ToTagged(), param0))); | 338 graph()->NewNode(simplified()->ChangeFloat64ToTagged(), param0))); |
(...skipping 16 matching lines...) Expand all Loading... |
370 TEST_F(SimplifiedOperatorReducerTest, ChangeTaggedToInt32WithConstant) { | 355 TEST_F(SimplifiedOperatorReducerTest, ChangeTaggedToInt32WithConstant) { |
371 TRACED_FOREACH(double, n, kFloat64Values) { | 356 TRACED_FOREACH(double, n, kFloat64Values) { |
372 Reduction reduction = Reduce(graph()->NewNode( | 357 Reduction reduction = Reduce(graph()->NewNode( |
373 simplified()->ChangeTaggedToInt32(), NumberConstant(n))); | 358 simplified()->ChangeTaggedToInt32(), NumberConstant(n))); |
374 ASSERT_TRUE(reduction.Changed()); | 359 ASSERT_TRUE(reduction.Changed()); |
375 EXPECT_THAT(reduction.replacement(), IsInt32Constant(DoubleToInt32(n))); | 360 EXPECT_THAT(reduction.replacement(), IsInt32Constant(DoubleToInt32(n))); |
376 } | 361 } |
377 } | 362 } |
378 | 363 |
379 | 364 |
380 TEST_F(SimplifiedOperatorReducerTest, ChangeTaggedToInt32WithNaNConstant1) { | 365 TEST_F(SimplifiedOperatorReducerTest, ChangeTaggedToInt32WithNaNConstant) { |
381 Reduction reduction = | 366 TRACED_FOREACH(double, nan, kNaNs) { |
382 Reduce(graph()->NewNode(simplified()->ChangeTaggedToInt32(), | 367 Reduction reduction = Reduce(graph()->NewNode( |
383 NumberConstant(-base::OS::nan_value()))); | 368 simplified()->ChangeTaggedToInt32(), NumberConstant(nan))); |
384 ASSERT_TRUE(reduction.Changed()); | 369 ASSERT_TRUE(reduction.Changed()); |
385 EXPECT_THAT(reduction.replacement(), IsInt32Constant(0)); | 370 EXPECT_THAT(reduction.replacement(), IsInt32Constant(0)); |
| 371 } |
386 } | 372 } |
387 | 373 |
388 | 374 |
389 TEST_F(SimplifiedOperatorReducerTest, ChangeTaggedToInt32WithNaNConstant2) { | |
390 Reduction reduction = | |
391 Reduce(graph()->NewNode(simplified()->ChangeTaggedToInt32(), | |
392 NumberConstant(base::OS::nan_value()))); | |
393 ASSERT_TRUE(reduction.Changed()); | |
394 EXPECT_THAT(reduction.replacement(), IsInt32Constant(0)); | |
395 } | |
396 | |
397 | |
398 // ----------------------------------------------------------------------------- | 375 // ----------------------------------------------------------------------------- |
399 // ChangeTaggedToUint32 | 376 // ChangeTaggedToUint32 |
400 | 377 |
401 | 378 |
402 TEST_F(SimplifiedOperatorReducerTest, | 379 TEST_F(SimplifiedOperatorReducerTest, |
403 ChangeTaggedToUint32WithChangeFloat64ToTagged) { | 380 ChangeTaggedToUint32WithChangeFloat64ToTagged) { |
404 Node* param0 = Parameter(0); | 381 Node* param0 = Parameter(0); |
405 Reduction reduction = Reduce(graph()->NewNode( | 382 Reduction reduction = Reduce(graph()->NewNode( |
406 simplified()->ChangeTaggedToUint32(), | 383 simplified()->ChangeTaggedToUint32(), |
407 graph()->NewNode(simplified()->ChangeFloat64ToTagged(), param0))); | 384 graph()->NewNode(simplified()->ChangeFloat64ToTagged(), param0))); |
(...skipping 17 matching lines...) Expand all Loading... |
425 TRACED_FOREACH(double, n, kFloat64Values) { | 402 TRACED_FOREACH(double, n, kFloat64Values) { |
426 Reduction reduction = Reduce(graph()->NewNode( | 403 Reduction reduction = Reduce(graph()->NewNode( |
427 simplified()->ChangeTaggedToUint32(), NumberConstant(n))); | 404 simplified()->ChangeTaggedToUint32(), NumberConstant(n))); |
428 ASSERT_TRUE(reduction.Changed()); | 405 ASSERT_TRUE(reduction.Changed()); |
429 EXPECT_THAT(reduction.replacement(), | 406 EXPECT_THAT(reduction.replacement(), |
430 IsInt32Constant(bit_cast<int32_t>(DoubleToUint32(n)))); | 407 IsInt32Constant(bit_cast<int32_t>(DoubleToUint32(n)))); |
431 } | 408 } |
432 } | 409 } |
433 | 410 |
434 | 411 |
435 TEST_F(SimplifiedOperatorReducerTest, ChangeTaggedToUint32WithNaNConstant1) { | 412 TEST_F(SimplifiedOperatorReducerTest, ChangeTaggedToUint32WithNaNConstant) { |
436 Reduction reduction = | 413 TRACED_FOREACH(double, nan, kNaNs) { |
437 Reduce(graph()->NewNode(simplified()->ChangeTaggedToUint32(), | 414 Reduction reduction = Reduce(graph()->NewNode( |
438 NumberConstant(-base::OS::nan_value()))); | 415 simplified()->ChangeTaggedToUint32(), NumberConstant(nan))); |
439 ASSERT_TRUE(reduction.Changed()); | 416 ASSERT_TRUE(reduction.Changed()); |
440 EXPECT_THAT(reduction.replacement(), IsInt32Constant(0)); | 417 EXPECT_THAT(reduction.replacement(), IsInt32Constant(0)); |
| 418 } |
441 } | 419 } |
442 | 420 |
443 | 421 |
444 TEST_F(SimplifiedOperatorReducerTest, ChangeTaggedToUint32WithNaNConstant2) { | |
445 Reduction reduction = | |
446 Reduce(graph()->NewNode(simplified()->ChangeTaggedToUint32(), | |
447 NumberConstant(base::OS::nan_value()))); | |
448 ASSERT_TRUE(reduction.Changed()); | |
449 EXPECT_THAT(reduction.replacement(), IsInt32Constant(0)); | |
450 } | |
451 | |
452 | |
453 // ----------------------------------------------------------------------------- | 422 // ----------------------------------------------------------------------------- |
454 // ChangeUint32ToTagged | 423 // ChangeUint32ToTagged |
455 | 424 |
456 | 425 |
457 TEST_F(SimplifiedOperatorReducerTest, ChangeUint32ToTagged) { | 426 TEST_F(SimplifiedOperatorReducerTest, ChangeUint32ToTagged) { |
458 TRACED_FOREACH(uint32_t, n, kUint32Values) { | 427 TRACED_FOREACH(uint32_t, n, kUint32Values) { |
459 Reduction reduction = | 428 Reduction reduction = |
460 Reduce(graph()->NewNode(simplified()->ChangeUint32ToTagged(), | 429 Reduce(graph()->NewNode(simplified()->ChangeUint32ToTagged(), |
461 Int32Constant(bit_cast<int32_t>(n)))); | 430 Int32Constant(bit_cast<int32_t>(n)))); |
462 ASSERT_TRUE(reduction.Changed()); | 431 ASSERT_TRUE(reduction.Changed()); |
463 EXPECT_THAT(reduction.replacement(), IsNumberConstant(BitEq(FastUI2D(n)))); | 432 EXPECT_THAT(reduction.replacement(), IsNumberConstant(BitEq(FastUI2D(n)))); |
464 } | 433 } |
465 } | 434 } |
466 | 435 |
467 } // namespace compiler | 436 } // namespace compiler |
468 } // namespace internal | 437 } // namespace internal |
469 } // namespace v8 | 438 } // namespace v8 |
OLD | NEW |