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

Issue 2841803002: Add initial tests for Kernel interpreter (Closed)

Created:
3 years, 8 months ago by zhivkag
Modified:
3 years, 7 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add initial tests for Kernel interpreter Add logging in the Interpreter for: - StaticInvocationExpression, including calls to print - ReturnStatement - IfStatement BUG= R=dmitryas@google.com Committed: https://github.com/dart-lang/sdk/commit/184cc2576685ba74417ec44d547ea5172394c447

Patch Set 1 #

Patch Set 2 : Remove some tests #

Total comments: 7

Patch Set 3 : Apply comments #

Total comments: 2

Patch Set 4 : Add crash when evaluation throws an exception #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -1 line) Patch
M pkg/kernel/lib/interpreter/interpreter.dart View 1 2 7 chunks +13 lines, -1 line 0 comments Download
A pkg/kernel/test/interpreter/interpreter.status View 1 chunk +3 lines, -0 lines 0 comments Download
A pkg/kernel/test/interpreter/suite.dart View 1 2 3 1 chunk +182 lines, -0 lines 0 comments Download
A pkg/kernel/test/interpreter/testing.json View 1 chunk +28 lines, -0 lines 0 comments Download
A pkg/kernel/testcases/interpreter/print_test.dart View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A pkg/kernel/testcases/interpreter/print_test.dart.expect View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A pkg/kernel/testcases/interpreter/static_invocation_test.dart View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
A pkg/kernel/testcases/interpreter/static_invocation_test.dart.expect View 1 2 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
zhivkag
Hi, This change adds initial tests for the interpreter. It adds logging when evaluating different ...
3 years, 7 months ago (2017-04-28 13:09:14 UTC) #2
Dmitry Stefantsov
I think these tests are really useful to have! I have a couple of comments, ...
3 years, 7 months ago (2017-05-01 09:35:24 UTC) #3
zhivkag
Thanks for the comments, Dima! I have added an additional step for matching the output ...
3 years, 7 months ago (2017-05-01 11:36:20 UTC) #5
Dmitry Stefantsov
LGTM with a small comment below. https://codereview.chromium.org/2841803002/diff/20001/pkg/kernel/testcases/interpreter/static_invocation_test.dart.expect File pkg/kernel/testcases/interpreter/static_invocation_test.dart.expect (right): https://codereview.chromium.org/2841803002/diff/20001/pkg/kernel/testcases/interpreter/static_invocation_test.dart.expect#newcode16 pkg/kernel/testcases/interpreter/static_invocation_test.dart.expect:16: return On 2017/05/01 ...
3 years, 7 months ago (2017-05-01 13:29:49 UTC) #6
zhivkag
Thanks! https://codereview.chromium.org/2841803002/diff/40001/pkg/kernel/test/interpreter/suite.dart File pkg/kernel/test/interpreter/suite.dart (right): https://codereview.chromium.org/2841803002/diff/40001/pkg/kernel/test/interpreter/suite.dart#newcode135 pkg/kernel/test/interpreter/suite.dart:135: new Interpreter(program).run(); On 2017/05/01 13:29:49, Dmitry Stefantsov wrote: ...
3 years, 7 months ago (2017-05-01 14:11:48 UTC) #7
zhivkag
3 years, 7 months ago (2017-05-01 14:12:42 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
184cc2576685ba74417ec44d547ea5172394c447 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698