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

Issue 1071133002: dart2js: create a 'types' table for each deferred unit. (Closed)

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

Description

dart2js: create a 'types' table for each deferred unit. This fixes part of dartbug.com/22995. R=sigurdm@google.com Committed: https://code.google.com/p/dart/source/detail?r=45061

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed comments #

Patch Set 3 : Restore accidentally deleted line. #

Total comments: 2

Patch Set 4 : Rebased and updated comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -110 lines) Patch
M pkg/compiler/lib/src/js_backend/namer.dart View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/runtime_types.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_emitter/metadata_collector.dart View 4 chunks +23 lines, -10 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/model.dart View 1 chunk +7 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart View 1 16 chunks +50 lines, -25 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart View 1 2 3 5 chunks +40 lines, -22 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_emitter/program_builder.dart View 1 2 3 3 chunks +9 lines, -4 lines 0 comments Download
M tests/compiler/dart2js/type_representation_test.dart View 2 chunks +33 lines, -33 lines 0 comments Download
A + tests/language/deferred_function_type_lib.dart View 1 chunk +12 lines, -5 lines 0 comments Download
A + tests/language/deferred_function_type_test.dart View 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
zarah
5 years, 8 months ago (2015-04-09 12:26:19 UTC) #2
sigurdm
LGTM https://codereview.chromium.org/1071133002/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/1071133002/diff/1/pkg/compiler/lib/src/js_backend/runtime_types.dart#newcode683 pkg/compiler/lib/src/js_backend/runtime_types.dart:683: addProperty(namer.functionTypeTag, js.number(1)); Add comment explaining this. https://codereview.chromium.org/1071133002/diff/1/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart File ...
5 years, 8 months ago (2015-04-09 13:00:15 UTC) #3
zarah
Thanks. If you want, you can take a quick look. I will run some tests ...
5 years, 8 months ago (2015-04-10 10:56:03 UTC) #4
sigurdm
https://codereview.chromium.org/1071133002/diff/40001/pkg/compiler/lib/src/js_backend/runtime_types.dart File pkg/compiler/lib/src/js_backend/runtime_types.dart (right): https://codereview.chromium.org/1071133002/diff/40001/pkg/compiler/lib/src/js_backend/runtime_types.dart#newcode685 pkg/compiler/lib/src/js_backend/runtime_types.dart:685: addProperty(namer.functionTypeTag, js.number(1)); You could also explain why the number ...
5 years, 8 months ago (2015-04-10 11:07:53 UTC) #5
sigurdm
Still LGTM
5 years, 8 months ago (2015-04-10 11:09:49 UTC) #6
zarah
Committed patchset #4 (id:60001) manually as 45061 (presubmit successful).
5 years, 8 months ago (2015-04-10 11:21:25 UTC) #7
zarah
5 years, 8 months ago (2015-04-10 13:32:51 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/1071133002/diff/40001/pkg/compiler/lib/src/js...
File pkg/compiler/lib/src/js_backend/runtime_types.dart (right):

https://codereview.chromium.org/1071133002/diff/40001/pkg/compiler/lib/src/js...
pkg/compiler/lib/src/js_backend/runtime_types.dart:685:
addProperty(namer.functionTypeTag, js.number(1));
On 2015/04/10 11:07:53, sigurdm wrote:
> You could also explain why the number 1. I guess it is just a shortest
possible
> dummy value?

yes, updated comment.

Powered by Google App Engine
This is Rietveld 408576698