| 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 <list> | 5 #include <list> |
| 6 | 6 |
| 7 #include "src/compiler/instruction-selector-unittest.h" | 7 #include "src/compiler/instruction-selector-unittest.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 Stream s = m.Build(); | 317 Stream s = m.Build(); |
| 318 | 318 |
| 319 ASSERT_EQ(1U, s.size()); | 319 ASSERT_EQ(1U, s.size()); |
| 320 EXPECT_EQ(kArm64Neg32, s[0]->arch_opcode()); | 320 EXPECT_EQ(kArm64Neg32, s[0]->arch_opcode()); |
| 321 EXPECT_EQ(1U, s[0]->InputCount()); | 321 EXPECT_EQ(1U, s[0]->InputCount()); |
| 322 EXPECT_EQ(1U, s[0]->OutputCount()); | 322 EXPECT_EQ(1U, s[0]->OutputCount()); |
| 323 } | 323 } |
| 324 { | 324 { |
| 325 // 64-bit subtract. | 325 // 64-bit subtract. |
| 326 StreamBuilder m(this, kMachInt64, kMachInt64, kMachInt64); | 326 StreamBuilder m(this, kMachInt64, kMachInt64, kMachInt64); |
| 327 m.Return(m.Int64Sub(m.Int32Constant(0), m.Parameter(0))); | 327 m.Return(m.Int64Sub(m.Int64Constant(0), m.Parameter(0))); |
| 328 Stream s = m.Build(); | 328 Stream s = m.Build(); |
| 329 | 329 |
| 330 ASSERT_EQ(1U, s.size()); | 330 ASSERT_EQ(1U, s.size()); |
| 331 EXPECT_EQ(kArm64Neg, s[0]->arch_opcode()); | 331 EXPECT_EQ(kArm64Neg, s[0]->arch_opcode()); |
| 332 EXPECT_EQ(1U, s[0]->InputCount()); | 332 EXPECT_EQ(1U, s[0]->InputCount()); |
| 333 EXPECT_EQ(1U, s[0]->OutputCount()); | 333 EXPECT_EQ(1U, s[0]->OutputCount()); |
| 334 } | 334 } |
| 335 } | 335 } |
| 336 | 336 |
| 337 | 337 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 } | 535 } |
| 536 | 536 |
| 537 | 537 |
| 538 INSTANTIATE_TEST_CASE_P(InstructionSelectorTest, | 538 INSTANTIATE_TEST_CASE_P(InstructionSelectorTest, |
| 539 InstructionSelectorMemoryAccessTest, | 539 InstructionSelectorMemoryAccessTest, |
| 540 ::testing::ValuesIn(kMemoryAccesses)); | 540 ::testing::ValuesIn(kMemoryAccesses)); |
| 541 | 541 |
| 542 } // namespace compiler | 542 } // namespace compiler |
| 543 } // namespace internal | 543 } // namespace internal |
| 544 } // namespace v8 | 544 } // namespace v8 |
| OLD | NEW |