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

Issue 2595293002: MIPS: Reland of `Fix bad RegisterConfiguration usage in InstructionSequence unit tests` (Closed)

Created:
4 years ago by ivica.bogosavljevic
Modified:
3 years, 12 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

MIPS: Reland of `Fix bad RegisterConfiguration usage in InstructionSequence unit tests` Reland 0cf56232209d4c9c669b8426680de18806f6c29a The original patch got reverted because testing RegisterConfiguration was overwritten by turbofan RegisterConfiguration. This caused some test cases not being properly tested. The new patch uses correct RegisterConfiguration. Original commit message: Test InstructionSequenceTest has been initialized with a testing RegisterConfiguration instance defined in instruction-sequence-unittest.h, whereas class ExplicitOperand which is being tested used RegisterConfiguration from instruction.cc. In case these two instances are different, the tests would fail. The issue is fixed by using the same instance of RegisterConfiguration both for test code and code under test. Additionally, the tests in register-allocator-unittest.cc use hardcoded values for register and begin failing is the hardcoded register is not available for allocation. Fix by forcing the use of allocatable registers only. TEST=unittests.MoveOptimizerTest.RemovesRedundantExplicit,unittests.RegisterAllocatorTest.SpillPhi BUG= Review-Url: https://codereview.chromium.org/2595293002 Cr-Commit-Position: refs/heads/master@{#41938} Committed: https://chromium.googlesource.com/v8/v8/+/c42bbec953a962d9900701e322559d1f9ec8029d

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address code review remarks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -3 lines) Patch
M src/compiler/instruction.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/compiler/instruction.cc View 1 2 chunks +17 lines, -1 line 0 comments Download
M test/unittests/compiler/instruction-sequence-unittest.h View 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler/instruction-sequence-unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 17 (13 generated)
ivica.bogosavljevic
PTAL
4 years ago (2016-12-22 09:21:53 UTC) #2
Mircea Trofin
lgtm https://codereview.chromium.org/2595293002/diff/1/src/compiler/instruction.h File src/compiler/instruction.h (right): https://codereview.chromium.org/2595293002/diff/1/src/compiler/instruction.h#newcode1573 src/compiler/instruction.h:1573: void SetRegisterConfigurationForTesting( shouldn't this be static? https://codereview.chromium.org/2595293002/diff/1/src/compiler/instruction.h#newcode1575 src/compiler/instruction.h:1575: ...
4 years ago (2016-12-22 16:21:28 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2595293002/20001
3 years, 12 months ago (2016-12-23 10:49:33 UTC) #14
commit-bot: I haz the power
3 years, 12 months ago (2016-12-23 10:51:15 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/c42bbec953a962d9900701e322559d1f9ec...

Powered by Google App Engine
This is Rietveld 408576698