| 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 "test/unittests/compiler/instruction-selector-unittest.h" | 5 #include "test/unittests/compiler/instruction-selector-unittest.h" | 
| 6 | 6 | 
| 7 namespace v8 { | 7 namespace v8 { | 
| 8 namespace internal { | 8 namespace internal { | 
| 9 namespace compiler { | 9 namespace compiler { | 
| 10 | 10 | 
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 325 | 325 | 
| 326 TEST_P(InstructionSelectorCmpTest, Parameter) { | 326 TEST_P(InstructionSelectorCmpTest, Parameter) { | 
| 327   const IntCmp cmp = GetParam(); | 327   const IntCmp cmp = GetParam(); | 
| 328   const MachineType type = cmp.mi.machine_type; | 328   const MachineType type = cmp.mi.machine_type; | 
| 329   StreamBuilder m(this, type, type, type); | 329   StreamBuilder m(this, type, type, type); | 
| 330   m.Return((m.*cmp.mi.constructor)(m.Parameter(0), m.Parameter(1))); | 330   m.Return((m.*cmp.mi.constructor)(m.Parameter(0), m.Parameter(1))); | 
| 331   Stream s = m.Build(); | 331   Stream s = m.Build(); | 
| 332 | 332 | 
| 333   if (FLAG_debug_code && | 333   if (FLAG_debug_code && | 
| 334       type.representation() == MachineRepresentation::kWord32) { | 334       type.representation() == MachineRepresentation::kWord32) { | 
| 335     ASSERT_EQ(6, s.size()); | 335     ASSERT_EQ(6U, s.size()); | 
| 336 | 336 | 
| 337     EXPECT_EQ(cmp.mi.arch_opcode, s[0]->arch_opcode()); | 337     EXPECT_EQ(cmp.mi.arch_opcode, s[0]->arch_opcode()); | 
| 338     EXPECT_EQ(2U, s[0]->InputCount()); | 338     EXPECT_EQ(2U, s[0]->InputCount()); | 
| 339     EXPECT_EQ(1U, s[0]->OutputCount()); | 339     EXPECT_EQ(1U, s[0]->OutputCount()); | 
| 340 | 340 | 
| 341     EXPECT_EQ(kMips64Dshl, s[1]->arch_opcode()); | 341     EXPECT_EQ(kMips64Dshl, s[1]->arch_opcode()); | 
| 342     EXPECT_EQ(2U, s[1]->InputCount()); | 342     EXPECT_EQ(2U, s[1]->InputCount()); | 
| 343     EXPECT_EQ(1U, s[1]->OutputCount()); | 343     EXPECT_EQ(1U, s[1]->OutputCount()); | 
| 344 | 344 | 
| 345     EXPECT_EQ(kMips64Dshl, s[2]->arch_opcode()); | 345     EXPECT_EQ(kMips64Dshl, s[2]->arch_opcode()); | 
| (...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1907 #endif | 1907 #endif | 
| 1908 | 1908 | 
| 1909       ASSERT_EQ(1U, s[0]->OutputCount()); | 1909       ASSERT_EQ(1U, s[0]->OutputCount()); | 
| 1910     } | 1910     } | 
| 1911   } | 1911   } | 
| 1912 } | 1912 } | 
| 1913 | 1913 | 
| 1914 }  // namespace compiler | 1914 }  // namespace compiler | 
| 1915 }  // namespace internal | 1915 }  // namespace internal | 
| 1916 }  // namespace v8 | 1916 }  // namespace v8 | 
| OLD | NEW | 
|---|