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

Issue 1076883003: Initial support for runtime function types and type checking (Closed)

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

Description

Initial support for runtime function types and type checking Notes: - We probably should have a general type object class for all types. Just handling function types for now. - Not yet encoding the type on functions during codegen ... falling back on arity effectively. - typedefs are lazy to avoid ordering issues. Could perhaps reuse existing logic instead. R=jmesserly@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/98da9593b3527844e17b2cca4d53facb523502b0

Patch Set 1 #

Patch Set 2 : Add tests #

Patch Set 3 : uncomment code #

Total comments: 34

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+564 lines, -188 lines) Patch
M lib/runtime/dart/_interceptors.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M lib/runtime/dart/_internal.js View 8 chunks +9 lines, -9 lines 0 comments Download
M lib/runtime/dart/_isolate_helper.js View 1 2 3 5 chunks +7 lines, -7 lines 0 comments Download
M lib/runtime/dart/_js_helper.js View 1 2 3 9 chunks +10 lines, -10 lines 0 comments Download
M lib/runtime/dart/async.js View 1 2 3 47 chunks +70 lines, -70 lines 0 comments Download
M lib/runtime/dart/collection.js View 1 2 3 20 chunks +35 lines, -35 lines 0 comments Download
M lib/runtime/dart/convert.js View 1 2 3 15 chunks +17 lines, -17 lines 0 comments Download
M lib/runtime/dart/core.js View 1 2 3 9 chunks +11 lines, -11 lines 0 comments Download
M lib/runtime/dart/isolate.js View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M lib/runtime/dart_runtime.js View 1 2 3 7 chunks +264 lines, -19 lines 0 comments Download
M lib/src/codegen/js_codegen.dart View 1 2 3 2 chunks +58 lines, -6 lines 0 comments Download
M test/browser/index.html View 1 chunk +2 lines, -0 lines 0 comments Download
M test/browser/runtime_tests.js View 1 3 chunks +77 lines, -0 lines 0 comments Download
M test/codegen/expect/sunflower/dom.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (1 generated)
vsm
5 years, 8 months ago (2015-04-09 16:28:26 UTC) #2
Jennifer Messerly
It would be nice to consolidate function type logic with AtScript somehow if we can? ...
5 years, 8 months ago (2015-04-09 18:44:29 UTC) #3
Jennifer Messerly
https://codereview.chromium.org/1076883003/diff/40001/lib/runtime/dart_runtime.js File lib/runtime/dart_runtime.js (right): https://codereview.chromium.org/1076883003/diff/40001/lib/runtime/dart_runtime.js#newcode339 lib/runtime/dart_runtime.js:339: // TODO(vsm): Common type object? On 2015/04/09 18:44:28, John ...
5 years, 8 months ago (2015-04-09 18:47:24 UTC) #4
vsm
https://codereview.chromium.org/1076883003/diff/40001/lib/runtime/dart/_internal.js File lib/runtime/dart/_internal.js (right): https://codereview.chromium.org/1076883003/diff/40001/lib/runtime/dart/_internal.js#newcode351 lib/runtime/dart/_internal.js:351: let _Transformation = dart.typedef('_Transformation', () => dart.functionType(T, [S])); On ...
5 years, 8 months ago (2015-04-09 19:52:25 UTC) #5
Jennifer Messerly
lgtm https://codereview.chromium.org/1076883003/diff/40001/lib/runtime/dart/_internal.js File lib/runtime/dart/_internal.js (right): https://codereview.chromium.org/1076883003/diff/40001/lib/runtime/dart/_internal.js#newcode503 lib/runtime/dart/_internal.js:503: return new (ExpandIterator$(S, T))(this[_iterable][core.$iterator], dart.as(this[_f], dart.functionType(core.Iterable$(T), [S]))); On ...
5 years, 8 months ago (2015-04-10 00:57:18 UTC) #6
vsm
5 years, 8 months ago (2015-04-10 01:40:09 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
98da9593b3527844e17b2cca4d53facb523502b0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698