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

Issue 1283733003: VM: Refactor assembler test that rely on the constant pool. (Closed)

Created:
5 years, 4 months ago by Florian Schneider
Modified:
5 years, 4 months ago
Reviewers:
zra, srdjan
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

VM: Refactor assembler test that rely on the constant pool. This makes the test code independent of the way we call Dart code and makes it easier to change the calling convention. The code for calling test code is now encapsulated in unit_test.h instead of being spread over many different files. I only changed the tests that need a constant pool set up, but the same strategy could be used for all other assembler tests to avoid unnecessary duplicated boilerplate code. BUG= R=zra@google.com Committed: https://github.com/dart-lang/sdk/commit/25966d228d65ce1722bba854e62f0b1c7433018b

Patch Set 1 #

Total comments: 15

Patch Set 2 : fixed 32-bit build and strengthened asserts #

Total comments: 3

Patch Set 3 : don't set up frame in StoreIntoObject asm test #

Patch Set 4 : Added comments, fixed that pass in Thread #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -148 lines) Patch
M runtime/vm/assembler_arm64_test.cc View 1 2 3 5 chunks +53 lines, -78 lines 0 comments Download
M runtime/vm/assembler_test.cc View 2 chunks +8 lines, -19 lines 0 comments Download
M runtime/vm/assembler_x64_test.cc View 1 2 10 chunks +25 lines, -46 lines 0 comments Download
M runtime/vm/unit_test.h View 1 2 3 2 chunks +94 lines, -3 lines 0 comments Download
M runtime/vm/unit_test.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Florian Schneider
5 years, 4 months ago (2015-08-10 11:29:12 UTC) #2
srdjan
https://codereview.chromium.org/1283733003/diff/1/runtime/vm/unit_test.h File runtime/vm/unit_test.h (right): https://codereview.chromium.org/1283733003/diff/1/runtime/vm/unit_test.h#newcode360 runtime/vm/unit_test.h:360: #if defined(USING_SIMULATOR) I am not sure I found this ...
5 years, 4 months ago (2015-08-10 16:23:51 UTC) #3
zra
https://codereview.chromium.org/1283733003/diff/1/runtime/vm/unit_test.h File runtime/vm/unit_test.h (right): https://codereview.chromium.org/1283733003/diff/1/runtime/vm/unit_test.h#newcode360 runtime/vm/unit_test.h:360: #if defined(USING_SIMULATOR) This makes writing the assembler tests a ...
5 years, 4 months ago (2015-08-10 16:43:32 UTC) #4
Florian Schneider
https://codereview.chromium.org/1283733003/diff/1/runtime/vm/unit_test.h File runtime/vm/unit_test.h (right): https://codereview.chromium.org/1283733003/diff/1/runtime/vm/unit_test.h#newcode360 runtime/vm/unit_test.h:360: #if defined(USING_SIMULATOR) On 2015/08/10 16:23:51, srdjan wrote: > I ...
5 years, 4 months ago (2015-08-11 07:58:29 UTC) #5
zra
https://codereview.chromium.org/1283733003/diff/1/runtime/vm/unit_test.h File runtime/vm/unit_test.h (right): https://codereview.chromium.org/1283733003/diff/1/runtime/vm/unit_test.h#newcode400 runtime/vm/unit_test.h:400: typedef ResultType (*FunctionType) (Arg1Type); On 2015/08/11 07:58:28, Florian Schneider ...
5 years, 4 months ago (2015-08-11 19:48:17 UTC) #6
Florian Schneider
https://codereview.chromium.org/1283733003/diff/1/runtime/vm/unit_test.h File runtime/vm/unit_test.h (right): https://codereview.chromium.org/1283733003/diff/1/runtime/vm/unit_test.h#newcode400 runtime/vm/unit_test.h:400: typedef ResultType (*FunctionType) (Arg1Type); On 2015/08/11 19:48:17, zra wrote: ...
5 years, 4 months ago (2015-08-12 07:30:53 UTC) #7
srdjan
We have reached an impasse with this review. Let's talk about it on Monday's compiler ...
5 years, 4 months ago (2015-08-13 20:24:27 UTC) #8
zra
lgtm only with the asserts I'm suggesting, as explained below. I'd also still encourage you ...
5 years, 4 months ago (2015-08-17 16:35:43 UTC) #9
Florian Schneider
5 years, 4 months ago (2015-08-18 09:36:10 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
25966d228d65ce1722bba854e62f0b1c7433018b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698