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

Issue 826413003: Use a shared function to represent type substitutions with dynamic. (Closed)

Created:
5 years, 11 months ago by herhut
Modified:
5 years, 11 months ago
Reviewers:
karlklose, floitsch
CC:
reviews_dartlang.org, zarah
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Use a shared function to represent type substitutions with dynamic. BUG= R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=43000

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comments #

Total comments: 1

Patch Set 3 : comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -8 lines) Patch
M pkg/compiler/lib/src/js_backend/runtime_types.dart View 1 3 chunks +14 lines, -6 lines 1 comment Download
M pkg/compiler/lib/src/js_emitter/code_emitter_task.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart View 1 2 2 chunks +16 lines, -0 lines 1 comment Download
M sdk/lib/_internal/compiler/js_lib/js_rti.dart View 1 2 chunks +3 lines, -2 lines 1 comment Download

Messages

Total messages: 7 (1 generated)
herhut
5 years, 11 months ago (2015-01-13 14:17:10 UTC) #2
floitsch
Not completely happy with the solution yet. https://codereview.chromium.org/826413003/diff/1/pkg/compiler/lib/src/js_backend/runtime_types.dart File pkg/compiler/lib/src/js_backend/runtime_types.dart (right): https://codereview.chromium.org/826413003/diff/1/pkg/compiler/lib/src/js_backend/runtime_types.dart#newcode886 pkg/compiler/lib/src/js_backend/runtime_types.dart:886: return js('#.#', ...
5 years, 11 months ago (2015-01-13 17:45:24 UTC) #3
herhut
https://codereview.chromium.org/826413003/diff/1/pkg/compiler/lib/src/js_backend/runtime_types.dart File pkg/compiler/lib/src/js_backend/runtime_types.dart (right): https://codereview.chromium.org/826413003/diff/1/pkg/compiler/lib/src/js_backend/runtime_types.dart#newcode886 pkg/compiler/lib/src/js_backend/runtime_types.dart:886: return js('#.#', [rti.backend.namer.isolateName, On 2015/01/13 17:45:24, floitsch wrote: > ...
5 years, 11 months ago (2015-01-15 10:43:02 UTC) #4
floitsch
LGTM. https://codereview.chromium.org/826413003/diff/20001/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart File pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart (right): https://codereview.chromium.org/826413003/diff/20001/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart#newcode78 pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart:78: return js.js(r"""function() { return null; }"""); Could we ...
5 years, 11 months ago (2015-01-16 16:56:13 UTC) #5
herhut
Committed patchset #3 (id:40001) manually as 43000 (presubmit successful).
5 years, 11 months ago (2015-01-20 09:42:10 UTC) #6
karlklose
5 years, 11 months ago (2015-01-20 10:37:32 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/826413003/diff/40001/pkg/compiler/lib/src/js_...
File pkg/compiler/lib/src/js_backend/runtime_types.dart (right):

https://codereview.chromium.org/826413003/diff/40001/pkg/compiler/lib/src/js_...
pkg/compiler/lib/src/js_backend/runtime_types.dart:36: =>
backend.namer.getMappedInstanceName('functionThatReturnsNull');
Use {} when it does not fit on a line.

How about 'nameOfFunctionThatReturnsNull'? I find that easier to understand.

https://codereview.chromium.org/826413003/diff/40001/pkg/compiler/lib/src/js_...
File pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart (right):

https://codereview.chromium.org/826413003/diff/40001/pkg/compiler/lib/src/js_...
pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart:934: jsAst.Expression
generateFunctionThatReturnsNull() {
This generates code to access the function, not the function itself.

https://codereview.chromium.org/826413003/diff/40001/sdk/lib/_internal/compil...
File sdk/lib/_internal/compiler/js_lib/js_rti.dart (right):

https://codereview.chromium.org/826413003/diff/40001/sdk/lib/_internal/compil...
sdk/lib/_internal/compiler/js_lib/js_rti.dart:40: *     a list expression. The
function may also return null, which is equivalent
"null" -> "`null`".

Powered by Google App Engine
This is Rietveld 408576698