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

Issue 2158173003: fix #603, support mock objects (Closed)

Created:
4 years, 5 months ago by Jennifer Messerly
Modified:
4 years, 5 months ago
Reviewers:
Leaf
CC:
dev-compiler+reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

fix #603, support mock objects if noSuchMethod is used to implement an abstract member, this will be detected and appropriate code will be generated. R=leafp@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/b77003940f96fb772995016d9ee9c3204f8f5e78

Patch Set 1 #

Total comments: 5

Patch Set 2 : add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1384 lines, -46 lines) Patch
M lib/runtime/dart_sdk.js View 12 chunks +23 lines, -23 lines 0 comments Download
M lib/src/compiler/code_generator.dart View 1 4 chunks +149 lines, -2 lines 0 comments Download
M lib/src/js_ast/nodes.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pubspec.lock View 2 chunks +2 lines, -2 lines 0 comments Download
M test/browser/language_tests.js View 1 chunk +0 lines, -1 line 0 comments Download
A test/codegen/language/no_such_method_mock_test.dart View 1 1 chunk +62 lines, -0 lines 0 comments Download
M test/codegen_expected/language/flatten_test_01_multi.js View 2 chunks +74 lines, -0 lines 0 comments Download
M test/codegen_expected/language/flatten_test_02_multi.js View 2 chunks +74 lines, -0 lines 0 comments Download
M test/codegen_expected/language/flatten_test_03_multi.js View 2 chunks +74 lines, -0 lines 0 comments Download
M test/codegen_expected/language/flatten_test_04_multi.js View 2 chunks +74 lines, -0 lines 0 comments Download
M test/codegen_expected/language/flatten_test_05_multi.js View 2 chunks +74 lines, -0 lines 0 comments Download
M test/codegen_expected/language/flatten_test_06_multi.js View 2 chunks +74 lines, -0 lines 0 comments Download
M test/codegen_expected/language/flatten_test_07_multi.js View 2 chunks +74 lines, -0 lines 0 comments Download
M test/codegen_expected/language/flatten_test_08_multi.js View 2 chunks +74 lines, -0 lines 0 comments Download
M test/codegen_expected/language/flatten_test_09_multi.js View 2 chunks +74 lines, -0 lines 0 comments Download
M test/codegen_expected/language/flatten_test_10_multi.js View 2 chunks +74 lines, -0 lines 0 comments Download
M test/codegen_expected/language/flatten_test_11_multi.js View 2 chunks +74 lines, -0 lines 0 comments Download
M test/codegen_expected/language/flatten_test_12_multi.js View 2 chunks +74 lines, -0 lines 0 comments Download
M test/codegen_expected/language/flatten_test_none_multi.js View 2 chunks +74 lines, -0 lines 0 comments Download
A test/codegen_expected/language/no_such_method_mock_test.js View 1 1 chunk +87 lines, -0 lines 0 comments Download
A test/codegen_expected/language/no_such_method_native_test.js View 1 chunk +47 lines, -0 lines 0 comments Download
M test/codegen_expected/language/no_such_method_subtype_test.js View 1 chunk +3 lines, -0 lines 0 comments Download
M test/codegen_expected/language/override_inheritance_no_such_method_test_03_multi.js View 1 chunk +3 lines, -0 lines 0 comments Download
M test/codegen_expected/language/override_inheritance_no_such_method_test_04_multi.js View 1 chunk +3 lines, -0 lines 0 comments Download
M test/codegen_expected/language/override_inheritance_no_such_method_test_05_multi.js View 1 chunk +5 lines, -1 line 0 comments Download
M test/codegen_expected/language/override_inheritance_no_such_method_test_08_multi.js View 1 chunk +3 lines, -0 lines 0 comments Download
M test/codegen_expected/language/override_inheritance_no_such_method_test_11_multi.js View 1 chunk +3 lines, -0 lines 0 comments Download
M test/codegen_expected/language/override_inheritance_no_such_method_test_13_multi.js View 1 chunk +8 lines, -1 line 0 comments Download
M test/codegen_test.dart View 8 chunks +16 lines, -8 lines 0 comments Download
M tool/input_sdk/private/ddc_runtime/operations.dart View 6 chunks +6 lines, -6 lines 0 comments Download
M tool/sdk_expected_errors.txt View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Jennifer Messerly
4 years, 5 months ago (2016-07-18 22:17:59 UTC) #2
Leaf
lgtm, thanks! https://codereview.chromium.org/2158173003/diff/1/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/2158173003/diff/1/lib/src/compiler/code_generator.dart#newcode1377 lib/src/compiler/code_generator.dart:1377: Iterable<JS.Method> _implementMockInterfaces(InterfaceType type) { I don't think ...
4 years, 5 months ago (2016-07-18 23:06:07 UTC) #3
Jennifer Messerly
Thanks Leaf! landing with your suggestions :) https://codereview.chromium.org/2158173003/diff/1/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/2158173003/diff/1/lib/src/compiler/code_generator.dart#newcode1377 lib/src/compiler/code_generator.dart:1377: Iterable<JS.Method> _implementMockInterfaces(InterfaceType ...
4 years, 5 months ago (2016-07-19 20:23:55 UTC) #4
Jennifer Messerly
4 years, 5 months ago (2016-07-19 20:24:05 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
b77003940f96fb772995016d9ee9c3204f8f5e78 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698