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

Side by Side Diff: test/unittests/compiler/register-allocator-unittest.cc

Issue 1305393003: [turbofan] Deferred blocks splintering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/flag-definitions.h ('k') | tools/gyp/v8.gyp » ('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 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/pipeline.h" 5 #include "src/compiler/pipeline.h"
6 #include "test/unittests/compiler/instruction-sequence-unittest.h" 6 #include "test/unittests/compiler/instruction-sequence-unittest.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 namespace compiler { 10 namespace compiler {
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 // so only var3 is spilled in deferred blocks. Greedy avoids spilling 1&2. 679 // so only var3 is spilled in deferred blocks. Greedy avoids spilling 1&2.
680 // Expand the test once greedy is back online with this facility. 680 // Expand the test once greedy is back online with this facility.
681 const int var3_reg = 2; 681 const int var3_reg = 2;
682 const int var3_slot = 2; 682 const int var3_slot = 2;
683 683
684 EXPECT_FALSE(IsParallelMovePresent(def_of_v2, Instruction::START, sequence(), 684 EXPECT_FALSE(IsParallelMovePresent(def_of_v2, Instruction::START, sequence(),
685 Reg(var3_reg), Slot())); 685 Reg(var3_reg), Slot()));
686 EXPECT_TRUE(IsParallelMovePresent(call_in_b1, Instruction::START, sequence(), 686 EXPECT_TRUE(IsParallelMovePresent(call_in_b1, Instruction::START, sequence(),
687 Reg(var3_reg), Slot(var3_slot))); 687 Reg(var3_reg), Slot(var3_slot)));
688 EXPECT_TRUE(IsParallelMovePresent(end_of_b1, Instruction::START, sequence(), 688 EXPECT_TRUE(IsParallelMovePresent(end_of_b1, Instruction::START, sequence(),
689 Slot(var3_slot), Reg())); 689 Slot(var3_slot), Reg(var3_reg)));
690 690
691 EXPECT_TRUE(IsParallelMovePresent(call_in_b2, Instruction::START, sequence(), 691 EXPECT_TRUE(IsParallelMovePresent(call_in_b2, Instruction::START, sequence(),
692 Reg(var3_reg), Slot(var3_slot))); 692 Reg(var3_reg), Slot(var3_slot)));
693 EXPECT_TRUE(IsParallelMovePresent(end_of_b2, Instruction::START, sequence(), 693 EXPECT_TRUE(IsParallelMovePresent(end_of_b2, Instruction::START, sequence(),
694 Slot(var3_slot), Reg())); 694 Slot(var3_slot), Reg()));
695 695
696 696
697 EXPECT_EQ(0, 697 EXPECT_EQ(0,
698 GetParallelMoveCount(start_of_b3, Instruction::START, sequence())); 698 GetParallelMoveCount(start_of_b3, Instruction::START, sequence()));
699 } 699 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 INSTANTIATE_TEST_CASE_P( 775 INSTANTIATE_TEST_CASE_P(
776 RegisterAllocatorTest, SlotConstraintTest, 776 RegisterAllocatorTest, SlotConstraintTest,
777 ::testing::Combine(::testing::ValuesIn(kParameterTypes), 777 ::testing::Combine(::testing::ValuesIn(kParameterTypes),
778 ::testing::Range(0, SlotConstraintTest::kMaxVariant))); 778 ::testing::Range(0, SlotConstraintTest::kMaxVariant)));
779 779
780 #endif // GTEST_HAS_COMBINE 780 #endif // GTEST_HAS_COMBINE
781 781
782 } // namespace compiler 782 } // namespace compiler
783 } // namespace internal 783 } // namespace internal
784 } // namespace v8 784 } // namespace v8
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698